Guest User

Untitled

a guest
Oct 17th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. [global]
  2. netbios name = |NAME|
  3. interfaces = |INTERFACES|
  4. server string = |DESCRIPTION|
  5. unix charset = |CHARSET|
  6. workgroup = |WORKGROUP|
  7.  
  8. ## This global parameter allows the Samba admin to limit what interfaces on a machine will serve SMB requests.
  9. bind interfaces only = yes
  10.  
  11. ## time for inactive connections to-be closed in minutes
  12. deadtime = 15
  13.  
  14. ## disable core dumps
  15. enable core files = no
  16.  
  17. ## set security (auto, user, domain, ads)
  18. security = user
  19.  
  20. ## This parameter controls whether a remote client is allowed or required to use SMB encryption.
  21. ## It has different effects depending on whether the connection uses SMB1 or SMB2 and newer:
  22. ## If the connection uses SMB1, then this option controls the use of a Samba-specific extension to the SMB protocol introduced in Samba 3.2 that makes use of the Unix extensions.
  23. ## If the connection uses SMB2 or newer, then this option controls the use of the SMB-level encryption that is supported in SMB version 3.0 and above and available in Windows 8 and newer.
  24. ## (default/auto,desired,required,off)
  25. #smb encrypt = default
  26.  
  27. ## set invalid users
  28. invalid users = root
  29.  
  30. ## map unknow users to guest
  31. map to guest = Bad User
  32.  
  33. ## allow client access to accounts that have null passwords.
  34. null passwords = yes
  35.  
  36. ## The old plaintext passdb backend. Some Samba features will not work if this passdb backend is used. (NOTE: enabled for size reasons)
  37. ## (tdbsam,smbpasswd,ldapsam)
  38. passdb backend = smbpasswd
  39.  
  40. ## Set location of smbpasswd ('smbd -b' will show default compiled location)
  41. #smb passwd file = /etc/samba/smbpasswd
  42.  
  43. ## LAN (IPTOS_LOWDELAY TCP_NODELAY) WAN (IPTOS_THROUGHPUT) WiFi (SO_KEEPALIVE) try&error for buffer sizes (SO_RCVBUF=65536 SO_SNDBUF=65536)
  44. socket options = IPTOS_LOWDELAY TCP_NODELAY
  45.  
  46. ## If this integer parameter is set to a non-zero value, Samba will read from files asynchronously when the request size is bigger than this value.
  47. ## Note that it happens only for non-chained and non-chaining reads and when not using write cache.
  48. ## The only reasonable values for this parameter are 0 (no async I/O) and 1 (always do async I/O).
  49. ## (1/0)
  50. #aio read size = 0
  51. #aio write size = 0
  52.  
  53. ## If Samba has been built with asynchronous I/O support, Samba will not wait until write requests are finished before returning the result to the client for files listed in this parameter.
  54. ## Instead, Samba will immediately return that the write request has been finished successfully, no matter if the operation will succeed or not.
  55. ## This might speed up clients without aio support, but is really dangerous, because data could be lost and files could be damaged.
  56. #aio write behind = /*.tmp/
  57.  
  58. ## lower CPU useage if supported and aio is disabled (aio read size = 0 ; aio write size = 0)
  59. ## is this still broken? issue is from 2019 (NOTE: see https://bugzilla.samba.org/show_bug.cgi?id=14095 )
  60. ## (no, yes)
  61. #use sendfile = yes
  62.  
  63. ## samba will behave as previous versions of Samba would and will fail the lock request immediately if the lock range cannot be obtained.
  64. #blocking locks = No
  65.  
  66. ## disable loading of all printcap printers by default (iprint, cups, lpstat)
  67. load printers = No
  68. printcap name = /dev/null
  69.  
  70. ## Enabling this parameter will disable Samba's support for the SPOOLSS set of MS-RPC's.
  71. disable spoolss = yes
  72.  
  73. ## This parameters controls how printer status information is interpreted on your system.
  74. ## (BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, SOFTQ)
  75. printing = bsd
  76.  
  77. ## Disable that nmbd is acting as a WINS server for unknow netbios names
  78. #dns proxy = No
  79.  
  80. ## win/unix user mapping backend
  81. #idmap config * : backend = tdb
  82.  
  83. ## Allows the server name that is advertised through MDNS to be set to the hostname rather than the Samba NETBIOS name.
  84. ## This allows an administrator to make Samba registered MDNS records match the case of the hostname rather than being in all capitals.
  85. ## (netbios, mdns)
  86. mdns name = mdns
  87.  
  88. ## Clients that only support netbios won't be able to see your samba server when netbios support is disabled.
  89. #disable netbios = Yes
  90.  
  91. ## Setting this value to no will cause nmbd never to become a local master browser.
  92. #local master = no
  93.  
  94. ## (auto, yes) If this is set to yes, on startup, nmbd will force an election, and it will have a slight advantage in winning the election. It is recommended that this parameter is used in conjunction with domain master = yes, so that nmbd can guarantee becoming a domain master.
  95. #preferred master = yes
  96.  
  97. ## (445 139) Specifies which ports the server should listen on for SMB traffic.
  98. ## 139 is netbios/nmbd
  99. #smb ports = 445 139
  100.  
  101. ## This is a list of files and directories that are neither visible nor accessible.
  102. ## Each entry in the list must be separated by a '/', which allows spaces to be included in the entry. '*' and '?' can be used to specify multiple files or directories as in DOS wildcards.
  103. veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/
  104.  
  105. ## If a directory that is to be deleted contains nothing but veto files this deletion will fail unless you also set the delete veto files parameter to yes.
  106. delete veto files = yes
  107.  
  108. ################ Filesystem and creation rules ################
  109. ## reported filesystem type (NTFS,Samba,FAT)
  110. #fstype = FAT
  111.  
  112. ## Allows a user who has write access to the file (by whatever means, including an ACL permission) to modify the permissions (including ACL) on it.
  113. #dos filemode = Yes
  114.  
  115. ## file/dir creating rules
  116. #create mask = 0666
  117. #directory mask = 0777
  118. #force group = root
  119. #force user = root
  120. #inherit owner = windows and unix
  121. ################################################################
Add Comment
Please, Sign In to add comment