Hello,
We're developing an executable that will generate a file or folder in a shared place that all OS users may access.
Given that our executable may be launched by any Mac OS user, we were unable to locate a single directory with write rights for all OS users in which our executable might create a file or folder.
According to the documentation, /Library/ appears to be the location where application-specific (or system-specific) resources should be stored. However, when we looked at the folder's permissions, we saw that they don't have 766 rights for others. The number of rights was 755 (rwxt-xr-x). We can't use /users/ because we don't want to associate these files with a specific OS user.
Question:-
(1) Is there a directory on the MAC with 766 rights (other than /tmp or /var/tmp/ or /users/os user>/public) so that all os users may access to read and write files and folders?
(2) Why is the behaviour of /Library/ on the Mac different from the documentation?