Advertisement

05.11.2008 at 11:35AM PDT, ID: 23392939
[x]
Attachment Details

Changing permissions of all the files that will be uploaded from one server to another server's directory

Asked by srikanthradix in IBM AIX Unix, Unix Operating Systems, Unix Systems Programming

Tags:

I have some files in a server named "server1" which I have to upload to another server named "server2". I am uploading the files from server1 to server2.  Remember these files in the server1 are created in a directory which will be named after the user who is logged on. So, if a person called "Apple" logs into the application the directory will be named "Apple" in server1. So, since there are many users in the application the directory cannot be finalized as "Apple" such that the files from server1 only comes from Apple directory into server2's directory.

On the other hand in the server2 the directory is always constant which is called "datadirectory" such that all the files whatever the directory may be on the server1 comes always to server2's datadirectory.

Now the problem is "Since the owner/user of the directory in the server2 is "owner2" and the files are being transfered by another user in the "group" say "groupuser". He couldn't upload the files into the server2's datadirectory. So, I changed the permissions of the datadirectory to 760 such that group users will have write permissions to the datadirectory. However, the files that are being uploaded into server2's datadirectory are created with permissions as only read permissions for the groupusers. So, when "groupuser" wants to upload the files that are already present in the "datadirectory". He is getting permissions not allowed to overwrite those files that when already present in the datadirectory.

I have been told that "There is a way where we can dictate the permissions of the files created on the server when they are being remotely uploaded from another server. In my case I want to upload those files as write access to the group users." How can I do that?

This is the Unix "AIX" box.

PS: If you don't understand anything in the above question. Please don't hesitate to ask.Start Free Trial
[+][-]05.11.2008 at 01:12PM PDT, ID: 21543346

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 02:06PM PDT, ID: 21543495

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 02:16PM PDT, ID: 21543522

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 02:17PM PDT, ID: 21543527

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 02:21PM PDT, ID: 21543533

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 03:04PM PDT, ID: 21543662

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 03:45PM PDT, ID: 21543798

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 04:03PM PDT, ID: 21543846

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 07:00AM PDT, ID: 21547019

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: IBM AIX Unix, Unix Operating Systems, Unix Systems Programming
Tags: Unix
Sign Up Now!
Solution Provided By: sentner
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628