[Pkg-samba-maint] Bug#483187: samba: recommended action (smb.conf.master) is broken
Richard A Nelson
cowboy at debian.org
Tue May 27 17:46:43 UTC 2008
Package: samba
Version: 1:3.0.29-1
Severity: normal
In the new version of smb.conf is this section:
# A well-established practice is to name the original file
# "smb.conf.master" and create the "real" config file with
# testparm -s smb.conf.master >smb.conf
# This minimizes the size of the really used smb.conf file
# which, according to the Samba Team, impacts performance
That makes sense, so I thought I'd impliment it.
Unfortunately, it is only a partial fix because testparm
does not work as expected... even after processing the
includes, it leaves one of them in the generated config file !
My setup is (shared amongst several machines)
Global configuration
smb.conf
...
# Pick machine specific setup
include = /etc/samba/smb.conf.%L
...
Machine configuration
smb.conf.EL-GHOR
...
# Pick up realm specific setup
include = /etc/samba/smb.conf.cobpli
smb.conf.GOTHIC-AVE
...
# Pick up realm specific setup
include = /etc/samba/smb.conf.cobpli
...
Realm configuration (ldap/idmap/etc)
smb.conf.cobpli
the testparm generated file clearly has all information
from each of the files... but also includes this line:
include = /etc/samba/smb.conf.cobpli
So, any gains from using testparm have just been washed away
as the largest include file is going to be redundantly re-processed
every time.
-- System Information:
Debian Release: 4.0
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages samba depends on:
ii adduser 3.107 add and remove users and groups
ii debconf [debconf-2.0] 1.5.22 Debian configuration management sy
ii libacl1 2.2.47-2 Access control list shared library
ii libattr1 1:2.4.41-1 Extended attribute shared library
ii libc6 2.7-11 GNU C Library: Shared libraries
ii libcomerr2 1.40.8-2 common error description library
ii libcupsys2 1.3.7-5 Common UNIX Printing System(tm) -
ii libgnutls26 2.2.5-1 the GNU TLS library - runtime libr
ii libkrb53 1.6.dfsg.3-2 MIT Kerberos runtime libraries
ii libldap-2.4-2 1:2.4.9-1 OpenLDAP libraries
ii libpam-modules 0.99.7.1-6 Pluggable Authentication Modules f
ii libpam-runtime 0.99.7.1-6 Runtime support for the PAM librar
ii libpam0g 0.99.7.1-6 Pluggable Authentication Modules l
ii libpopt0 1.10-3 lib for parsing cmdline parameters
ii logrotate 3.7.1-3 Log rotation utility
ii lsb-base 3.2-12 Linux Standard Base 3.2 init scrip
ii procps 1:3.2.7-8 /proc file system utilities
ii samba-common 1:3.0.29-1 Samba common files used by both th
ii update-inetd 4.30 inetd configuration file updater
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
samba recommends no packages.
-- debconf information:
samba/tdbsam: false
samba/generate_smbpasswd: false
samba/run_mode: daemons
More information about the Pkg-samba-maint
mailing list