How to to compare owners and permissions of content of two folders? Is there something like diff command which compare recursively two folders and display owner and permissions differences?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
|
The solution, as with all things, is a perl script:
Look at http://perldoc.perl.org/functions/stat.html and http://perldoc.perl.org/File/Find.html for more info, particularly the If files don't exist in directory2 but exist in directory1, there will also be output because the |
|||
|
|
|
The 3rd column is the owner, the 4th is the group. |
|||||
|