passwd/root-password-crypted not being honored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shadow (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
user-setup (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
nightly jaunty mirror, user-setup=
No root password is set when preseeding with the following relevant values:
d-i passwd/root-login boolean true
d-i passwd/
d-i passwd/make-user boolean false
Initial tests were done with an MD5 password as well.
It appears that root_password() in functions.sh of user-setup considers a shadow password of '!' to be set. This causes the if block at line 165 of user-setup-apply in r454 of user-setup to fail and thus the password isn't set.
I would speculate that in the past the root password was blank in shadow, pwconv should be leaving it that way. This would be why user-setup-ask sets root-password-
Changed in debian-installer: | |
status: | New → Invalid |
The changes to passwd.postinst in bug #296841 caused a regression by using 'lt' instead of 'lt-nl' on line 52. On a new installation no previously configured version is provided which 'lt' considers to be less than the version checked for. This causes passwd.postinst to add ! to the empty root password before user-setup runs, which in turn breaks root_password() in user-setup by causing it to return true which it should not.