Samba

From Wiki
Jump to: navigation, search

Samba Share

Mixing User security and public shares

  smbpasswd -a nobody
  smbpasswd -n nobody
  smbpasswd -e nobody

more /etc/samba/smb.conf

[global]
workgroup = SF.ET
name resolve order = bcast lmhosts wins host
server string =  %h server
null passwords = yes
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
log file = /var/log/samba/log.%m
syslog = 0
username map = /etc/samba/smbusers
passdb backend = tdbsam
obey pam restrictions = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 (cont’d below) SO_RCVBUF=8192 (end of socket option)
domain master = no
preferred master = yes
os level = 65
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
invalid users = root
guest account = nobody 
security = user 

[soft]
path = /exports/soft
comment = software
read only = no
browseable = yes
public = yes
writable = yes
guest ok = yes



[scanner]
path = /exports/scanner
comment = scanner
available = yes
browseable = yes
writable = yes