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.

173 lines
6.9 KiB

  1. ;******************************************************************************
  2. ; File to define cifsd configuration parameters which are comparable with
  3. ; samba's ones
  4. ;
  5. ; Supported [global] level parameters list:
  6. ; - server string
  7. ; This controls what string will show up in browse lists next
  8. ; to the machine name
  9. ; - workgroup
  10. ; This controls what workgroup your server will appear to be
  11. ; in when queried by clients
  12. ; - netbios name
  13. ; This sets the NetBIOS name by which a SMB server is known.
  14. ; By default it is the same as the first component of the host's
  15. ; DNS name. If a machine is a browse server or logon server this
  16. ; name (or the first component of the hosts DNS name) will be
  17. ; the name that these services are advertised under.
  18. ; - server min protocol
  19. ; This setting controls the minimum protocol version that the
  20. ; server will allow the client to use.
  21. ; - server max protocol
  22. ; The value of the parameter (a string) is the highest protocol
  23. ; level that will be supported by the server.
  24. ; - server signing
  25. ; This controls whether the client is allowed or required to use
  26. ; SMB1 and SMB2 signing. Possible values are default, auto,
  27. ; mandatory and disabled.
  28. ; - guest account
  29. ; This is a username which will be used for access to services
  30. ; which are specified as guest ok.
  31. ; - max active sessions
  32. ; This option allows the number of simultaneous connections to
  33. ; a service to be limited.
  34. ; - ipc timeout
  35. ; This option specifies the number of seconds server will wait
  36. ; for the userspace to reply to heartbeat frames. If user space
  37. ; is down for more than `ipc timeout` seconds the server will
  38. ; reset itself - close all sessions and all TCP connections.
  39. ; - restrict anonymous
  40. ; The setting of this parameter determines whether user and
  41. ; group list information is returned for an anonymous connection.
  42. ; - map to guest
  43. ; This parameter can take four different values, which tell cifsd
  44. ; what to do with user login requests.(bad user
  45. ; - bind interfaces only
  46. ; This global parameter allows the cifsd admin to limit what
  47. ; interfaces on a machine will serve SMB requests.
  48. ; - interfaces
  49. ; This option allows you to override the default network
  50. ; interfaces list that cifsd will use for browsing. The option
  51. ; takes only list of interface name.
  52. ; - deadtime
  53. ; The value of the parameter (a decimal integer) represents
  54. ; the number of minutes of inactivity before a connection is
  55. ; considered dead, and it is disconnected. The deadtime only
  56. ; takes effect if the number of open files is zero.
  57. ; - root directory
  58. ; Sets up a root (base) directory for all shares. In some
  59. ; sense it's equal to chroot(). When this option set all shares'
  60. ; paths become relative to root directory, IOW the file name
  61. ; lookup resolves '/root directory/share path/file path' path.
  62. ;
  63. ; Supported [share] level parameters list:
  64. ; - comment
  65. ; comment string to associate with the new share
  66. ; - path
  67. ; This parameter specifies a directory to which the user of the
  68. ; service is to be given access.
  69. ; - guest ok
  70. ; If this parameter is yes for a service, then no password is
  71. ; required to connect to the service.
  72. ; - read only
  73. ; If this parameter is yes, then users of a service may not
  74. ; create or modify files in the service's directory.
  75. ; - browseable
  76. ; This controls whether this share is seen in the list of
  77. ; available shares in a net view and in the browse list.
  78. ; - write ok
  79. ; - writeable
  80. ; Inverted synonym for read only.
  81. ; - store dos attributes
  82. ; If this parameter is set cifsd attempts to first read DOS
  83. ; attributes (SYSTEM, HIDDEN, ARCHIVE or READ-ONLY) from a
  84. ; filesystem extended attribute, before mapping DOS attributes
  85. ; to UNIX permission bits (such as occurs with map hidden and
  86. ; map readonly).
  87. ; - oplocks
  88. ; This boolean option tells cifsd whether to issue oplocks
  89. ; (opportunistic locks) to file open requests on this share.
  90. ; - create mask
  91. ; When a file is created, the necessary permissions are calculated
  92. ; according to the mapping from DOS modes to UNIX permissions, and
  93. ; the resulting UNIX mode is then bit-wise 'AND'ed with this
  94. ; parameter.
  95. ; - directory mask
  96. ; This parameter is the octal modes which are used when converting
  97. ; DOS modes to UNIX modes when creating UNIX directories.
  98. ; - force group
  99. ; This specifies a UNIX group name that will be assigned as
  100. ; the default primary group for all users connecting to this
  101. ; service.
  102. ; - force user
  103. ; This specifies a UNIX user name that will be assigned as
  104. ; the default user for all users connecting to this service.
  105. ; - hide dot files
  106. ; This is a boolean parameter that controls whether files starting
  107. ; with a dot appear as hidden files.
  108. ; - hosts allow
  109. ; This parameter is a comma, space, or tab delimited set of hosts
  110. ; which are permitted to access a service
  111. ; - hosts deny
  112. ; The opposite of allow hosts - hosts listed here are NOT
  113. ; permitted access to services unless the specific services have
  114. ; their own lists to override this one. Where the lists conflict,
  115. ; the allow list takes precedence.
  116. ; - valid users
  117. ; This is a list of users that should be allowed to login to this
  118. ; service
  119. ; - invalid users
  120. ; This is a list of users that should not be allowed to login to
  121. ; this service.
  122. ; - read list
  123. ; This is a list of users that are given read-only access to
  124. ; a service.
  125. ; - write list
  126. ; This is a list of users that are given read-write access to
  127. ; a service.
  128. ; - max connections
  129. ; This option allows the number of simultaneous connections to
  130. ; a service to be limited.
  131. ; - veto files
  132. ; This is a list of files and directories that are neither visible
  133. ; nor accessible.
  134. ;
  135. ; Veto any files containing the word Security,
  136. ; any ending in .tmp, and any directory containing the
  137. ; word root.
  138. ; veto files = /*Security*/*.tmp/*root*/
  139. ;
  140. ; Veto the Apple specific files that a NetAtalk server
  141. ; creates.
  142. ; veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/
  143. ; - inherit owner
  144. ; The ownership for new files and directories should be controlled
  145. ; by the ownership of the parent directory.
  146. ; Valid options are yes or no.
  147. ; - inherit smack
  148. ; This parameter can be used to ensure that if smack label exist
  149. ; on parent directories.
  150. ; Valid options are yes or no.
  151. ; - force create mode
  152. ; This parameter specifies a set of UNIX mode bit permissions
  153. ; that will always be set on a file created by cifsd.
  154. ; - force directory mode
  155. ; This parameter specifies a set of UNIX mode bit permissions
  156. ; that will always be set on a directory created by cifsd.
  157. ;
  158. ; Rules to update this file:
  159. ; - Every [share] definition should start on new line
  160. ; - Every parameter should be indented with single tab
  161. ; - There should be single spaces around equal (eg: " = ")
  162. ; - Multiple parameters should be separated with comma
  163. ; eg: "invalid users = usr1,usr2,usr3"
  164. ;
  165. ; Make sure to configure the server after making changes to this file.
  166. ;******************************************************************************
  167. [global]
  168. netbios name = CIFSD
  169. [homes]
  170. comment = content server share
  171. path = /tmp