You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
4.4 KiB

  1. [global]
  2. netbios name = |NAME|
  3. interfaces = |INTERFACES|
  4. server string = |DESCRIPTION|
  5. unix charset = |CHARSET|
  6. workgroup = |WORKGROUP|
  7. ## This global parameter allows the Samba admin to limit what interfaces on a machine will serve SMB requests.
  8. bind interfaces only = yes
  9. ## time for inactive connections to-be closed in minutes
  10. deadtime = 15
  11. ## disable core dumps
  12. enable core files = no
  13. ## set security (auto, user, domain, ads)
  14. security = user
  15. ## This parameter controls whether a remote client is allowed or required to use SMB encryption.
  16. ## It has different effects depending on whether the connection uses SMB1 or SMB2 and newer:
  17. ## 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.
  18. ## 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.
  19. ##(default/auto,desired,required,off)
  20. #smb encrypt = default
  21. ## set invalid users
  22. invalid users = root
  23. ## map unknow users to guest
  24. map to guest = Bad User
  25. ## allow client access to accounts that have null passwords.
  26. null passwords = yes
  27. ## The old plaintext passdb backend. Some Samba features will not work if this passdb backend is used. (NOTE: enabled for size reasons)
  28. ## (tdbsam,smbpasswd,ldapsam)
  29. passdb backend = smbpasswd
  30. ## Set location of smbpasswd ('smbd -b' will show default compiled location)
  31. #smb passwd file = /etc/samba/smbpasswd
  32. ## LAN/WAN options (IPTOS_LOWDELAY TCP_NODELAY) WAN (IPTOS_THROUGHPUT)
  33. socket options = IPTOS_LOWDELAY TCP_NODELAY
  34. ## lower CPU useage if supported
  35. use sendfile = yes
  36. ## samba will behave as previous versions of Samba would and will fail the lock request immediately if the lock range cannot be obtained.
  37. #blocking locks = No
  38. ## disable loading of all printcap printers by default (iprint, cups, lpstat)
  39. load printers = No
  40. printcap name = /dev/null
  41. ## Enabling this parameter will disable Samba's support for the SPOOLSS set of MS-RPC's.
  42. disable spoolss = yes
  43. ## This parameters controls how printer status information is interpreted on your system.
  44. ## (BSD, AIX, LPRNG, PLP, SYSV, HPUX, QNX, SOFTQ)
  45. printing = bsd
  46. ## Disable that nmbd is acting as a WINS server for unknow netbios names
  47. #dns proxy = No
  48. ## win/unix user mapping backend
  49. #idmap config * : backend = tdb
  50. ## Allows the server name that is advertised through MDNS to be set to the hostname rather than the Samba NETBIOS name.
  51. ## This allows an administrator to make Samba registered MDNS records match the case of the hostname rather than being in all capitals.
  52. ## (netbios, mdns)
  53. mdns name = mdns
  54. ## Clients that only support netbios won't be able to see your samba server when netbios support is disabled.
  55. #disable netbios = Yes
  56. ## Setting this value to no will cause nmbd never to become a local master browser.
  57. #local master = no
  58. ## (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.
  59. #preferred master = yes
  60. ## (445 139) Specifies which ports the server should listen on for SMB traffic.
  61. ## 139 is netbios/nmbd
  62. #smb ports = 445 139
  63. ## This is a list of files and directories that are neither visible nor accessible.
  64. ## 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.
  65. veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/
  66. ## 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.
  67. delete veto files = yes
  68. ################ Filesystem and creation rules ################
  69. ## reported filesystem type (NTFS,Samba,FAT)
  70. #fstype = FAT
  71. ## 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.
  72. #dos filemode = Yes
  73. ## file/dir creating rules
  74. #create mask = 0666
  75. #directory mask = 0777
  76. #force group = root
  77. #force user = root
  78. #inherit owner = windows and unix
  79. ################################################################