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

Advertising

Miscellany
Sunday, March 9th, 2008 at 7:36:02pm 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. #======================= Global Settings =======================
  21.  
  22. [global]
  23.         dns proxy = no
  24.         log file = /var/log/samba/log.%m
  25.         passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *passwd:*password\supdated\ssuccessfully* .
  26.         obey pam restrictions = yes
  27.         invalid users = root
  28.         socket options = TCP_NODELAY
  29.         encrypt passwords = true
  30.         syslog = 0
  31.         passdb backend = tdbsam
  32.         panic action = /usr/share/samba/panic-action %d
  33.         passwd program = /usr/bin/passwd %u
  34.         max log size = 1000
  35.  
  36. ## Browsing/Identification ###
  37.  
  38. # Change this to the workgroup/NT-domain name your Samba server will part of
  39.  
  40.  
  41. # server string is the equivalent of the NT Description field
  42.  
  43.  
  44. # Windows Internet Name Serving Support Section:
  45. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  46. ;   wins support = no
  47.  
  48. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  49. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  50. ;   wins server = w.x.y.z
  51.  
  52. # This will prevent nmbd to search for NetBIOS names through DNS.
  53.  
  54. # What naming service and in what order should we use to resolve host names
  55. # to IP addresses
  56. ;   name resolve order = lmhosts host wins bcast
  57.  
  58. #### Networking ####
  59.  
  60. # The specific set of interfaces / networks to bind to
  61. # This can be either the interface name or an IP address/netmask;
  62. # interface names are normally preferred
  63. ;   interfaces = 127.0.0.0/8 eth0
  64.  
  65. # Only bind to the named interfaces and/or networks; you must use the
  66. # 'interfaces' option above to use this.
  67. # It is recommended that you enable this feature if your Samba machine is
  68. # not protected by a firewall or is a firewall itself.  However, this
  69. # option cannot handle dynamic or non-broadcast interfaces correctly.
  70. ;   bind interfaces only = true
  71.  
  72.  
  73.  
  74. #### Debugging/Accounting ####
  75.  
  76. # This tells Samba to use a separate log file for each machine
  77. # that connects
  78.  
  79. # Put a capping on the size of the log files (in Kb).
  80.  
  81. # If you want Samba to only log through syslog then set the following
  82. # parameter to 'yes'.
  83. ;   syslog only = no
  84.  
  85. # We want Samba to log a minimum amount of information to syslog. Everything
  86. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  87. # through syslog you should set the following parameter to something higher.
  88.  
  89. # Do something sensible when Samba crashes: mail the admin a backtrace
  90.  
  91.  
  92. ####### Authentication #######
  93.  
  94. # "security = user" is always a good idea. This will require a Unix account
  95. # in this server for every user accessing the server. See
  96. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  97. # in the samba-doc package for details.
  98. ;   security = user
  99.  
  100. # You may wish to use password encryption.  See the section on
  101. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  102.  
  103. # If you are using encrypted passwords, Samba will need to know what
  104. # password database type you are using.
  105.  
  106.  
  107. ;   guest account = nobody
  108.  
  109. # This boolean parameter controls whether Samba attempts to sync the Unix
  110. # password with the SMB password when the encrypted SMB password in the
  111. # passdb is changed.
  112. ;   unix password sync = no
  113.  
  114. # For Unix password sync to work on a Debian GNU/Linux system, the following
  115. # parameters must be set (thanks to Ian Kahan <<[email protected]> for
  116. # sending the correct chat script for the passwd program in Debian Sarge).
  117.  
  118. # This boolean controls whether PAM will be used for password changes
  119. # when requested by an SMB client instead of the program listed in
  120. # 'passwd program'. The default is 'no'.
  121. ;   pam password change = no
  122.  
  123. ########## Domains ###########
  124.  
  125. # Is this machine able to authenticate users. Both PDC and BDC
  126. # must have this setting enabled. If you are the BDC you must
  127. # change the 'domain master' setting to no
  128. #
  129. ;   domain logons = yes
  130. #
  131. # The following setting only takes effect if 'domain logons' is set
  132. # It specifies the location of the user's profile directory
  133. # from the client point of view)
  134. # The following required a [profiles] share to be setup on the
  135. # samba server (see below)
  136. ;   logon path = \\%N\profiles\%U
  137. # Another common choice is storing the profile in the user's home directory
  138. ;   logon path = \\%N\%U\profile
  139.  
  140. # The following setting only takes effect if 'domain logons' is set
  141. # It specifies the location of a user's home directory (from the client
  142. # point of view)
  143. ;   logon drive = H:
  144. ;   logon home = \\%N\%U
  145.  
  146. # The following setting only takes effect if 'domain logons' is set
  147. # It specifies the script to run during logon. The script must be stored
  148. # in the [netlogon] share
  149. # NOTE: Must be store in 'DOS' file format convention
  150. ;   logon script = logon.cmd
  151.  
  152. # This allows Unix users to be created on the domain controller via the SAMR
  153. # RPC pipe.  The example command creates a user account with a disabled Unix
  154. # password; please adapt to your needs
  155. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  156.  
  157. ########## Printing ##########
  158.  
  159. # If you want to automatically load your printer list rather
  160. # than setting them up individually then you'll need this
  161. ;   load printers = yes
  162.  
  163. # lpr(ng) printing. You may wish to override the location of the
  164. # printcap file
  165. ;   printing = bsd
  166. ;   printcap name = /etc/printcap
  167.  
  168. # CUPS printing.  See also the cupsaddsmb(8) manpage in the
  169. # cupsys-client package.
  170. ;   printing = cups
  171. ;   printcap name = cups
  172.  
  173. # When using [print$], root is implicitly a 'printer admin', but you can
  174. # also give this right to other users to add drivers and set printer
  175. # properties
  176. ;   printer admin = @lpadmin
  177.  
  178.  
  179. ############ Misc ############
  180.  
  181. # Using the following line enables you to customise your configuration
  182. # on a per machine basis. The %m gets replaced with the netbios name
  183. # of the machine that is connecting
  184. ;   include = /home/samba/etc/smb.conf.%m
  185.  
  186. # Most people will find that this option gives better performance.
  187. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
  188. # for details
  189. # You may want to add the following on a Linux system:
  190. #         SO_RCVBUF=8192 SO_SNDBUF=8192
  191.  
  192.  
  193. [home]
  194.         writeable = yes
  195.         path = /home/nuxil

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