[Samba] Lighttpd + Samba for read/write?

Stan Hoeppner stan at hardwarefreak.com
Mon Aug 1 10:22:13 MDT 2011


On 8/1/2011 8:31 AM, Erwan Leroux wrote:
> 2011/8/1 Gilles <gilles.ganault at free.fr>:
>> On Mon, 01 Aug 2011 08:03:11 -0500, Stan Hoeppner
>> <stan at hardwarefreak.com> wrote:
>>>> By default, /var/www is owned by root.root, while Samba tutorials I
>>>> read usually prefer to use nobody.nogroup.
>>>
>>> You sure about that?  On Debian the owner of /var/www is www-data.
>>> Ubuntu is derived directly from Debian.  I'd be surprised if it's that
>>> different.
>>
>> Yes, it is (installed through apt-get):
> 
> I think most of the tutorials advise you to change from the default
> root:root to www-data:www-data on this folder because this way you
> have a user dedicated to the web server.

After you change ownership to www-data:www-data, use chmod to allow
desired users to write the directory.  Without this step only the
www-data user can write.

-- 
Stan


More information about the samba mailing list