1753767 Members
5394 Online
108799 Solutions
New Discussion юеВ

rcp permissions

 
Sylvie Vezina
Occasional Advisor

rcp permissions

Why when I execute rcp -p -r /directory host:/directory system don't keep the propriety of the original directory:
I have this:
drwxrwxrwx 26 nm94181 statcdm
It create this on new machine:
drwx------ 3 root sys

It's Unix 11.0
The best day is today
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: rcp permissions

Works fine on a patched 11.00 and 11.11 system. Check where rcp is coming from:

type rcp

It should be /usr/bin/rcp. I am always very concerned about any directory (except /tmp and /var/tmp) that is 777 (drwxrwxrwx) since the contents can be trashed by ANY user on the system.


Bill Hassell, sysadmin
Sridhar Bhaskarla
Honored Contributor

Re: rcp permissions

Hi,

That's how it would work. Instead as root, try doing a 'rcp -rp' as nm94181 and see what happens.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try