Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. [global]
  2. ; General server settings
  3. netbios name = server
  4. server string =
  5. workgroup = MSHOME
  6. announce version = 5.0
  7. socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
  8.  
  9. passdb backend = tdbsam
  10. security = share
  11. null passwords = true
  12. username map = /etc/samba/smbusers
  13. name resolve order = hosts wins bcast
  14.  
  15. wins support = yes
  16.  
  17. printing = CUPS
  18. printcap name = CUPS
  19.  
  20. syslog = 1
  21. syslog only = yes
  22.  
  23. guest account = nobody
  24.  
  25. ; NOTE: If you need access to the user home directories uncomment the
  26. ; lines below and adjust the settings to your hearts content.
  27. ;[homes]
  28. ;valid users = %S
  29. ;create mode = 0600
  30. ;directory mode = 0755
  31. ;browseable = no
  32. ;read only = no
  33. ;veto files = /*.{*}/.*/mail/bin/
  34.  
  35. ; NOTE: Only needed if you run samba as a primary domain controller.
  36. ; Not needed as this config doesn't cover that matter.
  37. ;[netlogon]
  38. ;path = /var/lib/samba/netlogon
  39. ;admin users = Administrator
  40. ;valid users = %U
  41. ;read only = no
  42.  
  43. ; NOTE: Again - only needed if you're running a primary domain controller.
  44. ;[Profiles]
  45. ;path = /var/lib/samba/profiles
  46. ;valid users = %U
  47. ;create mode = 0600
  48. ;directory mode = 0700
  49. ;writeable = yes
  50. ;browseable = no
  51.  
  52. ; NOTE: Inside this place you may build a printer driver repository for
  53. ; Windows - I'll cover this topic in another HOWTO.
  54. [print$]
  55. path = /var/lib/samba/printers
  56. browseable = yes
  57. guest ok = yes
  58. read only = yes
  59. write list = root
  60. create mask = 0664
  61. directory mask = 0775
  62.  
  63. [printers]
  64. path = /tmp
  65. printable = yes
  66. guest ok = yes
  67. browseable = no
  68.  
  69. ; Uncomment if you need to share your CD-/DVD-ROM Drive
  70. ;[DVD-ROM Drive]
  71. ;path = /media/cdrom
  72. ;browseable = yes
  73. ;read only = yes
  74. ;guest ok = yes
  75.  
  76. [files]
  77. path = /home/samba/
  78. browseable = yes
  79. read only = no
  80. guest ok = yes
  81. create mask = 0644
  82. directory mask = 0755
  83.  
  84. [www]
  85. path = /var/www
  86. public = yes
  87. browseable = yes
  88. read only = no
  89. guest ok = yes
  90. create mask = 0644
  91. directory mask = 0755
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement