[Fedora-livecd-list] [Patch] setting root password

Jeroen van Meeuwen kanarip at kanarip.com
Mon Apr 16 15:25:31 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeremy Katz wrote:
> On Sun, 2007-04-15 at 12:28 +0200, Jeroen van Meeuwen wrote:
>> This is an attempt to fix being able to set the root password from
>> kickstart.
> 
> This changes the behavior, though.  A blank password isn't the same as
> setting the passwd to empty with -d.  So you need to check for a lack of
> a root pass and still set it with -d.
> 
> Also, instead of essentially running sed on /etc/shadow for the case of
> a crypted password, you can use usermod -p.  Or it could use libuser
> like anaconda currently does, but that's probably overkill.
> 
> Jeremy
> 

Good point. Improvements attached.

Kind regards,

Jeroen van Meeuwen
- -kanarip
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGI5VrKN6f2pNCvwgRAjExAKCtuSlRrmVHyLjOkodp0k58tkbMiQCcCD6W
wBC8dBcoqCOE73yISXDwJW4=
=5YmH
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: livecd-rootpassword.patch
URL: <http://listman.redhat.com/archives/fedora-livecd-list/attachments/20070416/eb8f9704/attachment.ksh>


More information about the Fedora-livecd-list mailing list