LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-27-2003, 01:08 AM   #1
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Rep: Reputation: 0
Unhappy su command not working


Hi all,
I recently had the login problem, so now I can login fine with my user, but when I try to do an su, I get this

[dahmad@asia dahmad]$ su
Password:
su: cannot run /usr/bin/ksh: No such file or directory

which is true because I cannot find it, so what do I do?do I install ksh or change it to bash?(please tell me if I am talking nonsense with my suggestion)

Thanks for your help,

Sim
 
Old 02-27-2003, 02:03 AM   #2
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Original Poster
Rep: Reputation: 0
It works , I changed the root entry looking for ksh, to correct bash, but how do I customise the bash for things like colour and any paths that I had defined in the shell before this fix?

Thank you

Sim

This site rocks!
 
Old 02-27-2003, 03:20 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
Quote:
but how do I customise the bash for things like colour and any paths
User specific stuff goes in ~/.bashrc and stuff for everyone goes in /etc/profile
 
Old 02-27-2003, 04:38 PM   #4
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Rep: Reputation: 30
Wait a minute, you are just typing *su* nothing else, why dont' you try typing "su root" <<or what not, try that. because you are just sending the command for "su" to happen, and not specifying what user name you want to login (well that's what you are showing us anyway )
 
Old 02-27-2003, 05:06 PM   #5
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Shouldn't typing "su" do the same thing as typing "su root"?

-JMagi
 
Old 02-27-2003, 05:30 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
It probably says this in man su, but yes su on it's own assumes you want to switch user to root.
 
Old 02-28-2003, 12:08 AM   #7
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Original Poster
Rep: Reputation: 0
su on its own simply goes into root automatically, there's no need to type su root
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lspci command not working lowebb Linux - General 1 10-24-2005 01:22 PM
su command not working for root biswajit_dey Linux - Software 3 07-20-2005 11:46 PM
rpm command not working sanjaya Linux - Software 7 02-20-2004 01:08 AM
Working examples of dd command satimis Linux - Newbie 2 01-05-2004 07:23 AM
ps command not working slackerboy Slackware 2 08-22-2002 11:01 PM


All times are GMT -5. The time now is 10:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration