Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi I've been struggling a lot with Samba on Centos 5.5 lately.

I develop in Windows 7 and send files through scp (ant task), but it's to slow and wanted to setup thoroughly samba.

After installing and following some guides I've done the following:

  1. Disable firewall (iptables)
  2. Disable SelLinux (didn't do that at the start, but didn't help either)
  3. setup my smbusers file to map my windows user to root (root = "Tahir Malik" --> works)
  4. added a current user mitco to the sambapassdb with the command smbpasswd -a mitco , because the windows user had only read access

So both the users have read access to my share. Here is my smb.conf snippit:

        workgroup = MITCO
        server string = Samba Server Version %v
        netbios name = centos
    ;   interfaces = lo eth0
    ;   hosts allow = 127. 192.168.12. 192.168.13.

    comment = Alfresco 4
    path = /opt
    read only = no
    valid users = mitco, mitco
    force user = root
    force group = root
    admin users = mitco , mitco
    writeable = yes
;   browseable = yes

What also maybe important is that the /opt is only writable by root, but that shouldn't matter because I use the force user and group or admin users.

The log file :

[2012/09/29 07:43:44, 0] smbd/server.c:main(958) smbd version 3.0.33-3.39.el5_8 started. Copyright Andrew Tridgell and the Samba Team 1992-2008 [2012/09/29 07:43:59, 1] smbd/service.c:make_connection_snum(1085) mitco-tahir ( connect to service alf4 initially as user root (uid=0, gid=0) (pid 5228)

share|improve this question

I don't really know what happened, but after a restart of the linux AND Windows environment I have write access to the share.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.