NoPaste

smb.conf

von KBDCALLS
Beschreibung:
Samba 4.7.3
Snippet erstellt:
26.12.2017 13:27:16
Snippet wird automatisch gelöscht:
Niemals

Dein Code:
  1. [global]
  2.         # No .tld
  3.         workgroup = Domaine
  4.         # With .tld
  5.         realm = Domaine.INTERNAL
  6.         server string = %h server (Samba %v)
  7.         # Active Directory System
  8.         security = ads
  9.         # Just a member server
  10.         local master = no
  11.         domain master = no
  12.         preferred master = no
  13.         dns proxy = no
  14.         winbind enum users = yes
  15.         winbind enum groups = yes
  16.         winbind uid = 10000-20000
  17.         winbind gid = 10000-20000
  18.         # This way users log in with username instead of username@example.org
  19.         winbind use default domain = yes
  20.         # Inherit groups in groups
  21.         winbind nested groups = yes
  22.         winbind refresh tickets = yes
  23.         winbind offline logon = true
  24.         interfaces = eth0 lo
  25.         syslog = 0
  26.         log file = /var/log/samba/log.%m
  27.         log level = 2
  28.         max log size = 1000
  29.         panic action = /usr/share/samba/panic-action %d
  30.         invalid users = root
  31.         # Becomes /home/example/username
  32.         template homedir = /home/%D/%U
  33.         # No shell access
  34.         template shell = /bin/bash
  35.         winbind offline logon = yes
  36.         winbind refresh tickets = yes
  37.         client use spnego = yes
  38.         client ntlmv2 auth = yes
  39.         encrypt passwords = true
  40.         restrict anonymous = 2
  41.  
  42.         #Drucker deaktivieren:
  43.         printcap name = /dev/null
  44.         load printers = no
  45.         printing = bsd
  46.         show add printer wizard = no
  47.         disable spoolss = yes
  48.  
  49.         # Works both in samba 3.2 and 3.6.        
  50.         idmap backend = tdb
  51.         idmap uid = 10000-99999
  52.         idmap gid = 10000-99999
  53.         # no .tld
  54.         idmap config * : backend = tdb
  55.         idmap config * : range = 10000-30000
  56.         #idmap config Domaine :backend = rid
  57.         #idmap config Domaine :range = 10000-99999
  58.         winbind nss info = tfc2307
  59.         idmap config Domaine : backend = ad
  60.         idmap config Domaine : schema_mode = rfc2307
  61.         idmap config Domaine : range = 30000-40000
  62.         idmap_ldb:use rfc2307 = yes
  63.         winbind cache time = 60
  64.         vfs objects = acl_xattr
  65.         map acl inherit = yes
  66.         store dos attributes = yes
  67.         unix extensions = no
  68.         reset on zero vc = yes
  69.         veto files = /.bash_logout/.bash_profile/.bash_history/.bashrc/.profile/.gnupg/
  70.         hide unreadable = yes
  71.  
  72.         #speed
  73.         max xmit = 65535
  74.         socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65535 SO_RCVBUF=65535
  75.         read raw = yes
  76.         write raw = yes
  77.         max connections = 65535
  78.         max open files = 65535
  79.  
  80. [DATA1]
  81.         comment = 2 TB Share
  82.         path = /mnt/data7/
  83.         read only = No
  84.         create mask = 0754
  85.         guest ok = Yes
  86.         hide files = /lost+found/:2eFBCLockFolder/.FBCLockFolder/:2eFBCIndex/.FBCIndex/TheVolumeSettingsFolder/TheFindByContentFolder/Temporary Items/Network Trash Folder/.AppleDB/:2eVolumeIcon.icns/.VolumeIcon.icns/Icon/.AppleDouble/.AppleDesktop/desktop.ini/RECYCLER/.apdisk/
  87.         writeable = yes
  88.         force group = domänen-benutzer
  89.         #valid users = @domänen-benutzer
  90.  
  91. [TEST]
  92.         comment = Test - Share
  93.         path = /home/Domaine/testbenutzer/
  94.         read only = No
  95.         create mask = 0754
  96.         guest ok = Yes
  97.         hide dot files = No
  98.         hide files = /lost+found/:2eFBCLockFolder/.FBCLockFolder/:2eFBCIndex/.FBCIndex/TheVolumeSettingsFolder/TheFindByContentFolder/Temporary Items/Network Trash Folder/.AppleDB/:2eVolumeIcon.icns/.VolumeIcon.icns/Icon/.AppleDouble/.AppleDesktop/desktop.ini/RECYCLER/.apdisk/

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. Alternativ kannst du den gesamten Eintrag auch als Datei herunterladen.