httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] Ownership doesnt work on Webroot
Date Wed, 01 Sep 2010 11:22:30 GMT
On Wed, Sep 1, 2010 at 3:19 AM, James Corteciano <james@linux-source.org> wrote:
> Hi,
> I have this webroot /webdir/ with 2775 permission so that any created
> file/directory by apache inside of /webdir/ will be 'apache:webusers'.
> However, I noticed when the apache created a new files (fileB) / directories
> (dirB), the ownership becomes 'apache:apache' and the sticky bit has gone
> for /webdir/. I'm currently using Wordpress.
> [before]
> drwxrwsr-x  users webusers /webdir/
> drwxrwsr-x  users webusers /webdir/dirA

that's not sticky, it's the setgid bid.  setgid directories is usually
how you try to get some shared secondary group to own new files in a
dir.

> -rw-rw-r--  users webusers /webdir/fileA
> [after]
> drwxrwxr-x  users webusers /webdir/
> drwxrwxr-x  apache apache /webdir/dirB
> -rw-rw-r--  apache apache /webdir/fileB
> Why the sticky bit doesn't reflected and the group as well? Has anyone knows
> how to fix this?

your php script probably removed the setgid bit.  "Apache" isn't
creating any of these files, your scripts are.


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message