Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP retain authorities

Status
Not open for further replies.

slayer666

Technical User
Aug 30, 2001
10
CA
I am FTPING files from one AIX system to another.
How do I retain the x (execute) authority on the files.

After I transferred the files I found that the X authority had been removed and I had to CHMOD later... is there a switch that I am missing I am using NcFTP

The files are owned by various users and groups..

Thanks
Brian
 
I dont know about AIX, but on most Unix systems you cannot put a file with execute on. This for obvious security reasons.
 
Hi,

RCP will retain permissions. RCP requires setting up .rhosts file with the appropriate host and user names.

<box1> <user1>

--

( PUT )
rcp <file1> <user2>@<box2>:<path>/<file2>

or
( GET )
rcp <user2>@<box2>:<path>/<file2> <file1>


where <user1> is the name of the user <box1>
<user2> is a legal user id on <box2>
<box1> is the name of the local machine
<box2> is the name of the target machine
<path> is the location on <box> to store the file
<file1> is the name of the local file
<file2> is the name of the remote file.

The reason I use <file1> and <file2> is because there is no requirement that they be the same name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top