Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Someone
Friday, February 16th, 2007 at 7:45:37pm UTC 

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

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right worth-right