#comando pra importar smb.conf-cl10-308.txt pro "vi" (veja cp.txt) # :r !lynx -dump http://www.zago.eti.br/modelos/smb.conf-cl10-308.txt # smb.conf do tuturial: # http://www.zago.eti.br/samba/samba-cl10.txt # comando pra importar no vi # :r !lynx -dump http://www.zago.eti.br/samba/smb.conf-cl10.txt # remova esta e as linhas acima, não fazem parte da configuração. [global] add machine script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u workgroup = MYGROUP server string = Thesi Montagens 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 # Caso queira os profiles retire o comentario acima logon path = # Caso não queira os profiles deixa essa opção acima ablitada 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 grupo -c "Samba grupo" -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. ; caso não queira a lixeira no servidor, comente as linhas abaixo que inicia com recycle ;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 browseable = 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 browseable = no # compartilhar o diretório /tmp [tmp] comment = diretorio tmp path = /tmp guest ok = yes writable = yes share modes = yes browseable = no # 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 [docs] path = /home/docs comment = docs administrativos writable = yes share modes = no writable = yes guest ok = yes force create mode = 777 force directory mode = 0777 browseable = yes valid users = anderson zago vfs object = vscan-clamav vscan-clamav: config-file = /etc/samba/vscan-clamav.conf vfs objects = recycle [diretoria] path = /home/diretoria comment = docs administrativos writable = yes share modes = no writable = yes guest ok = no force create mode = 770 force directory mode = 0770 browseable = yes valid users = anderson vfs object = vscan-clamav vscan-clamav: config-file = /etc/samba/vscan-clamav.conf vfs objects = recycle