Advertisement
Guest User

Untitled

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