Monday, November 20, 2006

Samba on Centos Anonymous Read Only

I wanted to start with an empty config. So log in as root and do the following:

cd /etc/samba
mv smb.conf smb.conf.bak
vi smb.conf

Place the following in smb.

[global]
workgroup = Home_lan
netbios name = Centos
security = share

[public]
comment = public
path = /server/public
force user = dj
force group = home
read only = Yes
guest ok = Yes

The directory public is owned by dj & the group is home. Now test the config file.

testparm

If everything checks out ok then start samba.

service smb start

I did give the user dj a samba password by doing the following but I doubt you'll need it. When I connected w/ a windows box it didn't ask for a logon.

smbpasswd -a dj

Credits
http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/FastStart.html

No comments: