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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rcp changed after we upgraded to AIX 5.1

Status
Not open for further replies.

Sonk

Technical User
Jun 5, 2001
31
0
0
US
When we were using AIX 4.3, we were able to rcp files to our backup server using "rcp -pr" and the files would retain their ownership and group permissions. Now ALL rcp'd files belong to root. Good news...the rcp works. Bad news...the spooled files listing is very confusing.

Any suggestions for a way to rcp those files with permissions and ownership intact?

Thanks
 
you can use the rsh to change ownership or modes of files on remot system


The aix documentation for rcp

Flags

-p Preserves the modification times and modes of the source files in the copies sent to the destination only if the user has root authority or is the owner of the destination. Without this flag, the umask command at the destination modifies the mode of the destination file, and the modification time of the destination file is set to the time the file is received.
When this flag is not used, the umask being honored is the value stored in the appropriate database. It is not the value that is set by issuing the umask command. The permission and ownership values that result from the umask command do not affect those stored in the database.

-r Recursively copies, for directories only, each file and subdirectory in the source directory into the destination directory.
-F Causes the credentials to be forwarded. In addition, the credentials on the remote system will be marked forwardable (allowing them to be passed to another remote system). This flag will be ignored if Kerberos 5 is not the current authentication method. Authentication will fail if the current DCE credentials are not marked forwardable.
-k realm Allows the user to specify the realm of the remote station if it is different from the local systems realm. For these purposes, a realm is synonymous with a DCE cell. This flag will be ignored if Kerberos 5 is not the current authentication method.


 
Thank you for responding. I guess I need to learn more about rsh.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top