Advertise here: Contact FM.


Apache/Linux permissions issue
July 24, 2006 8:28 PM   RSS feed for this thread Subscribe

How do I set permissions on a Fedora Core 5 system so that two different users can create, edit, and delete files in the web root (/var/www/html), yet all files retain the ownership of apache:apache?

I would settle for just username:apache, as long as the users can still edit each other's files.

I have already added the users to the apache group in /etc/group

They can currently edit any files owned by apache:apache, and can create new files, but the new files are assigned an ownership of username:username by default. This means they have to manually chown their files if they want the other person to be able to edit them.

I hope I am explaining this well enough...
posted by willc to computers & internet (2 comments total) 3 users marked this as a favorite
change all the dirs to be g+sxw, and group ownership will be maintained. User edited files should end up user:apache.
posted by alikins at 8:36 PM on July 24, 2006


Thanks...you are a hero. That seems to have done the trick.
posted by willc at 8:41 PM on July 24, 2006


« Older Hardcore Apache question: How ...   |   Should I blow the hot air out ... Newer »
This thread is closed to new comments.