rsync dirs w/o o+x perms (as root)
Hello linux gurus,
I've just setup a multi-terrabyte, opensolaris, zfs box, and I'm backing up the *entire* contents of some old IDE disks to my new raidz. I'm issuing these backups from a client computer to the opensolaris server using rsync. However, I've run into a bit of a problem. Every time rsync comes across a directory which doesn't have execute permissions for "other," it issues a "Permission denied" error: Code:
# rsync -rvz <from> <to> I understand _why_ this is occurring. rsync cannot copy the files inside of the directory because it doesn't have permission to _access_ that directories' contents. What I _don't_ understand is why this error is occurring when I execute the rsync command as root! The only solutions I found on google were to give the directory execute permissions for the "other" group, but I'd like to keep the backup 100% the same as the original--without changing the permissions of the files. Is there a way to allow rsync to recursively copy all directories and their file contents'--including those directories without execute permissions for "other"--(as root) while also retaining all permissions of the source files and directories? TIA |
Do you have the remote server mounted via NFS? If so, by default root is 'squashed' by the NFS server, for security purposes, and its being mapped silently to (I think) nobody or some other unprivileged user.
|
Quote:
|
All times are GMT -5. The time now is 02:35 AM. |