whilst you’re setting up samba – its a good idea to add a recycle bin – so that if you delete anything – its put in a hidden folder and not just removed (which is normal for linux machines)
My current setup – which i’ve used for ubuntu, rhel and mandriva
used for a test web development server – so each user can have their own development enviroment – which is central and easier to backup (svn’d also)
It’s been tweaked to allow windows xp through to windows 7 and macs to view the shares so – you could try using the whole config and then thin it back to get what you want…
remember you dont necessarily need to restart samba after you change the conf file as it reloads itself
[global]
workgroup = WORKGROUP
netbios name = LINUX SERVER
server string = LINUX SERVER – Samba Server (Ubuntu Server 10.04)
map to guest = Bad User
guest account = nobody
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
preferred master = no
domain master = no
local master = no
os level = 0
dns proxy = no
ldap ssl = No
winbind uid = 16777216-33554431
winbind gid = 16777216-33554431
guest ok = yes
guest only = yes
cups options = raw
hide dot files = No
hide special files = Yes
vfs objects = recycle
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:maxsize = 0
recycle:exclude_dir = /var/general
restrict anonymous = no
load printers = no
show add printer wizard = no
acl compatibility = winnt
null passwords = yes
wins support = Yes
read raw = No
write raw = Yes
max xmit = 131072
use sendfile = Yes
read time = 15
getwd cache = Yes
oplocks = Yes
create mask = 0644
force create mode = 0600
security mask = 0555
force security mode = 0600
smb ports = 139
strict locking = no
ntlm auth = YES
lanman auth = YES
client ntlmv2 auth = yes
[homes]
comment = Home Directories
browseable = no
[printers]
comment = All Printers
path = /varr/spool/samba
guest ok = No
printable = Yes
browseable = No
[EXAMPLE SHARE]
comment = Example Share
path = /var/www/example
read only = no
case sensitive = No
hosts allow = 192.168.0.16 192.168.0.26 192.168.0.28 127.
on this example I am using a linux user called nobody of nogroup – you may need to create this