I'm trying to create a script that will process a file's octal permissions and if they're more permissive than need be, change the permissions to something more restrictive.
Is there a way to display the file's octal permission representation, as opposed to the rwxr--r-- thing?
Maybe a way to use ls to show that... I'm almost shooting in the dark here, but any suggestions will be greatly appreciated.
Thanks