LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Kickstart Problem with Rhel5 (https://www.linuxquestions.org/questions/linux-enterprise-47/kickstart-problem-with-rhel5-4175696726/)

yelirt5 06-21-2021 03:15 PM

Kickstart Problem with Rhel5
 
Good day folks,

I'm having an issue modifying an existing kickstart for a RHEL5 system. The problem is with encrypting the password.

I'm copying the existing kickstart and using Redhat's online kickstart generator (for RHEL5) to hash the password and am replacing that hash with the one configured in the original. The system loads up fine but when it gets to a login prompt I can't login as root or as the user I've created.

One thing I've noticed that I'm not sure about is the hash for the passwords in the original ks.cfg file is much longer than the one I'm getting from the online generator.

I'm at a loss as to why this isn't working. The original hash works fine. The hash I'm replacing doesn't. I'm not even sure if anything is being logged (or where) so that I can tell where it's going off the rails.

Any advice is greatly appreciated.

jmgibson1981 06-21-2021 04:23 PM

I'd think RedHat would be the place to request help for something like that. Is why you pay for that subscription.

TB0ne 06-21-2021 06:32 PM

Quote:

Originally Posted by yelirt5 (Post 6260713)
Good day folks,
I'm having an issue modifying an existing kickstart for a RHEL5 system. The problem is with encrypting the password.

I'm copying the existing kickstart and using Redhat's online kickstart generator (for RHEL5) to hash the password and am replacing that hash with the one configured in the original. The system loads up fine but when it gets to a login prompt I can't login as root or as the user I've created.

One thing I've noticed that I'm not sure about is the hash for the passwords in the original ks.cfg file is much longer than the one I'm getting from the online generator.

I'm at a loss as to why this isn't working. The original hash works fine. The hash I'm replacing doesn't. I'm not even sure if anything is being logged (or where) so that I can tell where it's going off the rails.

The best advice I can offer is to not mess with anything to do with this. RHEL 5 is *ANCIENT*, and very, VERY unsupported. At this point, it's so far behind in hardware support, security, and bugfixes that it's just not worth it. Get a current RHEL subscription, and spin up a new kickstart image.

Beyond that, if login is your only issue, can you boot to single-user mode, manually mount the / partition, and edit the shadow file to remove the root password, then login?


All times are GMT -5. The time now is 07:26 AM.