LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-13-2006, 04:26 PM   #1
Herg
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
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
 
Old 09-14-2006, 09:48 AM   #2
josemaria
LQ Newbie
 
Registered: Sep 2006
Location: Madrid, Spain
Distribution: Fedora, OpenSUSE
Posts: 5

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to create multiple directories under users homes shawnbishop Linux - Software 4 03-30-2006 09:11 AM
Microsoft Bluetooth mouse on suse9.2 "HID create error 25" mr-pear Linux - Hardware 0 08-16-2005 03:33 PM
Cannot create files on samba share jhoderd Linux - Software 2 01-04-2005 09:46 AM
"cannot exec `as': ..." AND "C compiler cannot create ..." pr3st0 Linux - Software 0 10-15-2004 01:42 PM
can't create/modify files in a samba share deadslota Linux - Newbie 4 08-07-2004 11:26 PM


All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration