Guest User

konfig-samby

a guest
Jul 9th, 2013
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [global]
  2. local master = yes
  3. os level = 255
  4. preferred master = Yes
  5. workgroup = FAR.LOCAL
  6. server string = %h server
  7. netbios aliases = H2
  8. announce as = NT Server
  9. wins support = yes
  10. ; wins server = w.x.y.z
  11. dns proxy = no
  12. name resolve order = host lmhosts wins bcast
  13. interfaces = 127.0.0.0/8 eth1
  14. bind interfaces only = yes
  15. log file = /var/log/samba/log.%m
  16. max log size = 1000
  17. syslog = 0
  18. panic action = /usr/share/samba/panic-action %d
  19. security = user
  20. encrypt passwords = true
  21. passdb backend = tdbsam
  22. smb passwd file = /etc/samba/smbpasswd
  23. obey pam restrictions = yes
  24. unix password sync = yes
  25. passwd program = /usr/bin/passwd %u
  26. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  27. pam password change = yes
  28. map to guest = bad user
  29. guest account = nobody
  30. domain logons = yes
  31. logon path = \\%N\%U\profile
  32. logon drive = H:
  33. logon home = \\%N\%U
  34. logon script = %U.bat
  35. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  36. ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  37. ; add group script = /usr/sbin/addgroup --force-badname %g
  38.  
  39. load printers = no
  40. ; include = /home/samba/etc/smb.conf.%m
  41. domain master = yes
  42. ; idmap uid = 10000-20000
  43. ; idmap gid = 10000-20000
  44. ; template shell = /bin/bash
  45. ; winbind enum groups = yes
  46. ; winbind enum users = yes
  47. ; usershare max shares = 100
  48.  
  49. [homes]
  50. comment = Home Directories
  51. browseable = no
  52. read only = no
  53. create mask = 0700
  54. directory mask = 0700
  55. valid users = %S
  56.  
  57. [netlogon]
  58. comment = Network Logon Service
  59. path = /mnt/vol1/vol1/netlogon
  60. read only = yes
RAW Paste Data