bugzilla-daemon@dp3.samba.org
2005-Nov-16 19:46 UTC
[Bug 3253] Feature request - Sync perms/ownership/time etc but with no file transfer
https://bugzilla.samba.org/show_bug.cgi?id=3253 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|NEW |RESOLVED Resolution| |WONTFIX ------- Comment #1 from wayned@samba.org 2005-11-16 12:45 MST ------- I think this would be best handled by some other application. For instance, it would be simple to write a perl script that would be able to parse the output of "ls -lR" from one system and apply the permissions/ownership/groups to the matching files on another system (skipping those that don't exist). -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
bugzilla-daemon@dp3.samba.org
2005-Nov-17 01:53 UTC
[Bug 3253] Feature request - Sync perms/ownership/time etc but with no file transfer
https://bugzilla.samba.org/show_bug.cgi?id=3253 ------- Comment #2 from wayned@samba.org 2005-11-16 18:51 MST ------- Created an attachment (id=1575) --> (https://bugzilla.samba.org/attachment.cgi?id=1575&action=view) perl script solution I enjoy coding simple perl scripts like this, so here is a perl script that will parse the output of "ls -lR dir [dir...]" or "ls -nR dir [dir...]" and restore the permissions, owner, and group of all the files it finds. You can feel free to manually edit ls's output to remove unnecessary directories and/or files, and then use the result to apply the listed attrs to another host's files. For instance, assuming the script "file-attr-restore" is somewhere in the $PATH of server "remotehost", this sequence of commands would should update the attrs on remotehost: ls -lR /etc /usr/local/etc >saved-permissions cat saved-permissions | ssh remotehost file-attr-restore -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
Apparently Analagous Threads
- [Bug 3253] New: Feature request - Sync perms/ownership/time etc but with no file transfer
- DO NOT REPLY [Bug 6578] New: put out skipped dirs files w/ perms and ownership
- Root directory ownership/perms
- ownership/perms on DC file objects
- dovecot2 auth-worker socket perms ignoring assigned ownership settings in conf.d/10-master.conf?