redhat 9.0 password file modified.not logging in.

Status
Not open for further replies.

IG

Journeyman
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

FooBar Guy
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
 

nixcraft

Journeyman
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
 
Status
Not open for further replies.
Top Bottom