[Pkg-nagios-devel] adminpassword and debconf

Marc Haber mh+pkg-nagios-devel at zugschlus.de
Tue Jan 24 17:45:18 UTC 2006

On Tue, Jan 24, 2006 at 12:37:59PM -0500, sean finney wrote:
> 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.

Yes. That's the current behavior.

> what do you think about doing something like this in the config script?
> if [ ! -f $htpasswdfile ]; then
> 	$prompt_logic
> else
> 	echo "htpasswdfile already exists, do $foo to update it"
> fi
> and continuing with what we're already doing in postinst?

I find it better, however, to always reset the password. We don't use
the debconf database for persistent storage, so the "is not a
database" argument doesn't hold here. We should, however, purge the
password from Debconf after resetting it.

Using echo in the config is a bad idea, IMO. It cannot be translated,
and being interactive ourselves is discouraged. If we interact with
the user, it should be through debconf.

The more I think about it, the more I believe that we should offer a
documented nagiospw wrapper around htpasswd and remove the debconf
password stuff completely.

> > 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.  

Very well.


Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835

More information about the Pkg-nagios-devel mailing list