daily pastebin goal
31%
SHARE
TWEET

www.raspberrypi.gen.tr

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