[Samba] Lighttpd + Samba for read/write?
Gilles
gilles.ganault at free.fr
Tue Aug 2 07:41:31 MDT 2011
On Tue, 02 Aug 2011 02:11:49 -0500, Stan Hoeppner
<stan at hardwarefreak.com> wrote:
>As I stated, I am running lighttpd with a non-root user owning the
>docroot, have been for years
Thanks for the info. Turns out there already was a UID "www-data" in
/ec/passwd, and lighttpd.conf used that UID by default.
However, when creating a new text file in /var/www, its access rights
are 744, which doesn't make sense for a non-executable file:
===========
# ll /var/www/
total 16
drwxr-xr-x 2 www-data www-data 4096 2011-08-02 15:35 ./
drwxr-xr-x 14 root root 4096 2011-08-01 14:35 ../
-rw-r--r-- 1 root root 3562 2011-08-01 14:35
index.lighttpd.html
-rwxr--r-- 1 www-data www-data 4 2011-08-02 15:35 test.txt*
===========
The smb.conf documentation mentions "create mask", but how can I tell
Samba to use a different mask depending on the type of the file
(executable and non-executable)?
Thank you.
More information about the samba
mailing list