[05 Feb 2010] Mac OS Protection Flags
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 05 Feb 2010 18:41:26 -0000
Hi Andreas,
I'm trying to make a Mac version of a program that reads some text from a file, and I'm wondering what kind of protection flags I should set for that file. The file is a basic text file, but it does not need to be accessed by itself (though my program will read it). In addition to the user "read," "write," and "execute" flags, I noticed in the Hollywood documentation that the following flags can also be used:
So I guess my question is, what do "GRP" and "OTH" stand for?
Thanks.
Hi Andreas,
I'm trying to make a Mac version of a program that reads some text from a file, and I'm wondering what kind of protection flags I should set for that file. The file is a basic text file, but it does not need to be accessed by itself (though my program will read it). In addition to the user "read," "write," and "execute" flags, I noticed in the Hollywood documentation that the following flags can also be used:
Code: Select all
#FILEATTR_READ_GRP
#FILEATTR_WRITE_GRP
#FILEATTR_EXECUTE_GRP
#FILEATTR_READ_OTH
#FILEATTR_WRITE_OTH
#FILEATTR_EXECUTE_OTH
Thanks.