[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
simulating open for execute
- To: email@example.com
- Subject: simulating open for execute
- From: Roger Peppe <firstname.lastname@example.org>
is it possible to tell whether the current process has execute permission on a particular file, without actually executing it ? given the results from a stat of the file, and the contents of #c/user, it's easy to check user permissions, but how is it possible to check whether the user is a member of a particular group in order to check the group and other permissions ? it's useful for a shell to be able to do this when executing shell scripts. rog.