[Pkg-samba-maint] ucf for smb.conf?
Steve Langasek
vorlon at debian.org
Thu Dec 13 09:09:04 UTC 2007
Do any of you guys have experience using ucf for config files?
I have yet another change that I want to suggest to the Samba defaults,
concerning the "passwd chat" option; while this could again be done by
changing the compiled-in defaults, the passwd chat is a hairy enough option
in general that I think it would be better if this were explicit in the
smb.conf, and it's also hairy enough that I would rather not manage this
option using sed.
I think there are also a number of other minor, general clean-ups that could
be done to the smb.conf, but I've avoided tackling this because it is so
difficult to make these changes available to existing users.
Does anyone have opinions on whether ucf is appropriate here? Or is it to
me to present a trial implementation? :) One of my implementation concerns
is how we should prepopulate ucf with the known previous "package" version;
I don't really want to keep copies around of the (sarge,dapper,gutsy)
smb.confs for comparison, but the alternative is again to try to do some sed
evil...
FWIW, the current set of changes I want to make (at least in Ubuntu) are
included inline below. We can discuss these in a separate thread as
appropriate.
Thanks,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
Index: debian/smb.conf
===================================================================
--- debian/smb.conf (revision 1660)
+++ debian/smb.conf (working copy)
@@ -106,18 +106,18 @@
# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
-; unix password sync = no
+ unix password sync = yes
# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan at informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
passwd program = /usr/bin/passwd %u
- passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
+ passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
-; pam password change = no
+ pam password change = yes
########## Domains ###########
More information about the Pkg-samba-maint
mailing list