[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT?:Proper owner of html files in Apache



On Tue, Jul 24, 2001 at 03:13:25PM -0400, Ken Januski wrote:
> What I'm trying to find out is if root.root is a good idea? I assume it
> is or it wouldn't be the default. It just seems odd to me to have to
> become root in order to write either a html or cgi page.

What I did on my system was to create a new group, www-admin, change
everything under /var/www to root.www-admin ownership and made it
group writable with the directories sgid (so new files will also be
owned by group www-admin).  Then just add your main user account (and
anyone else who should be working there) to the www-admin group and you
should be set.

As has been mentioned earlier, though, pretty much any ownership other
than www-data should be OK.

-- 
With the arrest of Dimitry Sklyarov it has become apparent that it is not
safe for non US software engineers to visit the United States. - Alan Cox
"To prevent unauthorized reading..."         - Adobe eBook reader license



Reply to: