[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: breaking up base-config



On Wed, Jan 10, 2001 at 05:52:46AM +0000, Joey Hess wrote:
> The annoying thing about the password prompting is that if you do it
> cleanly and prompt for the passwords in the config script, then set them
> in the postinst, there is a window where debconf writes them to disk. So
> base-config does it all in the config script, and makes sure they are
> never written out. Which is ugly. I don't know how you want to handle
> that. Another option would be to prompt for the passwords in the
> postinst.

	db_set the answer to empty, db_subst the crypted password
	in to a new field in the template? That's as safe as 
	/etc/shadow.

Crypted: ${crypted}

-- 
tv@{{hq.yok.utu,havoc,gaeshido}.fi,{debian,wanderer}.org,stonesoft.com}
Perl this: sub inc {my $s=shift; sub {$s++}}



Reply to: