www-data permissions on /var/www
clanlaw at googlemail.com
Sun Nov 25 15:27:08 UTC 2012
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.
More information about the ubuntu-users