Advertisement
Guest User

/usr/share/defaults/samba/smb.conf

a guest
Feb 14th, 2018
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. # This is the default Solus Samba configuration file.
  2. #
  3. # Any line which starts with a ; (semi-colon) or a # (hash)
  4. # is a comment and is ignored. In this example we will use a #
  5. # for commentry and a ; for parts of the config file that you
  6. # may wish to enable
  7. #
  8. # If you need to change any settings, you should add these settings
  9. # to /etc/samba/smb.conf and they will override any settings in the
  10. # present file.
  11. #
  12. # NOTE: Whenever you modify smb.conf, you should run the command "testparm"
  13. # to check that you have not made any basic syntactic errors.
  14. #
  15. #======================= Home share settings =================================
  16. [homes]
  17. comment = Home Directories
  18. browseable = no
  19. writable = yes
  20.  
  21. #======================= Global Settings =====================================
  22. [global]
  23.  
  24. # Default Solus Samba configuration options
  25. #
  26. workgroup = WORKGROUP
  27. server string = Samba server (version: %v, protocol: %R)
  28. server role = standalone server
  29. # this tells Samba to use a separate log file for each machine that connects
  30. log file = /var/log/samba/log.%m
  31. # Put a capping on the size of the log files (in Kb).
  32. max log size = 50
  33. # level 1=WARN, 2=NOTICE, 3=INFO, 4 and up = DEBUG
  34. log level = 2 auth:3 smb:3
  35. passdb backend = tdbsam
  36. # don't make files executable by default
  37. create mask = 0644
  38.  
  39. # By default, only allow hosts from RFC1918 addresses (i.e. private addresses)
  40. #
  41. hosts allow = 127.0.0. 10. 172.16.0.0/255.240.0.0 192.168.
  42.  
  43. # The 'sambaguest' account is a system account with no login rights
  44. # Its only job is to isolate samba guest access (think anonymous FTP)
  45. # It's needed because Solus enables guest-access to user shares by
  46. # default for convenience's sake.
  47. #
  48. guest account = sambaguest
  49. map to guest = Bad User
  50.  
  51. # Set up usershare functionality where users can set up shares themselves.
  52. # The usershare path contains configuration snippets and is writable for
  53. # members of the group 'users' (Solus-specific configuration).
  54. # By default users can only edit their own shares (sticky bit is set on dir).
  55. # Users can allow guest access to shares.
  56. #
  57. # Allowing access to named users will require said users to be added to the
  58. # samba login database like so:
  59. #
  60. # 'sudo smbpasswd -a some_user' # adds some_user to the samba login database
  61. # 'sudo smbpasswd -e some_user' # enables some_user's samba login
  62. #
  63. usershare path = /var/lib/samba/usershare
  64. usershare max shares = 100
  65. usershare allow guests = yes
  66.  
  67. # Disable sharing of printers, as supported versions of Windows can all
  68. # be configured to connect directly to CUPS via IPP (this avoids the same
  69. # printer showing up in multiple guises on the network).
  70. # https://serverfault.com/questions/207510/how-do-you-disable-smb-printing-support#308927
  71. #
  72. load printers = no
  73. printing = bsd
  74. printcap name = /dev/null
  75. disable spoolss = yes
  76.  
  77. # Give users the option to add custom configuration directives
  78. # in the default system /etc/samba/smb.conf file
  79. #
  80. include = /etc/samba/smb.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement