[Pkg-nagios-devel] adminpassword and debconf
seanius at seanius.net
Tue Jan 24 17:37:59 UTC 2006
okay, finally getting around to these...
On Fri, Jan 20, 2006 at 05:29:09PM +0100, Marc Haber wrote:
> dpkg-reconfigure does ask for a new admin password, but does not
> actually set it if htpasswd.users does already exist.
that was by design... i was trying to avoid the Debian Is Not A Registry
syndrome. granted, this isn't ideal either, and in fact it might
be confusing to the admin if they are given the option to reset the
password during dpkg-reconfigure but we don't bother to actually reset
it. and i think that's the current behavior... ew.
what do you think about doing something like this in the config script?
if [ ! -f $htpasswdfile ]; then
echo "htpasswdfile already exists, do $foo to update it"
and continuing with what we're already doing in postinst?
> the debconf stuff asks for the user name, but doesn't use it at all
> (at least not in config or postinst).
ack... that was an omission/incomplete-thought on my part.
> The admin user name is set in cgi.conf at varous places. We'd need to
> remove the entire file from dpkg-conffile handling or to do complex
> include handling to allow the user name to be settable in debconf.
> I'd say that it's not worth the hassle and would vouch for removing
> the debconf question for the admin name and use nagiosadmin or
> nagiosadm everywhere.
agreed, that makes sense. was kind of overkill anyway.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20060124/9109a7f9/attachment.pgp
More information about the Pkg-nagios-devel