Hi guys,
I am new here so, don't know how to start a discussion here but I recently changed my SHELL to korn from bash in both normal user & root.
Now I am not able to log in to any of them. Any assistance will be really appreciated.
Need help after changing shell
Re: Need help after changing shell
What did you change and how? What exactly did you do to change the shell?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Need help after changing shell
I don't think ksh is installed by default.
If you haven't installed it, then you may have to update /etc/passwd by e.g. booting a live distro and mount the partition.
If you haven't installed it, then you may have to update /etc/passwd by e.g. booting a live distro and mount the partition.
Re: Need help after changing shell
If you can log in as any user you should be able to su into root using bash:
You ought to be able to run vipw and fix the problem.
As a check I also tried the same thing getting into Korn (/bin/ksh). The prompt was a plain hash, and the output from the echo was /bin/ksh, so exactly as documented and expected.
--BTW, Remember to log out of su sessions ASAP, they are dangerous to leave running as I'm sure you remember!
Code: Select all
$ su -s /bin/sh
Password:
sh-4.2# echo $SHELL
/bin/sh
sh-4.2#
As a check I also tried the same thing getting into Korn (/bin/ksh). The prompt was a plain hash, and the output from the echo was /bin/ksh, so exactly as documented and expected.
--BTW, Remember to log out of su sessions ASAP, they are dangerous to leave running as I'm sure you remember!