LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-28-2016, 12:52 AM   #1
simplysidh
LQ Newbie
 
Registered: Jun 2013
Posts: 4

Rep: Reputation: Disabled
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 ?
 
Old 06-28-2016, 01:10 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,305
Blog Entries: 3

Rep: Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720Reputation: 3720
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?
 
Old 06-28-2016, 01:13 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,278

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/bin/ksh: bad interpreter: No such file or directory thomas2004ch Linux - Software 8 01-29-2013 07:27 AM
[SOLVED] GE: /usr/local/bin/googleearth: line 44: ./googleearth-bin: No such file or directory business_kid Linux - Software 5 11-26-2011 09:15 PM
[SOLVED] bash: /usr/local/bin/xdsi: /usr/bin/wish: bad interpreter: No such file or directory Berwhale Linux - Newbie 2 09-15-2011 02:59 PM
bash/ksh ./main: no such file or directory patient_penguin Linux - Newbie 6 09-17-2009 09:27 AM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration