Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1.  
  2. [global]
  3. unix password sync = Yes
  4. # General
  5. netbios name = Gateway
  6. workgroup = CLEARSYSTEM
  7. server string = MyServer
  8. security = user
  9. server max protocol = NT1
  10. ntlm auth = yes
  11.  
  12. # Logging
  13. log level = 1
  14. log file = /var/log/samba/%L-%m
  15. max log size = 0
  16. utmp = Yes
  17.  
  18. # Network
  19. bind interfaces only = No
  20. interfaces = lo
  21.  
  22. # Printing
  23. printcap name = /etc/printcap
  24. load printers = Yes
  25.  
  26. # Security settings
  27. guest account = guest
  28. #restrict anonymous = 2
  29.  
  30. # WINS
  31. wins support = Yes
  32. wins server =
  33.  
  34. # PDC/BDC
  35. domain logons = Yes
  36. add machine script = /usr/sbin/samba-add-machine "%u"
  37. logon drive = U:
  38. logon script = logon.cmd
  39. logon path =
  40. logon home = \\%L\%U
  41.  
  42. # Winbind
  43. idmap config * : backend = ldap
  44. idmap config * : range = 20000000-29999999
  45. winbind enum users = Yes
  46. winbind enum groups = Yes
  47. winbind expand groups = 1
  48. winbind offline logon = Yes
  49. winbind use default domain = true
  50. winbind separator = +
  51. template homedir = /home/%U
  52. template shell = /sbin/nologin
  53.  
  54. # Other
  55. preferred master = Yes
  56. domain master = Yes
  57. passwd program = /usr/sbin/userpasswd %u
  58. passwd chat = *password:* %n\n *password:* %n\n *successfully.*
  59. passwd chat timeout = 10
  60. username map = /etc/samba/smbusers
  61. wide links = No
  62. allow trusted domains = Yes
  63.  
  64. # LDAP settings
  65. include = /etc/samba/smb.ldap.conf
  66.  
  67. # Winbind LDAP settings
  68. include = /etc/samba/smb.winbind.conf
  69.  
  70. #============================ Share Definitions ==============================
  71.  
  72. # Flexshare
  73. # include = /etc/samba/flexshare.conf
  74.  
  75. [homes]
  76. comment = Home Directories
  77. path = /home/%U
  78. valid users = %D\%S, %D+%S, %S
  79. read only = No
  80. browseable = No
  81. available = Yes
  82.  
  83. [printers]
  84. comment = Print Spool
  85. path = /var/spool/samba
  86. printing = cups
  87. cups options = raw
  88. use client driver = Yes
  89. printable = Yes
  90. read only = No
  91. browseable = No
  92. available = No
  93.  
  94. [print$]
  95. comment = Printer Drivers
  96. path = /var/samba/drivers
  97. read only = No
  98. browseable = No
  99. available = No
  100.  
  101. [netlogon]
  102. comment = Network Logon Service
  103. path = /var/samba/netlogon
  104. read only = No
  105. locking = No
  106. browseable = No
  107. available = Yes
  108.  
  109. [profiles]
  110. comment = Profile Share
  111. path = /var/samba/profiles
  112. read only = No
  113. profile acls = Yes
  114. browseable = No
  115. available = No
  116. force group = domain_users
  117. force directory mode = 02775
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement