moving accounts with permissions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Dave wrote:
> good. The problem is permissions were not transfered and i thought that was
> the point of -p for scp. Did i miss something is there a command i have to
> use for the new box to pick up the permissions from the old box?

The -p preserves the date/time and modes, but not the actual UID/GID. 
Try using rsync with ssh instead, something like:

   rsync -avz -e ssh --delete /home/ user@host:/home

This has the added benefit that if it fails midway (network dies, e.g.) 
you can just re-run it to start where you left off. Note the trailing 
slash on the source /home/, that's important.

-te

-- 
Troy Engel | Systems Engineer
Fluid, Inc | http://www.fluid.com

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux