LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   su: /bin/ksh: No such file or directory (https://www.linuxquestions.org/questions/linux-general-1/su-bin-ksh-no-such-file-or-directory-4175583223/)

simplysidh 06-28-2016 12:52 AM

su: /bin/ksh: No such file or directory
 
I can't login as root:
what it show is....

[sidh@localhost ~]$ su
Password:
su: /bin/ksh: No such file or directory
[sidh@localhost ~]$

how to set root shell as bash or sh ?

Turbocapitalist 06-28-2016 01:10 AM

Using "su" the manual page shows several options. If you can "su" to root, then you could try the following:

Code:

su -l -c /bin/bash
But that's just one-off. You'll need to use "usermod" to switch the default login shell permanently for root.

However, how is it that you have the account defaulting to a shell that apparently is not on your system?

business_kid 06-28-2016 01:13 AM

There's usually something in /etc/profile.d/ related to shells. All shells also run a few scripts at logon; for bash, it's ~/.bash_profile & ~/.bashrc from memory.


All times are GMT -5. The time now is 02:41 PM.