Changing only file permissions
James Moe
jimoe at sohnen-moe.com
Tue Apr 21 17:03:16 MDT 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
opensuse 13.2
linux v3.16.7-7-desktop x86_64
rsync v3.1.1
I used rsync to copy /usr/ to another volume with these options:
- --recursive --one-file-system --links --stats --itemize-changes
- --quiet --delete --times
After I had modified the system to use the new /usr volume, I realized
I should have added:
- --perms --owner --group --executability
So the target volume has everything set as "root root", and useful
bits like the SetUID mode are missing.
Is there a way to use rsync to restore only the
permissions/owner/user and mode flags on the target volume from the
source volume?
- --
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iEYEARECAAYFAlU21zQACgkQzTcr8Prq0ZODbQCgj4qBX6TPPRisa8ooARiY+vK7
AIsAn3AANSRS1lFWUWORLmmwDqfFRE2z
=zuRo
-----END PGP SIGNATURE-----
More information about the rsync
mailing list