PDA

View Full Version : Web Root permissions


DualFusion
18th July 2008, 21:20
Hello,

I have a NFS server and just install and configured Samba to work with my Windows-based laptop. I made it possible to read/write on my web root (/var/www) except that I can't write. This is what I put at the bottom of my /etc/samba/smb.conf:

[www]
comment = Web Root
path = /var/www
public = yes
read only = no
create mask = 0777
directory mask = 0777

I am assuming it is because of the permissions on the web root itself and not the permissions Samba is giving it. Is there anything I can do?

Thanks,
Kevin.

DualFusion
18th July 2008, 22:04
I solved this already playing around with the system and did it by adding a new group, running the chown command with root:<new group> and chmodded it to 777.

Though I would like to know one thing: When I created this NFS and mounted the drives, I found myself having a lost+found directory in /var/www. Is this folder necessary or can it be removed?

Thanks,
Kevin.

falko
19th July 2008, 23:31
It's a system folder, so I'd not remove it. Most of the time it's empty anyway.

See http://www.freeos.com/articles/3102/ .