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

Bug#400766: user-setup: using (go back) leads to a system without root-password and without sudo



Package: user-setup
Severity: normal


Installer used:
Debian GNU/Linux testing "Etch" - Official Snapshot netinst i386 Binary-1
    20061128-09:23

When configuring users, i can choose to setup the root account
with a password, or without a password, which will setup sudo
to give the normal user sudo rights.

But... when i choose 'Enable root account' -> No, probably fill in
a name for the normal user, but choose (go back) and then choose
'Enable root account' -> Yes, the questions to set the root password
won't be asked. A normal user (e.g. 'piet' is created, root does not
have a password and also sudo is not set up to give piet sudo rights.
So after the installation i'm left with an unusable situation:

# cat passwd | head -n 1
root:x:0:0:root:/root:/bin/bash
# cat shadow | head -n 1
root:!:13480:0:99999:7:::
# cat /etc/sudoers | grep piet
#

I cannot sudo or su or whatever.

When typing in the username the second time (after choosing root->yes)
i made a typo in the username 'piet', so i did (go back) that particular
step, perhaps that explains some of the log below:

>From /var/log/installer/cdebconf/questions.dat:

[...]

Name: passwd/make-user
Template: passwd/make-user
Value: true
Owners: user-setup-udeb

Name: passwd/root-login
Template: passwd/root-login
Value: true
Owners: user-setup-udeb

Name: passwd/shadow
Template: passwd/shadow
Value: true
Owners: user-setup-udeb

Name: passwd/user-fullname
Template: passwd/user-fullname
Value: Piet
Owners: user-setup-udeb

Name: passwd/user-uid
Template: passwd/user-uid
Owners: user-setup-udeb

Name: passwd/username
Template: passwd/username
Value: piet
Owners: user-setup-udeb

Name: passwd/username-bad
Template: passwd/username-bad
Owners: user-setup-udeb

Name: passwd/username-reserved
Template: passwd/username-reserved
Owners: user-setup-udeb

[...]

Name: user-setup/password-empty
Template: user-setup/password-empty
Owners: user-setup-udeb

Name: user-setup/password-mismatch
Template: user-setup/password-mismatch
Owners: user-setup-udeb

[eof]

Hans van Kranenburg

-- System Information:
Debian Release: 4.0
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: 2.6.17-2-686
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)



Reply to: