Centos – Samba + Centos (Share not working)

centosnetwork-sharessambasmb

I've done this a few times already, but for some reason this time it's not working.

I have a folder called ruby (root:root – 0777) on /home/placona

I'm trying to see this folder from my WindowsXP box, but keep getting permission denied. I can see the global share though, but whenever I try clicking on the ruby share, it won't let me in.

Here's my smb.conf settings:

[global]
        log file = /var/log/samba/samba.%m
        guest account = nobody
        netbios name = DEVBOX
        server string = DEVBOX CENTOS
        workgroup = WORKGROUP
        encrypt passwords = yes
        security = share
        max log size = 50

[ruby]
        path = /home/placona/ruby

I want to be able to open this folder without using password (hence the guest account = nobody).

I tried even with password, but never seems to work.

Can anyone spot anything wrong with my settings?

Best Answer

Samba shares need both users and settings. I'm sure you already have CentOS users, but do you also have Samba users setup?

smbpasswd -a joe

you can also add the following line to your share definitions

[ruby]
valid users = joe randi insert-samba-user-here

Oh and make sure you reload samba via

service smb restart

(Note, most code taken from: http://www.cyberciti.biz/faq/adding-a-user-to-a-samba-smb-share/ )

Related Question