Настраиваешь /etc/samba/smb.conf перезапускаешь самбу
Мой кусок из него
[global]
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
client code page = 866
workgroup = KELZ
netbios name = HOST
# os level = 64
preferred master = yes
domain master = yes
local master = yes
domain logons = yes
server string = Linux Samba Server
encrypt passwords = Yes
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 1024
load printers = No
character set = KOI8-R
dns proxy = No
wins support = Yes
printing = lprng
logon path = \\%N\profiles\%u
logon drive = Z:
logon home = \\host\%u
logon script = users.bat\%U.bat
winbind separator = +
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
log level = 0
[HOMES]
comment = Homes directories
path = /Storage/public/samba/homes/%S
valid users = %S,@lan_ivc
read only = No
create mask = 0666
directory mask = 0777
browseable = No
vfs object = /usr/lib/samba/vfs/recycle.so
vfs options = /etc/samba/recycle.conf
[NETLOGON]
path = /Storage/public/samba/netlogon
writeable = no
[PUBLIC]
comment = Public resourse for read
path = /Storage/public/samba/public
valid users = @lanusers
locking = no
writeable = no
[INSTALL]
comment = Install source
path = /Storage/public/samba/install
valid users = @lanusers
locking = no
writeable = no
[COMMON]
comment = Common directory
path = /Storage/public/samba/groups/common
valid users = @lanusers,@lan_ivc
force group = lanusers
read only = No
create mask = 0666
directory mask = 0777
browseable = No
vfs object = /opt/drweb/smb_spider.so.4
[GIVC]
comment = Group directory
path = /Storage/public/samba/groups/ivc
valid users = @lan_ivc
force group = lan_ivc
read only = No
create mask = 0666
directory mask = 0777
browseable = No
vfs object = /opt/drweb/smb_spider.so.4