Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.19 KB | None | 0 0
  1. net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. Access denied.
  2.  
  3. # Sample configuration file for the Samba suite for Debian GNU/Linux.
  4. #
  5. #
  6. # This is the main Samba configuration file. You should read the
  7. # smb.conf(5) manual page in order to understand the options listed
  8. # here. Samba has a huge number of configurable options most of which
  9. # are not shown in this example
  10. #
  11. # Some options that are often worth tuning have been included as
  12. # commented-out examples in this file.
  13. # - When such options are commented with ";", the proposed setting
  14. # differs from the default Samba behaviour
  15. # - When commented with "#", the proposed setting is the default
  16. # behaviour of Samba but the option is considered important
  17. # enough to be mentioned here
  18. #
  19. # NOTE: Whenever you modify this file you should run the command
  20. # "testparm" to check that you have not made any basic syntactic
  21. # errors.
  22. #======================= Global Settings =======================
  23. [global]
  24. ## Browsing/Identification ###
  25. # Change this to the workgroup/NT-domain name your Samba server will part of
  26. workgroup = workgroup
  27. # server string is the equivalent of the NT Description field
  28. server string = %h server (Samba, Ubuntu)
  29. # Windows Internet Name Serving Support Section:
  30. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  31. # wins support = no
  32. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  33. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  34. ; wins server = w.x.y.z
  35. # This will prevent nmbd to search for NetBIOS names through DNS.
  36. dns proxy = no
  37. force user = arka
  38. force group = arka
  39. #### Networking ####
  40. # The specific set of interfaces / networks to bind to
  41. # This can be either the interface name or an IP address/netmask;
  42. # interface names are normally preferred
  43. ; interfaces = 127.0.0.0/8 eth0
  44. # Only bind to the named interfaces and/or networks; you must use the
  45. # 'interfaces' option above to use this.
  46. # It is recommended that you enable this feature if your Samba machine is
  47. # not protected by a firewall or is a firewall itself. However, this
  48. # option cannot handle dynamic or non-broadcast interfaces correctly.
  49. ; bind interfaces only = yes
  50. #### Debugging/Accounting ####
  51. # This tells Samba to use a separate log file for each machine
  52. # that connects
  53. log file = /var/log/samba/log.%m
  54. # Cap the size of the individual log files (in KiB).
  55. max log size = 1000
  56. # If you want Samba to only log through syslog then set the following
  57. # parameter to 'yes'.
  58. # syslog only = no
  59. # We want Samba to log a minimum amount of information to syslog. Everything
  60. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  61. # through syslog you should set the following parameter to something higher.
  62. syslog = 0
  63. # Do something sensible when Samba crashes: mail the admin a backtrace
  64. panic action = /usr/share/samba/panic-action %d
  65. ####### Authentication #######
  66. # Server role. Defines in which mode Samba will operate. Possible
  67. # values are "standalone server", "member server", "classic primary
  68. # domain controller", "classic backup domain controller", "active
  69. # directory domain controller".
  70. #
  71. # Most people will want "standalone sever" or "member server".
  72. # Running as "active directory domain controller" will require first
  73. # running "samba-tool domain provision" to wipe databases and create a
  74. # new domain.
  75. server role = standalone server
  76. # If you are using encrypted passwords, Samba will need to know what
  77. # password database type you are using.
  78. ; passdb backend = tdbsam
  79. obey pam restrictions = yes
  80. # This boolean parameter controls whether Samba attempts to sync the Unix
  81. # password with the SMB password when the encrypted SMB password in the
  82. # passdb is changed.
  83. unix password sync = yes
  84. # For Unix password sync to work on a Debian GNU/Linux system, the following
  85. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  86. # sending the correct chat script for the passwd program in Debian Sarge).
  87. passwd program = /usr/bin/passwd %u
  88. passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
  89. # This boolean controls whether PAM will be used for password changes
  90. # when requested by an SMB client instead of the program listed in
  91. # 'passwd program'. The default is 'no'.
  92. pam password change = yes
  93. # This option controls how unsuccessful authentication attempts are mapped
  94. # to anonymous connections
  95. map to guest = bad user
  96. ########## Domains ###########
  97. #
  98. # The following settings only takes effect if 'server role = primary
  99. # classic domain controller', 'server role = backup domain controller'
  100. # or 'domain logons' is set
  101. #
  102. # It specifies the location of the user's
  103. # profile directory from the client point of view) The following
  104. # required a [profiles] share to be setup on the samba server (see
  105. # below)
  106. ; logon path = \%Nprofiles%U
  107. # Another common choice is storing the profile in the user's home directory
  108. # (this is Samba's default)
  109. # logon path = \%N%Uprofile
  110. # The following setting only takes effect if 'domain logons' is set
  111. # It specifies the location of a user's home directory (from the client
  112. # point of view)
  113. ; logon drive = H:
  114. # logon home = \%N%U
  115. # The following setting only takes effect if 'domain logons' is set
  116. # It specifies the script to run during logon. The script must be stored
  117. # in the [netlogon] share
  118. # NOTE: Must be store in 'DOS' file format convention
  119. ; logon script = logon.cmd
  120. # This allows Unix users to be created on the domain controller via the SAMR
  121. # RPC pipe. The example command creates a user account with a disabled Unix
  122. # password; please adapt to your needs
  123. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  124. # This allows machine accounts to be created on the domain controller via the
  125. # SAMR RPC pipe.
  126. # The following assumes a "machines" group exists on the system
  127. ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  128. # This allows Unix groups to be created on the domain controller via the SAMR
  129. # RPC pipe.
  130. ; add group script = /usr/sbin/addgroup --force-badname %g
  131. ############ Misc ############
  132. # Using the following line enables you to customise your configuration
  133. # on a per machine basis. The %m gets replaced with the netbios name
  134. # of the machine that is connecting
  135. ; include = /home/samba/etc/smb.conf.%m
  136. # Some defaults for winbind (make sure you're not using the ranges
  137. # for something else.)
  138. ; idmap uid = 10000-20000
  139. ; idmap gid = 10000-20000
  140. ; template shell = /bin/bash
  141. # Setup usershare options to enable non-root users to share folders
  142. # with the net usershare command.
  143. # Maximum number of usershare. 0 (default) means that usershare is disabled.
  144. ; usershare max shares = 100
  145. # Allow users who've been granted usershare privileges to create
  146. # public shares, not just authenticated ones
  147. ; usershare allow guests = no
  148. #======================= Share Definitions =======================
  149. # Un-comment the following (and tweak the other settings below to suit)
  150. # to enable the default home directory shares. This will share each
  151. # user's home directory as \serverusername
  152. ;[homes]
  153. ; comment = Home Directories
  154. ; browseable = no
  155. # By default, the home directories are exported read-only. Change the
  156. # next parameter to 'no' if you want to be able to write to them.
  157. ; read only = yes
  158. # File creation mask is set to 0700 for security reasons. If you want to
  159. # create files with group=rw permissions, set next parameter to 0775.
  160. create mask = 0777
  161. # Directory creation mask is set to 0700 for security reasons. If you want to
  162. # create dirs. with group=rw permissions, set next parameter to 0775.
  163. directory mask = 0777
  164. # By default, \serverusername shares can be connected to by anyone
  165. # with access to the samba server.
  166. # Un-comment the following parameter to make sure that only "username"
  167. # can connect to \serverusername
  168. # This might need tweaking when using external authentication schemes
  169. valid users = "asantra"
  170. username map = /etc/samba/smbusers
  171. security = user
  172. ; encrypt passwords = yes
  173. guest ok = yes
  174. ; encrypt passwords = yes
  175. ; guest account = nobody
  176. ; encrypt passwords = yes
  177. ; guest account = nobody
  178. ; encrypt passwords = yes
  179. ; guest account = nobody
  180. # Un-comment the following and create the netlogon directory for Domain Logons
  181. # (you need to configure Samba to act as a domain controller too.)
  182. ;[netlogon]
  183. ; comment = Network Logon Service
  184. ; path = /home/samba/netlogon
  185. ; guest ok = yes
  186. ; read only = yes
  187. # Un-comment the following and create the profiles directory to store
  188. # users profiles (see the "logon path" option above)
  189. # (you need to configure Samba to act as a domain controller too.)
  190. # The path below should be writable by all users so that their
  191. # profile directory may be created the first time they log on
  192. ;[profiles]
  193. ; comment = Users profiles
  194. ; path = /home/samba/profiles
  195. ; guest ok = no
  196. ; browseable = no
  197. ; create mask = 0600
  198. ; directory mask = 0700
  199. # Share
  200. ;[arka_laptop]
  201. ; path = /home/arka/arka
  202. ; valid users = "asantra"
  203. ; read only = No
  204. ; create mask = 0777
  205. ; directory mask = 0777
  206. ; guest ok = no
  207. ;[Shares_1]
  208. ; path = /home/arka/Shares
  209. ; valid users = "asantra"
  210. ; read only = No
  211. ; create mask = 0777
  212. ; directory mask = 0777
  213. ; guest ok = no
  214. ;
  215. ;[lmg5]
  216. ; path = /home/arka/LatestMadGraph5
  217. ; valid users = "asantra"
  218. ; read only = No
  219. ; create mask = 0777
  220. ; directory mask = 0777
  221. ; guest ok = no
  222. [printers]
  223. comment = All Printers
  224. browseable = no
  225. path = /var/spool/samba
  226. printable = yes
  227. ; guest ok = no
  228. ; read only = yes
  229. create mask = 0700
  230. # Windows clients look for this share name as a source of downloadable
  231. # printer drivers
  232. [print$]
  233. comment = Printer Drivers
  234. path = /var/lib/samba/printers
  235. ; browseable = yes
  236. ; read only = yes
  237. ; guest ok = no
  238. # Uncomment to allow remote administration of Windows print drivers.
  239. # You may need to replace 'lpadmin' with the name of the group your
  240. # admin users are members of.
  241. # Please note that you also need to set appropriate Unix permissions
  242. # to the drivers directory for these users to have write rights in it
  243. ; write list = root, @lpadmin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement