Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.33 KB | None | 0 0
  1. [global]
  2. log file = /var/log/samba/log.%m
  3. guest account = xxxx
  4. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  5. obey pam restrictions = yes
  6. wins server = 192.168.1.1
  7. map to guest = bad user
  8. encrypt passwords = true
  9. public = yes
  10. passdb backend = tdbsam
  11. passwd program = /usr/bin/passwd %u
  12. dns proxy = no
  13. netbios name = HTPC
  14. writeable = yes
  15. server string = %h server (Samba, Ubuntu)
  16. unix password sync = yes
  17. remote announce = 192.168.1.3/HOME 192.168.1.23/HOME
  18. workgroup = HOME
  19. os level = 20
  20. syslog = 0
  21. usershare allow guests = yes
  22. panic action = /usr/share/samba/panic-action %d
  23. preferred master = no
  24. max log size = 1000
  25. pam password change = yes
  26.  
  27. ## Browsing/Identification ###
  28.  
  29. # Change this to the workgroup/NT-domain name your Samba server will part of
  30.  
  31. # server string is the equivalent of the NT Description field
  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. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  39.  
  40. # This will prevent nmbd to search for NetBIOS names through DNS.
  41.  
  42. # What naming service and in what order should we use to resolve host names
  43. # to IP addresses
  44. ; name resolve order = lmhosts host wins bcast
  45.  
  46. #### Networking ####
  47.  
  48. # The specific set of interfaces / networks to bind to
  49. # This can be either the interface name or an IP address/netmask;
  50. # interface names are normally preferred
  51. ; interfaces = 127.0.0.0/8 eth0
  52.  
  53. # Only bind to the named interfaces and/or networks; you must use the
  54. # 'interfaces' option above to use this.
  55. # It is recommended that you enable this feature if your Samba machine is
  56. # not protected by a firewall or is a firewall itself. However, this
  57. # option cannot handle dynamic or non-broadcast interfaces correctly.
  58. ; bind interfaces only = yes
  59.  
  60.  
  61.  
  62. #### Debugging/Accounting ####
  63.  
  64. # This tells Samba to use a separate log file for each machine
  65. # that connects
  66.  
  67. # Cap the size of the individual log files (in KiB).
  68.  
  69. # If you want Samba to only log through syslog then set the following
  70. # parameter to 'yes'.
  71. # syslog only = no
  72.  
  73. # We want Samba to log a minimum amount of information to syslog. Everything
  74. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  75. # through syslog you should set the following parameter to something higher.
  76.  
  77. # Do something sensible when Samba crashes: mail the admin a backtrace
  78.  
  79.  
  80. ####### Authentication #######
  81.  
  82. # "security = user" is always a good idea. This will require a Unix account
  83. # in this server for every user accessing the server. See
  84. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  85. # in the samba-doc package for details.
  86. # security = user
  87.  
  88. # You may wish to use password encryption. See the section on
  89. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  90.  
  91. # If you are using encrypted passwords, Samba will need to know what
  92. # password database type you are using.
  93.  
  94.  
  95. # This boolean parameter controls whether Samba attempts to sync the Unix
  96. # password with the SMB password when the encrypted SMB password in the
  97. # passdb is changed.
  98.  
  99. # For Unix password sync to work on a Debian GNU/Linux system, the following
  100. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  101. # sending the correct chat script for the passwd program in Debian Sarge).
  102.  
  103. # This boolean controls whether PAM will be used for password changes
  104. # when requested by an SMB client instead of the program listed in
  105. # 'passwd program'. The default is 'no'.
  106.  
  107. # This option controls how unsuccessful authentication attempts are mapped
  108. # to anonymous connections
  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.  
  217. #======================= Share Definitions =======================
  218.  
  219. # Un-comment the following (and tweak the other settings below to suit)
  220. # to enable the default home directory shares. This will share each
  221. # user's home director as \\server\username
  222. ;[homes]
  223. ; comment = Home Directories
  224. ; browseable = no
  225.  
  226. # By default, the home directories are exported read-only. Change the
  227. # next parameter to 'no' if you want to be able to write to them.
  228. ; read only = yes
  229.  
  230. # File creation mask is set to 0700 for security reasons. If you want to
  231. # create files with group=rw permissions, set next parameter to 0775.
  232. ; create mask = 0700
  233.  
  234. # Directory creation mask is set to 0700 for security reasons. If you want to
  235. # create dirs. with group=rw permissions, set next parameter to 0775.
  236. ; directory mask = 0700
  237.  
  238. # By default, \\server\username shares can be connected to by anyone
  239. # with access to the samba server. Un-comment the following parameter
  240. # to make sure that only "username" can connect to \\server\username
  241. # The following parameter makes sure that only "username" can connect
  242. #
  243. # This might need tweaking when using external authentication schemes
  244. ; valid users = %S
  245.  
  246. # Un-comment the following and create the netlogon directory for Domain Logons
  247. # (you need to configure Samba to act as a domain controller too.)
  248. ;[netlogon]
  249. ; comment = Network Logon Service
  250. ; path = /home/samba/netlogon
  251. ; guest ok = yes
  252. ; read only = yes
  253.  
  254. # Un-comment the following and create the profiles directory to store
  255. # users profiles (see the "logon path" option above)
  256. # (you need to configure Samba to act as a domain controller too.)
  257. # The path below should be writable by all users so that their
  258. # profile directory may be created the first time they log on
  259. ;[profiles]
  260. ; comment = Users profiles
  261. ; path = /home/samba/profiles
  262. ; guest ok = no
  263. ; browseable = no
  264. ; create mask = 0600
  265. ; directory mask = 0700
  266.  
  267. [printers]
  268. comment = All Printers
  269. browseable = no
  270. path = /var/spool/samba
  271. printable = yes
  272. guest ok = no
  273. read only = yes
  274. create mask = 0700
  275.  
  276. # Windows clients look for this share name as a source of downloadable
  277. # printer drivers
  278. [print$]
  279. comment = Printer Drivers
  280. path = /var/lib/samba/printers
  281. browseable = yes
  282. read only = yes
  283. guest ok = no
  284. # Uncomment to allow remote administration of Windows print drivers.
  285. # You may need to replace 'lpadmin' with the name of the group your
  286. # admin users are members of.
  287. # Please note that you also need to set appropriate Unix permissions
  288. # to the drivers directory for these users to have write rights in it
  289. ; write list = root, @lpadmin
  290.  
  291. # A sample share for sharing your CD-ROM with others.
  292. ;[cdrom]
  293. ; comment = Samba server's CD-ROM
  294. ; read only = yes
  295. ; locking = no
  296. ; path = /cdrom
  297. ; guest ok = yes
  298.  
  299. # The next two parameters show how to auto-mount a CD-ROM when the
  300. # cdrom share is accesed. For this to work /etc/fstab must contain
  301. # an entry like this:
  302. #
  303. # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
  304. #
  305. # The CD-ROM gets unmounted automatically after the connection to the
  306. #
  307. # If you don't want to use auto-mounting/unmounting make sure the CD
  308. # is mounted on /cdrom
  309. #
  310. ; preexec = /bin/mount /cdrom
  311. ; postexec = /bin/umount /cdrom
  312.  
  313.  
  314. [LocalDrive]
  315. path = xx
  316.  
  317. [Three]
  318. path = xx
  319. etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement