Advertisement
Guest User

Untitled

a guest
Jan 4th, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4. # /etc/nsswitch.conf
  5.  
  6. passwd: compat winbind
  7. group: compat winbind
  8. shadow: compat
  9.  
  10. hosts: files dns wins
  11. networks: files
  12.  
  13. protocols: db files
  14. services: db files
  15. ethers: db files
  16. rpc: db files
  17.  
  18. netgroup: nis
  19.  
  20.  
  21.  
  22.  
  23.  
  24. [logging]
  25. default = FILE10000:/var/log/krb5lib.log
  26. [libdefaults]
  27. ticket_lifetime = 24000
  28. default_realm = ARCH.local
  29. default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc
  30. default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc
  31.  
  32. # default_realm = ARCH.LOCAL
  33. #default_tgs_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC
  34. # default_tkt_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC
  35. # preferred_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC
  36. dns_lookup_kdc = true
  37. pkinit_kdc_hostname = <DNS>
  38. pkinit_anchors = DIR:/var/lib/likewise/trusted_certs
  39. pkinit_cert_match = &&<EKU>msScLogin<PRINCIPAL>
  40. pkinit_eku_checking = kpServerAuth
  41. pkinit_win2k_require_binding = false
  42. pkinit_identities = PKCS11:/usr/lib/likewise-open/libpkcs11.so
  43. default_keytab_name = /etc/krb5.keytab
  44. #[domain_realm]
  45. # .archproj = ARCHPROJ
  46. # .arch.local = ARCH.LOCAL
  47. [realms]
  48. ARCH.local = {
  49. kdc = winarch.ARCH.local
  50. admin_server = winarch.ARCH.local
  51. default_domain = ARCH.local
  52.  
  53. }
  54.  
  55. # ARCHPROJ = {
  56. # auth_to_local = RULE:[1:$0\$1](^ARCHPROJ\\.*)s/^ARCHPROJ/ARCHPROJ/
  57. # auth_to_local = DEFAULT
  58. # }
  59. # ARCH.LOCAL = {
  60. # auth_to_local = RULE:[1:$0\$1](^ARCH\.LOCAL\\.*)s/^ARCH\.LOCAL/ARCH/
  61. # auth_to_local = DEFAULT
  62. # }
  63. [domain_realm]
  64. .ARCH.local = ARCH.local
  65. ARCH.local = ARCH.local
  66. [appdefaults]
  67. pam = {
  68. mappings = ARCH\\(.*) [email protected]
  69. forwardable = true
  70. validate = true
  71. }
  72. httpd = {
  73. mappings = ARCH\\(.*) [email protected]
  74. reverse_mappings = (.*)@ARCH\.LOCAL ARCH\$1
  75. }
  76.  
  77.  
  78. #
  79. # Sample configuration file for the Samba suite for Debian GNU/Linux.
  80. #
  81. #
  82. # This is the main Samba configuration file. You should read the
  83. # smb.conf(5) manual page in order to understand the options listed
  84. # here. Samba has a huge number of configurable options most of which
  85. # are not shown in this example
  86. #
  87. # Some options that are often worth tuning have been included as
  88. # commented-out examples in this file.
  89. # - When such options are commented with ";", the proposed setting
  90. # differs from the default Samba behaviour
  91. # - When commented with "#", the proposed setting is the default
  92. # behaviour of Samba but the option is considered important
  93. # enough to be mentioned here
  94. #
  95. # NOTE: Whenever you modify this file you should run the command
  96. # "testparm" to check that you have not made any basic syntactic
  97. # errors.
  98. # A well-established practice is to name the original file
  99. # "smb.conf.master" and create the "real" config file with
  100. # testparm -s smb.conf.master >smb.conf
  101. # This minimizes the size of the really used smb.conf file
  102. # which, according to the Samba Team, impacts performance
  103. # However, use this with caution if your smb.conf file contains nested
  104. # "include" statements. See Debian bug #483187 for a case
  105. # where using a master file is not a good idea.
  106. #
  107.  
  108. #======================= Global Settings =======================
  109.  
  110. [global]
  111.  
  112. ## Browsing/Identification ###
  113.  
  114. # Change this to the workgroup/NT-domain name your Samba server will part of
  115. security = ads
  116. netbios name = ARCHPROJFC
  117. realm = ARCH.local
  118. password server = winarch.ARCH.local
  119. workgroup = ARCH
  120. idmap uid = 500-10000000
  121. idmap gid = 500-10000000
  122. winbind separator = +
  123. winbind enum users = no
  124. winbind enum groups = no
  125. winbind use default domain = yes
  126. template homedir = /home/likewise-open/%D/%U
  127. template shell = /bin/bash
  128. client use spnego = yes
  129. domain master = no
  130.  
  131. # server string is the equivalent of the NT Description field
  132. server string = %h server (Samba, Ubuntu)
  133.  
  134.  
  135. # Windows Internet Name Serving Support Section:
  136. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  137. # wins support = no
  138.  
  139. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  140. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  141. ; wins server = w.x.y.z
  142.  
  143. # This will prevent nmbd to search for NetBIOS names through DNS.
  144. dns proxy = no
  145.  
  146. # What naming service and in what order should we use to resolve host names
  147. # to IP addresses
  148. ; name resolve order = lmhosts host wins bcast
  149.  
  150. #### Networking ####
  151.  
  152. # The specific set of interfaces / networks to bind to
  153. # This can be either the interface name or an IP address/netmask;
  154. # interface names are normally preferred
  155. ; interfaces = 127.0.0.0/8 eth0
  156.  
  157. # Only bind to the named interfaces and/or networks; you must use the
  158. # 'interfaces' option above to use this.
  159. # It is recommended that you enable this feature if your Samba machine is
  160. # not protected by a firewall or is a firewall itself. However, this
  161. # option cannot handle dynamic or non-broadcast interfaces correctly.
  162. ; bind interfaces only = yes
  163.  
  164.  
  165.  
  166. #### Debugging/Accounting ####
  167.  
  168. # This tells Samba to use a separate log file for each machine
  169. # that connects
  170. log file = /var/log/samba/log.%m
  171.  
  172. # Cap the size of the individual log files (in KiB).
  173. max log size = 1000
  174.  
  175. # If you want Samba to only log through syslog then set the following
  176. # parameter to 'yes'.
  177. # syslog only = no
  178.  
  179. # We want Samba to log a minimum amount of information to syslog. Everything
  180. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  181. # through syslog you should set the following parameter to something higher.
  182. syslog = 0
  183.  
  184. # Do something sensible when Samba crashes: mail the admin a backtrace
  185. panic action = /usr/share/samba/panic-action %d
  186.  
  187.  
  188. ####### Authentication #######
  189.  
  190. # "security = user" is always a good idea. This will require a Unix account
  191. # in this server for every user accessing the server. See
  192. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  193. # in the samba-doc package for details.
  194. # security = user
  195.  
  196. # You may wish to use password encryption. See the section on
  197. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  198. encrypt passwords = true
  199.  
  200. # If you are using encrypted passwords, Samba will need to know what
  201. # password database type you are using.
  202. passdb backend = tdbsam
  203.  
  204. obey pam restrictions = yes
  205.  
  206. # This boolean parameter controls whether Samba attempts to sync the Unix
  207. # password with the SMB password when the encrypted SMB password in the
  208. # passdb is changed.
  209. unix password sync = yes
  210.  
  211. # For Unix password sync to work on a Debian GNU/Linux system, the following
  212. # parameters must be set (thanks to Ian Kahan <<[email protected]> for
  213. # sending the correct chat script for the passwd program in Debian Sarge).
  214. passwd program = /usr/bin/passwd %u
  215. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  216.  
  217. # This boolean controls whether PAM will be used for password changes
  218. # when requested by an SMB client instead of the program listed in
  219. # 'passwd program'. The default is 'no'.
  220. pam password change = yes
  221.  
  222. # This option controls how unsuccessful authentication attempts are mapped
  223. # to anonymous connections
  224. map to guest = bad user
  225.  
  226. ########## Domains ###########
  227.  
  228. # Is this machine able to authenticate users. Both PDC and BDC
  229. # must have this setting enabled. If you are the BDC you must
  230. # change the 'domain master' setting to no
  231. #
  232. ; domain logons = yes
  233. #
  234. # The following setting only takes effect if 'domain logons' is set
  235. # It specifies the location of the user's profile directory
  236. # from the client point of view)
  237. # The following required a [profiles] share to be setup on the
  238. # samba server (see below)
  239. ; logon path = \\%N\profiles\%U
  240. # Another common choice is storing the profile in the user's home directory
  241. # (this is Samba's default)
  242. # logon path = \\%N\%U\profile
  243.  
  244. # The following setting only takes effect if 'domain logons' is set
  245. # It specifies the location of a user's home directory (from the client
  246. # point of view)
  247. ; logon drive = H:
  248. # logon home = \\%N\%U
  249.  
  250. # The following setting only takes effect if 'domain logons' is set
  251. # It specifies the script to run during logon. The script must be stored
  252. # in the [netlogon] share
  253. # NOTE: Must be store in 'DOS' file format convention
  254. ; logon script = logon.cmd
  255.  
  256. # This allows Unix users to be created on the domain controller via the SAMR
  257. # RPC pipe. The example command creates a user account with a disabled Unix
  258. # password; please adapt to your needs
  259. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  260.  
  261. # This allows machine accounts to be created on the domain controller via the
  262. # SAMR RPC pipe.
  263. # The following assumes a "machines" group exists on the system
  264. ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  265.  
  266. # This allows Unix groups to be created on the domain controller via the SAMR
  267. # RPC pipe.
  268. ; add group script = /usr/sbin/addgroup --force-badname %g
  269.  
  270. ########## Printing ##########
  271.  
  272. # If you want to automatically load your printer list rather
  273. # than setting them up individually then you'll need this
  274. # load printers = yes
  275.  
  276. # lpr(ng) printing. You may wish to override the location of the
  277. # printcap file
  278. ; printing = bsd
  279. ; printcap name = /etc/printcap
  280.  
  281. # CUPS printing. See also the cupsaddsmb(8) manpage in the
  282. # cupsys-client package.
  283. ; printing = cups
  284. ; printcap name = cups
  285.  
  286. ############ Misc ############
  287.  
  288. # Using the following line enables you to customise your configuration
  289. # on a per machine basis. The %m gets replaced with the netbios name
  290. # of the machine that is connecting
  291. ; include = /home/samba/etc/smb.conf.%m
  292.  
  293. # Most people will find that this option gives better performance.
  294. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
  295. # for details
  296. # You may want to add the following on a Linux system:
  297. # SO_RCVBUF=8192 SO_SNDBUF=8192
  298. # socket options = TCP_NODELAY
  299.  
  300. # The following parameter is useful only if you have the linpopup package
  301. # installed. The samba maintainer and the linpopup maintainer are
  302. # working to ease installation and configuration of linpopup and samba.
  303. ; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
  304.  
  305. # Domain Master specifies Samba to be the Domain Master Browser. If this
  306. # machine will be configured as a BDC (a secondary logon server), you
  307. # must set this to 'no'; otherwise, the default behavior is recommended.
  308. # domain master = auto
  309.  
  310. # Some defaults for winbind (make sure you're not using the ranges
  311. # for something else.)
  312. ; idmap uid = 10000-20000
  313. ; idmap gid = 10000-20000
  314. ; template shell = /bin/bash
  315.  
  316. # The following was the default behaviour in sarge,
  317. # but samba upstream reverted the default because it might induce
  318. # performance issues in large organizations.
  319. # See Debian bug #368251 for some of the consequences of *not*
  320. # having this setting and smb.conf(5) for details.
  321. ; winbind enum groups = yes
  322. ; winbind enum users = yes
  323.  
  324. # Setup usershare options to enable non-root users to share folders
  325. # with the net usershare command.
  326.  
  327. # Maximum number of usershare. 0 (default) means that usershare is disabled.
  328. ; usershare max shares = 100
  329.  
  330. # Allow users who've been granted usershare privileges to create
  331. # public shares, not just authenticated ones
  332. usershare allow guests = yes
  333.  
  334. #======================= Share Definitions =======================
  335.  
  336. # Un-comment the following (and tweak the other settings below to suit)
  337. # to enable the default home directory shares. This will share each
  338. # user's home director as \\server\username
  339. ;[homes]
  340. ; comment = Home Directories
  341. ; browseable = no
  342.  
  343. # By default, the home directories are exported read-only. Change the
  344. # next parameter to 'no' if you want to be able to write to them.
  345. ; read only = yes
  346.  
  347. # File creation mask is set to 0700 for security reasons. If you want to
  348. # create files with group=rw permissions, set next parameter to 0775.
  349. ; create mask = 0700
  350.  
  351. # Directory creation mask is set to 0700 for security reasons. If you want to
  352. # create dirs. with group=rw permissions, set next parameter to 0775.
  353. ; directory mask = 0700
  354.  
  355. # By default, \\server\username shares can be connected to by anyone
  356. # with access to the samba server. Un-comment the following parameter
  357. # to make sure that only "username" can connect to \\server\username
  358. # The following parameter makes sure that only "username" can connect
  359. #
  360. # This might need tweaking when using external authentication schemes
  361. ; valid users = %S
  362.  
  363. # Un-comment the following and create the netlogon directory for Domain Logons
  364. # (you need to configure Samba to act as a domain controller too.)
  365. ;[netlogon]
  366. ; comment = Network Logon Service
  367. ; path = /home/samba/netlogon
  368. ; guest ok = yes
  369. ; read only = yes
  370.  
  371. # Un-comment the following and create the profiles directory to store
  372. # users profiles (see the "logon path" option above)
  373. # (you need to configure Samba to act as a domain controller too.)
  374. # The path below should be writable by all users so that their
  375. # profile directory may be created the first time they log on
  376. ;[profiles]
  377. ; comment = Users profiles
  378. ; path = /home/samba/profiles
  379. ; guest ok = no
  380. ; browseable = no
  381. ; create mask = 0600
  382. ; directory mask = 0700
  383.  
  384. [printers]
  385. comment = All Printers
  386. browseable = no
  387. path = /var/spool/samba
  388. printable = yes
  389. guest ok = no
  390. read only = yes
  391. create mask = 0700
  392.  
  393. # Windows clients look for this share name as a source of downloadable
  394. # printer drivers
  395. [print$]
  396. comment = Printer Drivers
  397. path = /var/lib/samba/printers
  398. browseable = yes
  399. read only = yes
  400. guest ok = no
  401. # Uncomment to allow remote administration of Windows print drivers.
  402. # You may need to replace 'lpadmin' with the name of the group your
  403. # admin users are members of.
  404. # Please note that you also need to set appropriate Unix permissions
  405. # to the drivers directory for these users to have write rights in it
  406. ; write list = root, @lpadmin
  407.  
  408. # A sample share for sharing your CD-ROM with others.
  409. ;[cdrom]
  410. ; comment = Samba server's CD-ROM
  411. ; read only = yes
  412. ; locking = no
  413. ; path = /cdrom
  414. ; guest ok = yes
  415.  
  416. # The next two parameters show how to auto-mount a CD-ROM when the
  417. # cdrom share is accesed. For this to work /etc/fstab must contain
  418. # an entry like this:
  419. #
  420. # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
  421. #
  422. # The CD-ROM gets unmounted automatically after the connection to the
  423. #
  424. # If you don't want to use auto-mounting/unmounting make sure the CD
  425. # is mounted on /cdrom
  426. #
  427. ; preexec = /bin/mount /cdrom
  428. ; postexec = /bin/umount /cdrom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement