Hi,
I have Samba installed and running on my Fedora8 machine.
Kernel 2.6.25.11-60.
Samba Version 3.2.0
While trying to access samba shares through my mac running os x 10.5.4
It always login with user nobody.
It does not need any password for user nobody to connect.
Even if I specify a user name and password it is ignored.
Therefore my machine is open to anyone on my network as read all.
Additionally, I cannot allow anyone to have write access to samba shares.
As I can only login as nobody through samba.
Nobody does not belong to any group, therefore only way to give write access if I say o+rwx permission on the folder. Which is not a good practice.
Attached is my smb.conf file.
I will be very grateful if anyone can tell me how to configure samba to allow only users with valid passwords to connect to the server.
Code:
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
; netbios name = MYSERVER
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.
log file = /var/log/samba/log.%m
max log size = 50
log level = 10
security = share
passdb backend = tdbsam
; security = domain
; passdb backend = tdbsam
; realm = MY_REALM
; password server = <NT-Server-Name>
; security = user
; passdb backend = tdbsam
; domain master = yes
; domain logons = yes
; logon script = %m.bat
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
; logon path =
; add user script = /usr/sbin/useradd "%u" -n -g users
; add group script = /usr/sbin/groupadd "%g"
; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
; delete user script = /usr/sbin/userdel "%u"
; delete user from group script = /usr/sbin/userdel "%u" "%g"
; delete group script = /usr/sbin/groupdel "%g"
; local master = no
; os level = 33
; preferred master = yes
; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes
; dns proxy = yes
load printers = yes
cups options = raw
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
acl compatibility = winnt
ldap ssl = No
server signing = Auto
passwd program = /usr/bin/passwd
encrypt password = yes
smb passwd file = /etc/samba/smbpasswd
; printcap name = /etc/printcap
; printcap name = lpstat
; printing = cups
; map archive = no
; map hidden = no
; map read only = no
; map system = no
; store dos attributes = yes
[homes]
comment = Home Directories
browseable = no
read only = no
valid users = sho
write list = sho
; valid users = %S
; valid users = MYDOMAIN\%S
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes
[MUSIC]
path = /mnt/music
guest ok = yes
[SHO]
write list = sho
hide dot files = no
read only = no
path = /home/sho
guest ok = yes
[SAMBA]
write list = sho
hide dot files = no
guest ok = yes
read only = no
path = /home/samba