Advertisement
Guest User

Untitled

a guest
May 16th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. cat /etc/samba/smb.conf
  2.  
  3. ## @FileType: Pluto Sectioned Config File ##
  4. ## @Version: 2 ##
  5. ## @KeepSections: ##
  6. ## @RemoveSections: ##
  7.  
  8. [global]
  9. ## BEGIN : Domain and Hostname
  10.  
  11. workgroup = LinuxMCE
  12. server string = DCERouter
  13. netbios name = DCERouter
  14.  
  15. ## END : Domain and Hostname
  16. smb ports = 139
  17. log level = 2
  18. invalid users = root
  19. log file = /var/log/samba/log.%m
  20. max log size = 1000
  21. syslog = 0
  22. encrypt passwords = true
  23. socket options = TCP_NODELAY
  24. dns proxy = no
  25. passwd program = /usr/bin/passwd %u
  26. passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
  27. username map = /etc/samba/usermap.txt
  28. unix extensions = yes
  29. security = user
  30. ########## Printing ##########
  31.  
  32. # If you want to automatically load your printer list rather
  33. # than setting them up individually then you'll need this
  34. load printers = yes
  35.  
  36. # lpr(ng) printing. You may wish to override the location of the
  37. # printcap file
  38. ; printing = bsd
  39. ; printcap name = /etc/printcap
  40.  
  41. # CUPS printing. See also the cupsaddsmb(8) manpage in the
  42. # cupsys-client package.
  43. printing = cups
  44. printcap name = cups
  45.  
  46. [public]
  47. comment = public files
  48. browseable = yes
  49. writable = yes
  50. create mask = 0777
  51. directory mask = 0777
  52. path = /home/public/data
  53. public = no
  54.  
  55. [home]
  56. comment = shared home files
  57. browsable = yes
  58. writable = yes
  59. ## BEGIN : Home Hosts Allow
  60. ### END : Home Hosts Allow
  61. path = /home
  62. public = no
  63. guest ok = no
  64. force user = root
  65. force group = public
  66. create mask = 0774
  67. directory mask = 0775
  68. inherit acls = yes
  69. inherit uid = yes
  70. inherit owner = yes
  71. inherit permissions = yes
  72.  
  73. [printers]
  74. comment = All Printers
  75. browseable = no
  76. path = /var/spool/samba
  77. printable = yes
  78. guest ok = no
  79. read only = yes
  80. create mask = 0700
  81.  
  82. # Windows clients look for this share name as a source of downloadable
  83. # printer drivers
  84. [print$]
  85. comment = Printer Drivers
  86. path = /var/lib/samba/printers
  87. browseable = yes
  88. read only = yes
  89. guest ok = no
  90. # Uncomment to allow remote administration of Windows print drivers.
  91. # You may need to replace 'lpadmin' with the name of the group your
  92. # admin users are members of.
  93. # Please note that you also need to set appropriate Unix permissions
  94. # to the drivers directory for these users to have write rights in it
  95. ; write list = root, @lpadmin
  96.  
  97. ## BEGIN : User Shares
  98.  
  99.  
  100. [xxx]
  101. comment = xxx's private files
  102. browseable = yes
  103. writable = yes
  104. create mask = 0770
  105. directory mask = 0770
  106. path = /home/user_1
  107. public = no
  108.  
  109.  
  110. [yyy]
  111. comment = yyy's private files
  112. browseable = yes
  113. writable = yes
  114. create mask = 0770
  115. directory mask = 0770
  116. path = /home/user_2
  117. public = no
  118.  
  119. ## END : User Shares
  120.  
  121.  
  122. ## BEGIN : InternalStorageDevices
  123.  
  124.  
  125. [Storage52$]
  126. comment = Storage Device 52
  127. browseable = yes
  128. writable = yes
  129. create mask = 0770
  130. directory mask = 0770
  131. path = /mnt/device/52
  132. public = no
  133. guest ok = no
  134. force user = root
  135. force group = root
  136.  
  137. ## END : InternalStorageDevices
  138. [Data_Drive]
  139. comment = sdb3 data drive
  140. browseable = yes
  141. writable = yes
  142. create mask = 0770
  143. directory mask = 0770
  144. path =/mnt/sdb3
  145. public = yes
  146. guest ok = yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement