Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. # See smb.conf.example for a more detailed config file or
  2. # read the smb.conf manpage.
  3. # Run 'testparm' to verify the config is correct after
  4. # you modified it.
  5.  
  6.  
  7. [global]
  8.  
  9. workgroup = SILAR
  10. realm = SILAR.LOCAL
  11.  
  12. interfaces = lo enp6s0
  13. template homedir = /home/%U
  14. template shell = /bin/bash
  15. kerberos method = system keytab
  16. dedicated keytab file = /etc/krb5.keytab
  17. security = ads
  18. map acl inherit = Yes
  19. vfs objects = acl_xattr
  20.  
  21. idmap config * : backend = tdb
  22. idmap config * : range = 10000-20000
  23. idmap config SILAR : backend = rid
  24. idmap config SILAR : range = 2000000-29999999
  25.  
  26. template shell = /bin/bash
  27. template homedir = /home/%U
  28.  
  29. passdb backend = tdbsam
  30.  
  31. load printers = no
  32. disable spoolss = Yes
  33. show add printer wizard = No
  34. cups options = raw
  35. winbind separator = ~
  36. winbind use default domain = yes
  37. winbind refresh tickets = yes
  38. winbind offline logon = yes
  39. winbind enum groups = no
  40. winbind enum users = no
  41. browseable = yes
  42.  
  43.  
  44. # Согласно описанию из самбы с @ начинается группа, а имя доменного юзера пишется просто так безо всяких знаков.
  45. # При этом перечисление идет через запятую
  46. # Так же для ограничения прав доступа надо сначала указать что шара доступна только в режиме r/o (read only = yes),
  47. # при этом порядок настроек значения не играет
  48.  
  49.  
  50. [Projects]
  51. comment = shared
  52. path = /opt/shared/Projects
  53. force user = admin
  54. force group = projects
  55. valid users = @group
  56. write list = user1, user2
  57. read only = yes
  58. force create mode = 0770
  59. create mask = 6775
  60. directory mask = 6775
  61. access based share enum = Yes
  62. hide unreadable = Yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement