LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba users cannot create directories / delete files (http://www.linuxquestions.org/questions/linux-server-73/samba-users-cannot-create-directories-delete-files-586407/)

habiem 09-21-2007 02:25 PM

Samba users cannot create directories / delete files
 
I have samba 3.0.23 installed on CentOS 5. In the end, I will need to be able to share one folder on the Linux machine with a few Mac OS X clients, each with a unique user/pass. So, for that share, I have the following:

[fileserver]
comment = My File Server
path = /fileserver
writeable = yes
write list = user1, @mygroup
printable = no
create mask = 0775

user1 is a valid system user, as mygroup is a valid group on the system. I can ssh into the box with user1. The /fileserver directory has the following permissions:

drwxrwxr-x 3 root mygroup 4096 Sep 21 14:04 fileserver

From a windows XP machine, I can log in successfully and write files without a problem. However, I cannot create directories or delete files.

What am I missing here? Thanks in advance.

habiem 09-21-2007 04:59 PM

Ahh...I should have known. SELinux appears to be causing the problem Turning it off seems to make the problems all disappear. Interesting though, because I checked earlier with audit2allow to see if there was something I needed to add to a policy to allow this to work and nothing was showing up in the logs at all.

Anyone know what needs to be done to allow samba shares to work properly and have selinux enabled?


All times are GMT -5. The time now is 01:49 AM.