3

getting the full permissions of a file

view full story
linux-howto

http://www.unix.com – Hi I was wondering if it would be possible to get the full octal permissions of a file by using something in the stat() system call. Can this be done without going through all of the seperate permissions (e.g. read for user, write for user .... etc.)? also how can this octal permission be changed to accomadate new permissions? (can i simply store the octal permission and then perform normal computations on it according to the permission im adding or taking away? Thanks in advance for anyone who could explain this. (HowTos)