'Account has expired' message when adding a new user, after "passwd -l root"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Christopher Armstrong | ||
Hardy |
Won't Fix
|
Undecided
|
Unassigned | ||
Intrepid |
Invalid
|
Undecided
|
Unassigned | ||
shadow (Debian) |
Fix Released
|
Unknown
|
|||
shadow (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Hardy |
Won't Fix
|
High
|
Unassigned | ||
Intrepid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: adduser
I've repeatedly added new users, but receive a seemingly spurious error:
rich@aias:~$ sudo adduser james
Adding user `james' ...
Adding new group `james' (1004) ...
Adding new user `james' (1004) with group `james' ...
Creating home directory `/home/james' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Your account has expired; please contact your system administrator
chfn: PAM authentication failed
adduser: `/usr/bin/chfn james' returned error code 1. Exiting.
However, the user can log in.
rich@aias:~$ finger james
Login: james Name:
Directory: /home/james Shell: /bin/bash
On since Mon Jun 9 21:19 (PDT) on tty1 4 minutes 57 seconds idle
(messages off)
No mail.
No Plan.
adduser version: 3.105ubuntu1
ubuntu version: 8.04 , fully updated
I've marked this as a security issue, since pam is part of the error message.
Update:
This seems to be related to the use of "passwd -l root".
Until the Debian fix shows up in hardy, here is a workaround, thanks to Nicolas François:
sudo passwd --unlock root
sudo usermod --lock root
Changed in shadow: | |
status: | Unknown → New |
Changed in shadow: | |
status: | New → Fix Released |
description: | updated |
Changed in shadow: | |
importance: | Undecided → High |
status: | New → Triaged |
status: | Confirmed → Fix Released |
Me too. I have this problem with adduser from the time when I enabled the root user (sudo passwd root) and then disabled it (sudo passwd -l root).
Hope this info will help.