DIGIT-ARC read-only archive · snapshot: July 23, 2026

redhat 9.0 password file modified.not logging in.

4 posts · originally from https://geek.digit.in/community/threads/redhat-9-0-password-file-modified-not-logging-in.5487/

I
IG Original post #1
Feb 8, 2005 at 2:21 PM
as an exercise we were asked to modify the default shell after login in unix.when my frend tried in rh9...he modified the password file in /etc to open up with the k shell instead o bash.now rh is not booting in at all.how can this be set right?
GNUrag
GNUrag #2
Feb 8, 2005 at 8:39 PM
Most probably that ksh is not installed by default. But that should not be a reason for RedHat not booting. Are you sure you did not modify anything else inside /etc/ directory ?

How you can try this:
1) Boot from Knoppix.
2) Mount that linux partition.
3) Edit /etc/passwd and change it back to bash.
4) Or create a symlink called ksh that points to bash in case ksh is not installed.

HTH
N
Feb 9, 2005 at 12:53 PM
sure something else has done just do as said by GNURug or boot from 1st cd for RH at boot prompt type

linux rescue

When you get shell prompt (#) type
chroot /mnt/sysimage
Now look at /etc/passwd or other places to fix problem
I
IG #4
Feb 9, 2005 at 9:39 PM
thanks guys.