Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.34 KB | None | 0 0
  1. [DSMUfficio]
  2. delete readonly = yes
  3. writeable = yes
  4. path = /var/dsm/ufficio
  5. write list = tzanarella,jcangini,dlazzarato,mcazzoli,sgiombetti
  6. force group = dsm
  7. revalidate = yes
  8. comment = DSM share locale privata - solo autorizzati
  9. valid users = tzanarella,jcangini,dlazzarato,mcazzoli,sgiombetti
  10. create mode = 770
  11. directory mode = 770
  12.  
  13. [DSMPubblica]
  14. guest ok = yes
  15. guest account =
  16. writeable = yes
  17. delete readonly = yes
  18. path = /var/dsm/pubblica
  19. force directory mode = 777
  20. force create mode = 777
  21. comment = DSM share locale pubblica - senza restrizioni di accesso
  22. create mode = 777
  23. public = yes
  24. browsable = yes
  25. directory mode = 777
  26.  
  27. #
  28. # Sample configuration file for the Samba suite for Debian GNU/Linux.
  29. #
  30. #
  31. # This is the main Samba configuration file. You should read the
  32. # smb.conf(5) manual page in order to understand the options listed
  33. # here. Samba has a huge number of configurable options most of which
  34. # are not shown in this example
  35. #
  36. # Some options that are often worth tuning have been included as
  37. # commented-out examples in this file.
  38. # - When such options are commented with ";", the proposed setting
  39. # differs from the default Samba behaviour
  40. # - When commented with "#", the proposed setting is the default
  41. # behaviour of Samba but the option is considered important
  42. # enough to be mentioned here
  43. #
  44. # NOTE: Whenever you modify this file you should run the command
  45. # "testparm" to check that you have not made any basic syntactic
  46. # errors.
  47. # A well-established practice is to name the original file
  48. # "smb.conf.master" and create the "real" config file with
  49. # testparm -s smb.conf.master >smb.conf
  50. # This minimizes the size of the really used smb.conf file
  51. # which, according to the Samba Team, impacts performance
  52. # However, use this with caution if your smb.conf file contains nested
  53. # "include" statements. See Debian bug #483187 for a case
  54. # where using a master file is not a good idea.
  55. #
  56.  
  57. #======================= Global Settings =======================
  58.  
  59. [global]
  60.  
  61. ## Browsing/Identification ###
  62.  
  63. # Change this to the workgroup/NT-domain name your Samba server will part of
  64. workgroup = DSM
  65.  
  66. # server string is the equivalent of the NT Description field
  67. server string = %h server
  68.  
  69. # Windows Internet Name Serving Support Section:
  70. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  71. # wins support = no
  72.  
  73. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  74. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  75. ; wins server = w.x.y.z
  76.  
  77. # This will prevent nmbd to search for NetBIOS names through DNS.
  78. dns proxy = no
  79.  
  80. # What naming service and in what order should we use to resolve host names
  81. # to IP addresses
  82. ; name resolve order = lmhosts host wins bcast
  83.  
  84. #### Networking ####
  85.  
  86. # The specific set of interfaces / networks to bind to
  87. # This can be either the interface name or an IP address/netmask;
  88. # interface names are normally preferred
  89. ; interfaces = 127.0.0.0/8 eth0
  90.  
  91. # Only bind to the named interfaces and/or networks; you must use the
  92. # 'interfaces' option above to use this.
  93. # It is recommended that you enable this feature if your Samba machine is
  94. # not protected by a firewall or is a firewall itself. However, this
  95. # option cannot handle dynamic or non-broadcast interfaces correctly.
  96. ; bind interfaces only = yes
  97.  
  98.  
  99.  
  100. #### Debugging/Accounting ####
  101.  
  102. # This tells Samba to use a separate log file for each machine
  103. # that connects
  104. log file = /var/log/samba/log.%m
  105.  
  106. # Cap the size of the individual log files (in KiB).
  107. max log size = 1000
  108.  
  109. # If you want Samba to only log through syslog then set the following
  110. # parameter to 'yes'.
  111. # syslog only = no
  112.  
  113. # We want Samba to log a minimum amount of information to syslog. Everything
  114. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  115. # through syslog you should set the following parameter to something higher.
  116. syslog = 0
  117.  
  118. # Do something sensible when Samba crashes: mail the admin a backtrace
  119. panic action = /usr/share/samba/panic-action %d
  120.  
  121.  
  122. ####### Authentication #######
  123.  
  124. # "security = user" is always a good idea. This will require a Unix account
  125. # in this server for every user accessing the server. See
  126. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  127. # in the samba-doc package for details.
  128. # security = user
  129.  
  130. # You may wish to use password encryption. See the section on
  131. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  132. encrypt passwords = true
  133.  
  134. # If you are using encrypted passwords, Samba will need to know what
  135. # password database type you are using.
  136. passdb backend = tdbsam
  137.  
  138. obey pam restrictions = yes
  139.  
  140. # This boolean parameter controls whether Samba attempts to sync the Unix
  141. # password with the SMB password when the encrypted SMB password in the
  142. # passdb is changed.
  143. unix password sync = yes
  144.  
  145. # For Unix password sync to work on a Debian GNU/Linux system, the following
  146. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  147. # sending the correct chat script for the passwd program in Debian Sarge).
  148. passwd program = /usr/bin/passwd %u
  149. passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
  150.  
  151. # This boolean controls whether PAM will be used for password changes
  152. # when requested by an SMB client instead of the program listed in
  153. # 'passwd program'. The default is 'no'.
  154. pam password change = yes
  155.  
  156. ########## Domains ###########
  157.  
  158. # Is this machine able to authenticate users. Both PDC and BDC
  159. # must have this setting enabled. If you are the BDC you must
  160. # change the 'domain master' setting to no
  161. #
  162. ; domain logons = yes
  163. #
  164. # The following setting only takes effect if 'domain logons' is set
  165. # It specifies the location of the user's profile directory
  166. # from the client point of view)
  167. # The following required a [profiles] share to be setup on the
  168. # samba server (see below)
  169. ; logon path = \%Nprofiles%U
  170. # Another common choice is storing the profile in the user's home directory
  171. # (this is Samba's default)
  172. # logon path = \%N%Uprofile
  173.  
  174. # The following setting only takes effect if 'domain logons' is set
  175. # It specifies the location of a user's home directory (from the client
  176. # point of view)
  177. ; logon drive = H:
  178. # logon home = \%N%U
  179.  
  180. # The following setting only takes effect if 'domain logons' is set
  181. # It specifies the script to run during logon. The script must be stored
  182. # in the [netlogon] share
  183. # NOTE: Must be store in 'DOS' file format convention
  184. ; logon script = logon.cmd
  185.  
  186. # This allows Unix users to be created on the domain controller via the SAMR
  187. # RPC pipe. The example command creates a user account with a disabled Unix
  188. # password; please adapt to your needs
  189. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  190.  
  191. # This allows machine accounts to be created on the domain controller via the
  192. # SAMR RPC pipe.
  193. # The following assumes a "machines" group exists on the system
  194. ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  195.  
  196. # This allows Unix groups to be created on the domain controller via the SAMR
  197. # RPC pipe.
  198. ; add group script = /usr/sbin/addgroup --force-badname %g
  199.  
  200. ########## Printing ##########
  201.  
  202. # If you want to automatically load your printer list rather
  203. # than setting them up individually then you'll need this
  204. # load printers = yes
  205.  
  206. # lpr(ng) printing. You may wish to override the location of the
  207. # printcap file
  208. ; printing = bsd
  209. ; printcap name = /etc/printcap
  210.  
  211. # CUPS printing. See also the cupsaddsmb(8) manpage in the
  212. # cupsys-client package.
  213. ; printing = cups
  214. ; printcap name = cups
  215.  
  216. ############ Misc ############
  217.  
  218. # Using the following line enables you to customise your configuration
  219. # on a per machine basis. The %m gets replaced with the netbios name
  220. # of the machine that is connecting
  221. ; include = /home/samba/etc/smb.conf.%m
  222.  
  223. # Most people will find that this option gives better performance.
  224. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
  225. # for details
  226. # You may want to add the following on a Linux system:
  227. # SO_RCVBUF=8192 SO_SNDBUF=8192
  228. # socket options = TCP_NODELAY
  229.  
  230. # The following parameter is useful only if you have the linpopup package
  231. # installed. The samba maintainer and the linpopup maintainer are
  232. # working to ease installation and configuration of linpopup and samba.
  233. ; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
  234.  
  235. # Domain Master specifies Samba to be the Domain Master Browser. If this
  236. # machine will be configured as a BDC (a secondary logon server), you
  237. # must set this to 'no'; otherwise, the default behavior is recommended.
  238. # domain master = auto
  239.  
  240. # Some defaults for winbind (make sure you're not using the ranges
  241. # for something else.)
  242. ; idmap uid = 10000-20000
  243. ; idmap gid = 10000-20000
  244. ; template shell = /bin/bash
  245.  
  246. # The following was the default behaviour in sarge,
  247. # but samba upstream reverted the default because it might induce
  248. # performance issues in large organizations.
  249. # See Debian bug #368251 for some of the consequences of *not*
  250. # having this setting and smb.conf(5) for details.
  251. ; winbind enum groups = yes
  252. ; winbind enum users = yes
  253.  
  254. # Setup usershare options to enable non-root users to share folders
  255. # with the net usershare command.
  256.  
  257. # Maximum number of usershare. 0 (default) means that usershare is disabled.
  258. ; usershare max shares = 100
  259.  
  260. #======================= Share Definitions =======================
  261.  
  262. [homes]
  263. comment = Home Directories
  264. browseable = no
  265.  
  266. # By default, the home directories are exported read-only. Change the
  267. # next parameter to 'no' if you want to be able to write to them.
  268. read only = yes
  269.  
  270. # File creation mask is set to 0700 for security reasons. If you want to
  271. # create files with group=rw permissions, set next parameter to 0775.
  272. create mask = 0700
  273.  
  274. # Directory creation mask is set to 0700 for security reasons. If you want to
  275. # create dirs. with group=rw permissions, set next parameter to 0775.
  276. directory mask = 0700
  277.  
  278. # By default, \serverusername shares can be connected to by anyone
  279. # with access to the samba server.
  280. # The following parameter makes sure that only "username" can connect
  281. # to \serverusername
  282. # This might need tweaking when using external authentication schemes
  283. valid users = %S
  284.  
  285. # Un-comment the following and create the netlogon directory for Domain Logons
  286. # (you need to configure Samba to act as a domain controller too.)
  287. ;[netlogon]
  288. ; comment = Network Logon Service
  289. ; path = /home/samba/netlogon
  290. ; guest ok = yes
  291. ; read only = yes
  292.  
  293. # Un-comment the following and create the profiles directory to store
  294. # users profiles (see the "logon path" option above)
  295. # (you need to configure Samba to act as a domain controller too.)
  296. # The path below should be writable by all users so that their
  297. # profile directory may be created the first time they log on
  298. ;[profiles]
  299. ; comment = Users profiles
  300. ; path = /home/samba/profiles
  301. ; guest ok = no
  302. ; browseable = no
  303. ; create mask = 0600
  304. ; directory mask = 0700
  305.  
  306. [printers]
  307. comment = All Printers
  308. browseable = no
  309. path = /var/spool/samba
  310. printable = yes
  311. guest ok = no
  312. read only = yes
  313. create mask = 0700
  314.  
  315. # Windows clients look for this share name as a source of downloadable
  316. # printer drivers
  317. [print$]
  318. comment = Printer Drivers
  319. path = /var/lib/samba/printers
  320. browseable = yes
  321. read only = yes
  322. guest ok = no
  323. # Uncomment to allow remote administration of Windows print drivers.
  324. # You may need to replace 'lpadmin' with the name of the group your
  325. # admin users are members of.
  326. # Please note that you also need to set appropriate Unix permissions
  327. # to the drivers directory for these users to have write rights in it
  328. ; write list = root, @lpadmin
  329.  
  330. # A sample share for sharing your CD-ROM with others.
  331. ;[cdrom]
  332. ; comment = Samba server's CD-ROM
  333. ; read only = yes
  334. ; locking = no
  335. ; path = /cdrom
  336. ; guest ok = yes
  337.  
  338. # The next two parameters show how to auto-mount a CD-ROM when the
  339. # cdrom share is accesed. For this to work /etc/fstab must contain
  340. # an entry like this:
  341. #
  342. # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
  343. #
  344. # The CD-ROM gets unmounted automatically after the connection to the
  345. #
  346. # If you don't want to use auto-mounting/unmounting make sure the CD
  347. # is mounted on /cdrom
  348. #
  349. ; preexec = /bin/mount /cdrom
  350. ; postexec = /bin/umount /cdrom
  351.  
  352.  
  353. [DSMUfficio]
  354. delete readonly = yes
  355. writeable = yes
  356. path = /var/dsm/ufficio
  357. write list = tzanarella,jcangini,dlazzarato,mcazzoli,sgiombetti
  358. force group = dsm
  359. revalidate = yes
  360. comment = DSM share locale privata - solo autorizzati
  361. valid users = tzanarella,jcangini,dlazzarato,mcazzoli,sgiombetti
  362. create mode = 770
  363. directory mode = 770
  364.  
  365. [DSMPubblica]
  366. guest ok = yes
  367. guest account =
  368. writeable = yes
  369. delete readonly = yes
  370. path = /var/dsm/pubblica
  371. force directory mode = 777
  372. force create mode = 777
  373. comment = DSM share locale pubblica - senza restrizioni di accesso
  374. create mode = 777
  375. public = yes
  376. browsable = yes
  377. directory mode = 777
  378.  
  379. [global]
  380. workgroup = MYGROUP
  381. server string = Samba Server %v
  382. netbios name = debian
  383. security = user
  384. map to guest = bad user
  385. dns proxy = no
  386. #============= Share Definitions =================
  387. [adriano]
  388. force user = adriano
  389. path = /home/adriano
  390. browsable =yes
  391. writable = yes
  392. guest ok = yes
  393. read only = no
  394.  
  395. security = share
  396.  
  397. public = yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement