Re: Installation of sudo based systems
Hi
Jérémy pointed me to this outstanding issue, so I had a look...
On Wed, 26 Sep 2007 00:00:45 +0200, Jérémy Bobbio wrote:
> On Wed, Sep 26, 2007 at 12:42:44AM +0300, Eddy Petrișor wrote:
> > > I know that adding another question at high priority might not be
a good
> > > idea, so an option would be to enable (or ask a confirmation) sudo
based
> > > installation if the user enters an empty root password during
> > > user-setup.
> >
> > Of course, that under the condition that the text displayed at that
point says
> > clearly that entering an empty password would lead to such a behaviour.
>
> That was my intention. :) Sorry for not being totally clear about it.
Please find attached a first try at d-i hacking to implement the above :-)
Cheers
Luk
Index: debian/user-setup-udeb.templates
===================================================================
--- debian/user-setup-udeb.templates (revision 57747)
+++ debian/user-setup-udeb.templates (working copy)
@@ -43,6 +43,10 @@
A good password will contain a mixture of letters, numbers and punctuation
and should be changed at regular intervals.
.
+ Choosing an empty root password is not allowed. If you choose an empty
+ password, then a user account will be created and given the power to
+ become root using the 'sudo' command.
+ .
Note that you will not be able to see the password as you type it.
Template: passwd/root-password-again
Index: user-setup-ask
===================================================================
--- user-setup-ask (revision 57747)
+++ user-setup-ask (working copy)
@@ -71,10 +71,7 @@
db_get passwd/root-password
ROOT_PW="$RET"
if [ -z "$ROOT_PW" ]; then
- db_fset user-setup/password-empty seen false
- db_input critical user-setup/password-empty
- db_fset passwd/root-password seen false
- db_fset passwd/root-password-again seen false
+ db_set passwd/root-login false
STATE=1
continue
fi
Reply to: