Luke_

smb.conf2

Jul 17th, 2016
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. #
  2. # Sample configuration file for the Samba suite for Debian GNU/Linux.
  3. #
  4. #
  5. # This is the main Samba configuration file. You should read the
  6. # smb.conf(5) manual page in order to understand the options listed
  7. # here. Samba has a huge number of configurable options most of which
  8. # are not shown in this example
  9. #
  10. # Some options that are often worth tuning have been included as
  11. # commented-out examples in this file.
  12. # - When such options are commented with ";", the proposed setting
  13. # differs from the default Samba behaviour
  14. # - When commented with "#", the proposed setting is the default
  15. # behaviour of Samba but the option is considered important
  16. # enough to be mentioned here
  17. #
  18. # NOTE: Whenever you modify this file you should run the command
  19. # "testparm" to check that you have not made any basic syntactic
  20. # errors.
  21. #======================= Global Settings =======================
  22.  
  23. [global]
  24. workgroup = WORKGROUP
  25. wins support = no
  26. dns proxy = yes
  27. log file = /var/log/samba/log.%m
  28. max log size = 1000
  29. syslog = 0
  30. panic action = /usr/share/samba/panic-action %d
  31. server role = standalone server
  32. passdb backend = tdbsam
  33. obey pam restrictions = yes
  34. unix password sync = yes
  35. passwd program = /usr/bin/passwd %u
  36. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  37. pam password change = yes
  38. map to guest = bad user
  39. usershare allow guests = yes
  40.  
  41. [homes]
  42. comment = Home Directories
  43. browseable = no
  44. # By default, the home directories are exported read-only. Change the
  45. # next parameter to 'no' if you want to be able to write to them.
  46. read only = no
  47. # File creation mask is set to 0700 for security reasons. If you want to
  48. # create files with group=rw permissions, set next parameter to 0775.
  49. create mask = 0700
  50. # Directory creation mask is set to 0700 for security reasons. If you want to
  51. # create dirs. with group=rw permissions, set next parameter to 0775.
  52. directory mask = 0700
  53. # By default, \\server\username shares can be connected to by anyone
  54. # with access to the samba server.
  55. # The following parameter makes sure that only "username" can connect
  56. # to \\server\username
  57. # This might need tweaking when using external authentication schemes
  58. valid users = %S
  59. # Un-comment the following and create the netlogon directory for Domain Logons
  60. # (you need to configure Samba to act as a domain controller too.)
  61.  
  62. ;[netlogon]
  63. ; comment = Network Logon Service
  64. ; path = /home/samba/netlogon
  65. ; guest ok = yes
  66. ; read only = yes
  67. # Un-comment the following and create the profiles directory to store
  68. # users profiles (see the "logon path" option above)
  69. # (you need to configure Samba to act as a domain controller too.)
  70. # The path below should be writable by all users so that their
  71. # profile directory may be created the first time they log on
  72.  
  73. ;[profiles]
  74. ; comment = Users profiles
  75. ; path = /home/samba/profiles
  76. ; guest ok = no
  77. ; browseable = no
  78. ; create mask = 0600
  79. ; directory mask = 0700
  80.  
  81. [printers]
  82. comment = All Printers
  83. browseable = no
  84. path = /var/spool/samba
  85. printable = yes
  86. guest ok = no
  87. read only = yes
  88. create mask = 0700
  89. # Windows clients look for this share name as a source of downloadable
  90. # printer drivers
  91.  
  92. [print$]
  93. comment = Printer Drivers
  94. path = /var/lib/samba/printers
  95. browseable = yes
  96. read only = yes
  97. guest ok = no
  98. # Uncomment to allow remote administration of Windows print drivers.
  99. # You may need to replace 'lpadmin' with the name of the group your
  100. # admin users are members of.
  101. # Please note that you also need to set appropriate Unix permissions
  102. # to the drivers directory for these users to have write rights in it
  103. ; write list = root, @lpadmin
  104.  
  105. [Backups]
  106. comment=Raspberry Pine Share
  107. path=/media/debian/ExternalHDD/Backups
  108. browseable=Yes
  109. writeable=Yes
  110. only guest=no
  111. create mask=0777
  112. directory mask=0777
  113. public=no
  114.  
  115. [Shared]
  116. comment=Raspberry Pine Share
  117. path=/media/debian/ExternalHDD/Shared
  118. browseable=Yes
  119. writeable=Yes
  120. only guest=no
  121. create mask=0777
  122. directory mask=0777
  123. public=no
  124.  
  125. [Downloads]
  126. comment=Raspberry Pine Share
  127. path=/media/debian/ExternalHDD/Downloads
  128. browseable=Yes
  129. writeable=Yes
  130. only guest=no
  131. create mask=0777
  132. directory mask=0777
  133. public=no
Advertisement
Add Comment
Please, Sign In to add comment