[global] workgroup = MYGROUP server string = Conectiva Linux SMB Server printcap name = cups load printers = yes printing = cups log file = /var/log/samba/%m.log max log size = 50 debug level = 1 ; local master = no os level = 33 domain master = yes preferred master = yes domain logons = yes wins support = yes wins proxy = yes logon script = %U.bat logon path = \\%L\Profiles\%U security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd username map = /etc/samba/smbusers socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 add machine script = /usr/sbin/adduser -n -r -g machines -c "Samba machine" -d /dev/null -s /bin/false %u # see the smb.conf(5) manpage for other important backends, such as tdbsam and ldap passdb backend = smbpasswd ; Lixeira no servidor Samba. ; a linhas abaixo são o suficiente pra instalar a lixeira pra todos os compartilhamentos. ;recyclebin options recycle:exclude = *.tmp *.temp *.o *.obj ~$* recycle:keeptree = True recycle:touch = True recycle:versions = True recycle:noversions = .doc|.xls|.ppt recycle:repository = .recycle recycle:maxsize = 10000000 create mask = 0777 directory mask = 0777 vfs objects = recycle unix charset = iso8859-1 display charset = cp850 #============================ Share Definitions ============================== idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /bin/false winbind use default domain = no [homes] comment = Home Directories browseable = no writable = yes # Un-comment the following and create the netlogon directory for Domain Logons [netlogon] comment = Network Logon Service path = /home/netlogon guest ok = yes writable = no share modes = no # Un-comment the following to provide a specific roving profile share # the default is to use the user's home directory [Profiles] comment = Network User Profiles path = /home/profiles read only = no create mask = 0700 directory mask = 0700 # compartilhar o diretório /tmp [tmp] comment = diretorio tmpe path = /tmp guest ok = yes writable = yes share modes = yes # automatic printer driver download support [print$] path = /var/lib/samba/drivers guest ok = yes browseable = yes read only = yes ; since this share is configured as read only, then we need ; a 'write list'. Check the file system permissions to make ; sure this account can copy files to the share. If this ; is setup to a non-root account, then it should also exist ; as a 'printer admin' write list = root [printers] comment = All Printers path = /var/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes printer admin = root [docmodelos] path = /home/docadmin comment = docs administrativos writable = yes share modes = no writable = yes guest ok = yes ; create mask = 0777 force create mode = 777 force directory mode = 0777 ; read list = anderson,dirceu,@fatura ; invalid users = jose,francisco,@visita ; write list = zago,rui,@administrativo browseable = yes valid users = zago,rui,anderson,dirceu [supersoft] comment = sistemas path = /home/supersoft public = yes writable = yes printable = no write list = @staff force create mode = 0777 force directory mode = 0777 create mask = 0777 directory mask = 0777