[Samba] connecting from client to subdirectories
Stephanus Smith
faniesmith at gmail.com
Mon Jul 24 08:31:57 GMT 2006
Hi
I have problem connecting with windows XP clients to a sub directory
The subdirectory is setup as follows in die smb.conf
[wwwshare]
comment = www share
path = /var/www/html
valid users = wwwuser
public = no
writable = yes
printable = no
create mask = 0765
I have user level security.
The wwwuser is the owner of the html dir.
The wwwuser is also the owner of the www dir.
I have setup a unix user wwwuser and have set the line in die smbuser
wwwuser = wwwuser
When I connect to the samba server I can log-in with the wwwuser and
password that I have setup.
But I can only connect to the samba server's root. when I try to access the
wwwshare I get an access denied reponse.
When I make a directory in the root of the filesystem that is owned by
wwwshare then I can connect to that share with no problem using the
wwwuser and password.
The error that I get in the log file is listed below.
Jul 24 10:27:51 bf1 smbd[29486]: '/var/www/html' does not exist or
permission denied when connecting to [netadsdev] Error was Permission denied
Jul 24 10:28:19 bf1 smbd[29486]: [2006/07/24 10:28:19, 0]
smbd/service.c:make_connection_snum(911)
Jul 24 10:28:19 bf1 kernel: audit(1153729699.546:3271): avc: denied {
search } for pid=29486 comm="smbd" name="www" dev=dm-0 ino=13795428
scontext=root:system_r:smbd_t:s0
tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
Jul 24 10:28:19 bf1 smbd[29486]: '/var/www/html' does not exist or
permission denied when connecting to [netadsdev] Error was Permission denied
I would realy appreciate any help here
Thanks
Fanie Smith
More information about the samba
mailing list