daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest May 6th, 2010 157 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. # This boolean parameter controls whether Samba attempts to sync the Unix
  3. # password with the SMB password when the encrypted SMB password in the
  4. # passdb is changed.
  5.  
  6. # For Unix password sync to work on a Debian GNU/Linux system, the following
  7. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  8. # sending the correct chat script for the passwd program in Debian Sarge).
  9.  
  10. # This boolean controls whether PAM will be used for password changes
  11. # when requested by an SMB client instead of the program listed in
  12. # 'passwd program'. The default is 'no'.
  13.  
  14. # This option controls how unsuccessful authentication attempts are mapped
  15. # to anonymous connections
  16.  
  17. ########## Domains ###########
  18.  
  19. # Is this machine able to authenticate users. Both PDC and BDC
  20. # must have this setting enabled. If you are the BDC you must
  21. # change the 'domain master' setting to no
  22. #
  23. ;   domain logons = yes
  24. #
  25. # The following setting only takes effect if 'domain logons' is set
  26. # It specifies the location of the user's profile directory
  27. # from the client point of view)
  28. # The following required a [profiles] share to be setup on the
  29. # samba server (see below)
  30. ;   logon path = \\%N\profiles\%U
  31. # Another common choice is storing the profile in the user's home directory
  32. # (this is Samba's default)
  33. #   logon path = \\%N\%U\profile
  34.  
  35. # The following setting only takes effect if 'domain logons' is set
  36. # It specifies the location of a user's home directory (from the client
  37. # point of view)
  38. ;   logon drive = H:
  39. #   logon home = \\%N\%U
  40.  
  41. # The following setting only takes effect if 'domain logons' is set
  42. # It specifies the script to run during logon. The script must be stored
  43. # in the [netlogon] share
  44. # NOTE: Must be store in 'DOS' file format convention
  45. ;   logon script = logon.cmd
  46.  
  47. # This allows Unix users to be created on the domain controller via the SAMR
  48. # RPC pipe.  The example command creates a user account with a disabled Unix
  49. # password; please adapt to your needs
  50. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  51.  
  52. # This allows machine accounts to be created on the domain controller via the
  53. # SAMR RPC pipe.
  54. # The following assumes a "machines" group exists on the system
  55. ; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  56.  
  57. # This allows Unix groups to be created on the domain controller via the SAMR
  58. # RPC pipe.
  59. ; add group script = /usr/sbin/addgroup --force-badname %g
  60.  
  61. ########## Printing ##########
  62.  
  63. # If you want to automatically load your printer list rather
  64. # than setting them up individually then you'll need this
  65. #   load printers = yes
  66.  
  67. # lpr(ng) printing. You may wish to override the location of the
  68. # printcap file
  69. ;   printing = bsd
  70. ;   printcap name = /etc/printcap
  71.  
  72. # CUPS printing.  See also the cupsaddsmb(8) manpage in the
  73. # cupsys-client package.
  74. ;   printing = cups
  75. ;   printcap name = cups
  76.  
  77. ############ Misc ############
  78.  
  79. # Using the following line enables you to customise your configuration
  80. # on a per machine basis. The %m gets replaced with the netbios name
  81. # of the machine that is connecting
  82. ;   include = /home/samba/etc/smb.conf.%m
  83.  
  84. # Most people will find that this option gives better performance.
  85. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
  86. # for details
  87. # You may want to add the following on a Linux system:
  88. #         SO_RCVBUF=8192 SO_SNDBUF=8192
  89. #   socket options = TCP_NODELAY
  90.  
  91. # The following parameter is useful only if you have the linpopup package
  92. # installed. The samba maintainer and the linpopup maintainer are
  93. # working to ease installation and configuration of linpopup and samba.
  94. ;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
  95.  
  96. # Domain Master specifies Samba to be the Domain Master Browser. If this
  97. # machine will be configured as a BDC (a secondary logon server), you
  98. # must set this to 'no'; otherwise, the default behavior is recommended.
  99. #   domain master = auto
  100.  
  101. # Some defaults for winbind (make sure you're not using the ranges
  102. # for something else.)
  103. ;   idmap uid = 10000-20000
  104. ;   idmap gid = 10000-20000
  105. ;   template shell = /bin/bash
  106.  
  107. # The following was the default behaviour in sarge,
  108. # but samba upstream reverted the default because it might induce
  109. # performance issues in large organizations.
  110. # See Debian bug #368251 for some of the consequences of *not*
  111. # having this setting and smb.conf(5) for details.
  112. ;   winbind enum groups = yes
  113. ;   winbind enum users = yes
  114.  
  115. # Setup usershare options to enable non-root users to share folders
  116. # with the net usershare command.
  117.  
  118. # Maximum number of usershare. 0 (default) means that usershare is disabled.
  119. ;   usershare max shares = 100
  120.  
  121. # Allow users who've been granted usershare privileges to create
  122. # public shares, not just authenticated ones
  123.  
  124. #======================= Share Definitions =======================
  125.  
  126. # Un-comment the following (and tweak the other settings below to suit)
  127. # to enable the default home directory shares.  This will share each
  128. # user's home directory as \\server\username
  129. ;[homes]
  130. ;   comment = Home Directories
  131. ;   browseable = no
  132.  
  133. # By default, the home directories are exported read-only. Change the
  134. # next parameter to 'no' if you want to be able to write to them.
  135. ;   read only = yes
  136.  
  137. # File creation mask is set to 0700 for security reasons. If you want to
  138. # create files with group=rw permissions, set next parameter to 0775.
  139. ;   create mask = 0700
  140.  
  141. # Directory creation mask is set to 0700 for security reasons. If you want to
  142. # create dirs. with group=rw permissions, set next parameter to 0775.
  143. ;   directory mask = 0700
  144.  
  145. # By default, \\server\username shares can be connected to by anyone
  146. # with access to the samba server.  Un-comment the following parameter
  147. # to make sure that only "username" can connect to \\server\username
  148. # This might need tweaking when using external authentication schemes
  149. ;   valid users = %S
  150.  
  151. # Un-comment the following and create the netlogon directory for Domain Logons
  152. # (you need to configure Samba to act as a domain controller too.)
  153. ;[netlogon]
  154. ;   comment = Network Logon Service
  155. ;   path = /home/samba/netlogon
  156. ;   guest ok = yes
  157. ;   read only = yes
  158. ;   share modes = no
  159.  
  160. # Un-comment the following and create the profiles directory to store
  161. # users profiles (see the "logon path" option above)
  162. # (you need to configure Samba to act as a domain controller too.)
  163. # The path below should be writable by all users so that their
  164. # profile directory may be created the first time they log on
  165. ;[profiles]
  166. ;   comment = Users profiles
  167. ;   path = /home/samba/profiles
  168. ;   guest ok = no
  169. ;   browseable = no
  170. ;   create mask = 0600
  171. ;   directory mask = 0700
  172.  
  173. [printers]
  174.    comment = All Printers
  175.    browseable = no
  176.    path = /var/spool/samba
  177.    printable = yes
  178.    guest ok = no
  179.    read only = yes
  180.    create mask = 0700
  181.  
  182. # Windows clients look for this share name as a source of downloadable
  183. # printer drivers
  184. [print$]
  185.    comment = Printer Drivers
  186.    path = /var/lib/samba/printers
  187.    browseable = yes
  188.    read only = yes
  189.    guest ok = no
  190. # Uncomment to allow remote administration of Windows print drivers.
  191. # You may need to replace 'lpadmin' with the name of the group your
  192. # admin users are members of.
  193. # Please note that you also need to set appropriate Unix permissions
  194. # to the drivers directory for these users to have write rights in it
  195. ;   write list = root, @lpadmin
  196.  
  197. # A sample share for sharing your CD-ROM with others.
  198. ;[cdrom]
  199. ;   comment = Samba server's CD-ROM
  200. ;   read only = yes
  201. ;   locking = no
  202. ;   path = /cdrom
  203. ;   guest ok = yes
  204.  
  205. # The next two parameters show how to auto-mount a CD-ROM when the
  206. #       cdrom share is accesed. For this to work /etc/fstab must contain
  207. #       an entry like this:
  208. #
  209. #       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
  210. #
  211. # The CD-ROM gets unmounted automatically after the connection to the
  212. #
  213. # If you don't want to use auto-mounting/unmounting make sure the CD
  214. #       is mounted on /cdrom
  215. #
  216. ;   preexec = /bin/mount /cdrom
  217. ;   postexec = /bin/umount /cdrom
  218.  
  219.  
  220. [shared]
  221.         comment = shared
  222.         path = /shared/
  223.         valid users = dominicdinada
  224.         public = no
  225.         writable = yes
  226.         read only = no
  227.  
  228.  
  229. [public_html]
  230.         force user = diabolical
  231.         public = no
  232.         path = /home/diabolical/public_html
  233.  
  234. [www]
  235.         comment = Web Share
  236.         path = /var/www/
  237.         public = no
  238.         writable = yes
  239.         read only = no
  240.         security = user
  241.         guest ok = no
RAW Paste Data
Top