RHEL6, kickstart, rootpw and interactive

Ray Van Dolson rvandolson at esri.com
Tue Jan 18 20:15:23 UTC 2011


On Tue, Jan 18, 2011 at 11:49:20AM -0800, Ray Van Dolson wrote:
> Creating a kickstart for RHEL6 and am using "interactive" mode (though
> I'm not sure if this is an allowed keyword any longer...).  We are pre
> defining a default root password as follows:
> 
> authconfig --enableshadow --passalgo=md5
> rootpw --iscrypted $1$bMbfjfHm$en8pkGIBBERISHyBGIBwx/
> 
> But in the graphical, stage 2 installer when we get to the root
> password dialog, the dialog is blank and we're forced to enter a
> password in.
> 
> Obviously, Anaconda can't derive from the PW hash what the real
> password provided to rootpw is, but it should give a way to continue on
> past this dialog if a default password has been given to rootpw.  The
> user should be able to override or change it if they like...
> 
> This is how it used to work with RHEL5's installer -- am I doing
> something wrong or misunderstanding a change?

After poking around in the Anaconda sources a bit -- in RHEL6 we have:

        # we might have a root password already
        if not self.rootPassword['isCrypted']:
            self.pw.set_text(self.rootPassword['password'])
            self.confirm.set_text(self.rootPassword['password'])

And in RHEL5:

      # check if we already have a crypted password from kickstart
      if self.rootPassword["isCrypted"]: return None

(These are both in account_gui.py).

So the behavior I'm seeing makes sense, however it would be nice to
handle a default password that is crypted as well.

Ray




More information about the Kickstart-list mailing list