#296 Root Password not Being set on Live Media
Closed: Fixed Opened by jsteffan.

http://git.fedoraproject.org/?p=hosted/revisor;a=blob;f=revisor/pilgrim.py;h=0bf56c8797f2c7f595cfcdc49d6a44c5b3ca0395;hb=HEAD#l551


This might be selinux. Testing now.

Running in permissive mode does not get the root password set.

There is at least something being set.
Screenshot.png

Booting to runlevel 1 and changing the root password results in a usable account. Just a report.

Setting the root password via the GUI also doesn't work.

the GUI just populates the kickstart data as far as i know, as long as the data is represented by what we pull from kickstart, the error is in the routine used to set the password

sudo useradd test

sudo usermod -p mypassword test

su - test

Password: [/me types mypassword]
su: incorrect password

sudo userdel test

The command itself seems to be the issue.

(^ sorry for bad formatting) scratch all that, I was looking at the wrong line. The echo and passwd --stdin commands work locally, so it seems the problem is coming from self.run_in_root

Maybe a solution is using the libuser module as Anaconda does? (see /usr/lib/anaconda/user.py)

livecd-creator is able to correctly set the password using a very, if not exactly, similar routine.

Clearing the root password is also working.

Resolved by rebasing to upstream imgcreate, in livecd-tools >= 015

Metadata Update from @jsteffan:
- Issue set to the milestone: 2.1.0 Release

Metadata