Bug 855481 - Root password is empty after install from live image without completing root pw spoke in anaconda
Summary: Root password is empty after install from live image without completing root ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedNTH RejectedBlocker
Depends On:
Blocks: F18Alpha-accepted, F18AlphaFreezeExcept
TreeView+ depends on / blocked
 
Reported: 2012-09-07 23:44 UTC by Adam Williamson
Modified: 2012-10-23 14:19 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-23 14:19:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2012-09-07 23:44:28 UTC
I just built an Xfce live image with anaconda 18.6.6 for some smoke testing. I did an install to disk without entering the 'root password' spoke. I'd expect that the installed system would have an inaccessible root account, as is the case for a netinst/DVD install if you don't complete the root pw spoke, but that isn't the case: the root password is empty, like in the pre-install live environment. You can become root just by typing 'su'. Obviously, this isn't how we want it to work.

Proposing as blocker for Alpha as bcl suggests it ought to be blocker, but I'm not so sure, it doesn't actually *break* anything in the criteria, and you damn well shouldn't install Alpha on production systems anyhow.

Comment 1 Adam Williamson 2012-09-08 01:00:36 UTC
In fact, the root password seems to be empty post-install whether you complete the spoke or not, anaconda's simply failing to set it at all. bcl is investigating.

Comment 2 Brian Lane 2012-09-08 01:11:07 UTC
libuser appears to be ignoring the LIBUSER_CONF variable, it is setting the root password on /etc/shadow instead of /mnt/sysimage/etc/shadow. I'm not sure why yet.

Comment 3 Brian Lane 2012-09-08 05:14:09 UTC
LIBUSER_CONF needs to be set before calling User()

Comment 4 Adam Williamson 2012-09-10 16:14:39 UTC
Discussed at 2012-09-10 QA meeting acting as a blocker review meeting. Though we're slightly uncomfortable with it, we decided for now that this doesn't meet the criteria precisely and so we accept it as NTH but reject as blocker. We may re-visit this decision later.

Comment 5 Fedora Update System 2012-09-10 19:28:43 UTC
anaconda-18.6.7-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.6.7-1.fc18

Comment 6 Fedora Update System 2012-09-11 19:11:38 UTC
Package anaconda-18.6.7-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-18.6.7-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13805/anaconda-18.6.7-1.fc18
then log in and leave karma (feedback).

Comment 7 Adam Williamson 2012-09-12 06:35:06 UTC
This is fixed in Alpha RC2.

Comment 8 Fedora Update System 2012-09-12 20:36:36 UTC
anaconda-18.6.7-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Akira TAGOH 2012-09-25 08:32:31 UTC
This issue seems still there. I tried the install from live image, http://adamwill.fedorapeople.org/graphics_test_week_20120924/20120924-test_days-x86_64.iso and set root password during the installation. once it's finished, boot. gdm didn't ask the root password when I type "root" as the user.

the password field in /etc/shadow is empty for root.

Comment 10 Adam Williamson 2012-09-25 16:22:42 UTC
I can't reproduce this. I just tested it myself and my root password was properly set.

Did you click the 'Done' button after entering and confirming the root password? Just leaving the screen sitting there would not be enough, I don't think.

Comment 11 Akira TAGOH 2012-09-26 07:20:30 UTC
Of course I did and I can see "Root password is set" message there. but the root password is still empty in /etc/shadow.

Comment 12 Akira TAGOH 2012-09-26 07:55:15 UTC
After "reboot" screen appears, tried to see how is /etc/shadow. and realized that anaconda changed the root password in "/etc/shadow" but /mnt/sysimage/etc/shadow as it mentioned at comment#2. anaconda --version gives me "anaconda 18.8".

Comment 13 Brian Lane 2012-09-27 16:46:28 UTC
Moving the root password setup to the progress hub broke this. Patch sent.

Comment 14 Fedora Update System 2012-10-02 14:12:54 UTC
anaconda-18.11-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.11-1.fc18

Comment 15 Fedora Update System 2012-10-02 19:47:22 UTC
Package anaconda-18.11-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-18.11-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15207/anaconda-18.11-1.fc18
then log in and leave karma (feedback).

Comment 16 Fedora Update System 2012-10-04 00:57:41 UTC
anaconda-18.12-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.12-1.fc18

Comment 17 Kamil Páral 2012-10-23 14:19:19 UTC
Anaconda 18.19 now correctly sets root password when installing from Live. Closing.


Note You need to log in before you can comment on or make changes to this bug.