[CentOS] Still having umask problems [resend]

2011-06-26 Thread Todd Cary
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

-- 
Ariste Software
Petaluma, CA 94952

http://www.aristesoftware.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Still having umask problems [resend]

2011-06-26 Thread Drew
 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.

-- 
Drew
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos