Find differences in permissions

What if you have an app installed in several machines, most work fine but one doesn’t!

You’ve done a diff on the directory contents and they match, but it could be that some thoughtful person has chmod’ed one of the executables, but which one?

On each app tree run this:

ls -l  | awk ‘{ print $1″ “$9 }’ > diff_filex.txt

 

Then compare the 2 diff_files with sdiff. The awk returns the permissions (col 1) and the file name (col 9).

Leave a Reply