I have the samba problems solved thanks to the help of folks on this forum, but I do not have the php umask problems solved.
The www directory is /var/www/html and the html directory is owned by apache and is in the apache groups with the following permissions:
drwxrwsr--
A sub-driectory, /var/www/html/viewpoints has the same attributes as the html directory, however when php creates a directory within /var/www/html/viewpoints, the permissions are
drwxr-sr-x
My goal is to have any created directories and files to have 774 permissions.
What am I missing?
Todd
My goal is to have any created directories and files to have 774 permissions.
Hi Todd,
Am I correct in assuming the php script that creates the directory uses the mkdir() function? If so something along the lines of: mkdir('mydir', 0774); should suffice. The 0 can be changed to 2, 4 or 6 depending on what combination of SGID & SUID sticky bits you want on the directory.