Clark's Home page

Tecnicismi vari di un Sysadmin Linux ma anche qualcosa della sua vita

Trieste configurazione samba —

Il file di configurazione smb.conf contiene tutte le direttive per la condivisione di files e stampanti per il dominio.

Nella directory /etc/samba essendo questo un server ADS deve essere presente il file user.map che contiene:
!root = MYDOMAIN\Administrator
e il file /etc/nsswitch.conf deve essere modificato così:

passwd:         files winbind 
group:          files winbind 

di seguito la configurazione di files e stampanti
smb.conf
# Global parameters 
[global] 
       apply group policies = Yes 
       bind interfaces only = Yes 
       client max protocol = SMB3 
       client min protocol = SMB2 
       interfaces = lo eth0 
       load printers = Yes 
       log level = 1 
       netbios name = TRIESTE 
       os level = 20 
       printcap name = cups 
       realm = MYFIRM.LAN
       security = ADS 
       server role = member server 
       server string = Trieste %h 
       socket options = TCP_NODELAY TCP_KEEPIDLE=240 TCP_KEEPCNT=4 TCP_KEEPINTVL=15 
       template homedir = /home/HOME/%U 
       template shell = /bin/bash 
       username map = /etc/samba/user.map 
       winbind enum groups = Yes 
       winbind enum users = Yes 
       winbind expand groups = 4 
       winbind nested groups = Yes 
       winbind offline logon = Yes 
       winbind refresh tickets = Yes 
       winbind use default domain = Yes 
       workgroup = MYFIRM
       rpc_server:spoolss = external 
       rpc_daemon:spoolssd = fork 
       idmap config myfirm : unix_nss_info = yes 
       idmap config myfirm : schema_mode = rfc2307 
       idmap config myfirm : range = 10000-999999 
       idmap config myfirm : backend = rid
       idmap config * : range = 3000-7999 
       idmap config * : backend = tdb 
       printing = cups 

[netlogon] 
       path = \\cabrini/var/lib/samba/sysvol/myfirm.lan/scripts 
       read only = No 

[sysvol] 
       path = \\cabrini/var/lib/samba/sysvol 
       read only = No 

[home] 
       comment = Home directory 
       force create mode = 0600 
       force directory mode = 0700 
       inherit acls = Yes 
       path = /home/HOME 
       read only = No 

[profiles] 
       comment = Network profiles Share 
       csc policy = disable 
       path = /home/NTPROFILES 
       read only = No 
       vfs objects = acl_xattr
[scambio] 
       guest ok = Yes 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/scambio 
       read only = No 
       vfs objects = acl_xattr 

[Acquisti] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/acquisti 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U 

[Produzione] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/produzione 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U
[Amministrazione] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/amministrazione 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U 

[Collaudo] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/collaudo 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U 

[Commerciale] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/commerciale 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U
[Multimedia] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/multimedia 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U 

[MCA] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/MCA 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .trash/%U 
[Ute] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/ute 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U 

[Backup_vault] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/ute/backup_vault 
       read only = No 
       vfs objects = acl_xattr
[Archivio_pdf] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/archiviopdf 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U 

[Uffici] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/uffici 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U 

[antivirus] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/antivirus 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U 

[programmi] 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/programmi 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U
[read-only] 
       comment = directory a sola lettura 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/read-only 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U 

[industria] 
       comment = directory industria 4.0 
       inherit acls = Yes 
       map acl inherit = Yes 
       path = /home/industria 
       read only = No 
       vfs objects = acl_xattr recycle 
       recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$* 
       recycle:versions = yes 
       recycle:keeptree = yes 
       recycle:repository = .cestino/%U

[printers] 
       browseable = No 
       guest ok = Yes 
       path = /var/spool/samba 
       printable = Yes 

[print$] 
       comment = Printer Drivers 
       path = /samba/var/Printer_drivers 
       read only = No 

[Centralino-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = centralino 

[Collaudo-lame-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = collaudo-lame 

[Contabilita-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = contabilita 

[Etichette-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = etichette 

[Plotter-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = plotter
[Schede-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = schede 

[Segreteria-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = segreteria 

[Magazzino-lame-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = magazzino-lame 

[progettazione-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = progettazione 

[sales-printer] 
       path = /var/spool/samba/ 
       printable = Yes 
       printer name = sales 

[pneumatica-printer] 
       path = /var/spool/samba 
       printable = Yes 
       printer name = pneumatica









 

 


Categorised as: Linux | Samba | Work

Comments are disabled on this post


Comments are closed.


Hide picture