adduser foobar
smbpasswd -a foobar
Soubor lze prolistovat prikazy pdbedit -Lw
a pdbedit -Lv foobar
[global] log level=4 max log size = 50 [public] vfs object = audit
[DVD] comment = Linux DVD RW path = /media/dvdrecorder browseable = Yes locking = No read only = Yes root preexec = /bin/mount /media/dvdrecorder root postexec = /bin/umount /media/dvdrecorder
[global] workgroup = PB # printcap cache time = 750 load printers = no printcap name = /dev/null printing = bsd map to guest = Bad User logon path = \\%L\profiles\.msprofile logon home = \\%L\%U\.9xprofile logon drive = P: usershare allow guests = No add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bi n/false %m$ domain logons = No domain master = No security = share netbios name = silo passdb backend = smbpasswd log file = /var/log/samba/%m.log log level=4 max log size = 50 # force create mode = 0774 delete readonly = yes [public] comment = fileserver guest ok = Yes inherit acls = Yes path = /srv/samba/public read only = No browseable = yes public = yes vfs objects = audit # writable = yes create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup [management] path = /srv/samba/management read only = no force user = management inherit acls = yes browseable = yes [zalohy] path = /srv/backup/samba-zalohy guest ok = Yes writable = Yes