Unanswered: Checking File Permissions Before Using it ?
I need to check the permissions of a file before using that file to access a Web Service. I need to check that only the 'user' has 'rwx' permissions, at the same time, the 'group' and 'others' part of the permissions string should not contain anything. That is, I should have a permission string as shown below for a file:
Can anybody tell me how to do this? A script should be very helpful.