LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba: "homes" share, cannot create directories, can create files (https://www.linuxquestions.org/questions/linux-software-2/samba-homes-share-cannot-create-directories-can-create-files-483221/)

Herg 09-13-2006 04:26 PM

Samba: "homes" share, cannot create directories, can create files
 
Hello,

I am using the "homes" share of Samba, and everything is working fine except that I cannot create or delete directories remotely. I can create and delete files. Also, if I create other shares (/tmp for example) it works as expected, and I can create and delete directories.

I fought quite a while to get this far until I read about the "samba_enable_home_dirs" boolean in selinux. Is it possible that something similar is causing this, or should I be looking at Samba configuration, file permissions, etc.?

Permissions on the directory I am trying to create the new directory in:
Code:

drwxrwxr-x  2 harold harold 4096 Sep 13 16:15 test
Output from testparm:
Code:

[harold@localhost projects]$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = TRIDSYS
        netbios name = NEWLINUX
        server string = Newlinux (Samba %v)
        security = SHARE
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        dns proxy = No
        hosts allow = 192.168.1., 192.168.2., 127.
        cups options = raw

[homes]
        comment = Home Directories
        read only = No


Thanks

josemaria 09-14-2006 09:48 AM

Quote:

Originally Posted by Herg
Hello,

I am using the "homes" share of Samba, and everything is working fine except that I cannot create or delete directories remotely. I can create and delete files. Also, if I create other shares (/tmp for example) it works as expected, and I can create and delete directories.

I fought quite a while to get this far until I read about the "samba_enable_home_dirs" boolean in selinux. Is it possible that something similar is causing this, or should I be looking at Samba configuration, file permissions, etc.?

Permissions on the directory I am trying to create the new directory in:
Code:

drwxrwxr-x  2 harold harold 4096 Sep 13 16:15 test
Output from testparm:
Code:

[harold@localhost projects]$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = TRIDSYS
        netbios name = NEWLINUX
        server string = Newlinux (Samba %v)
        security = SHARE
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        dns proxy = No
        hosts allow = 192.168.1., 192.168.2., 127.
        cups options = raw

[homes]
        comment = Home Directories
        read only = No


Thanks

Try changing your SELinux policy to "permissive". This worked for me.
Regards


All times are GMT -5. The time now is 09:37 AM.