www-data permissions on /var/www

Gene Heskett gheskett at wdtv.com
Sun Nov 25 16:23:10 UTC 2012


On Sunday 25 November 2012 11:21:51 Colin Law did opine:

> On 25 November 2012 14:40, Gene Heskett <gheskett at wdtv.com> wrote:
> > On Sunday 25 November 2012 09:34:09 Ric Moore did opine:
> >> On 11/25/2012 02:21 AM, katrina warsaw wrote:
> >> > Hello!:
> >> > 
> >> > You must think that human users have their userids upper of 1000.
> >> > www-data user is really the user who admins the website, is the
> >> > user and group of your webserver , and  your web's user or your
> >> > web's visitors are from group "others".
> >> > I wish this helps you!
> >> 
> >> Correct, user AND group must be set to www-data.
> >> sudo chmod -R www-data:www-data /var/www
> >> You'll be good to go if everything, directories AND data files, are
> >> set in that fashion. Ric
> > 
> > That is something I had to learn when I transplanted my web page stuff
> > from a PCLOS install to a ubuntu install.  But in the long run it
> > makes it easier because its consistent.
> > 
> > Be aware that the chown -R doesn't work, or didn't for me, when it
> > reaches thru a softlink, I had to do it again from the softlinks
> > target.
> 
> Looking at man chown I think -RhL will follow the link.  Not sure
> whether you need the -h.
> 
> Colin

And I'll have to plead that I haven't read the man page past the -R part. 
dumb old man I guess. :D

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
The modern child will answer you back before you've said anything.
		-- Laurence J. Peter




More information about the ubuntu-users mailing list