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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-27-2003, 01:08 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15
Rep:
|
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
|
|
|
|
02-27-2003, 02:03 AM
|
#2
|
|
LQ Newbie
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15
Original Poster
Rep:
|
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! 
|
|
|
|
02-27-2003, 03:20 PM
|
#3
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
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
|
|
|
|
02-27-2003, 04:38 PM
|
#4
|
|
Member
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162
Rep:
|
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 )
|
|
|
|
02-27-2003, 05:06 PM
|
#5
|
|
Member
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944
Rep:
|
Shouldn't typing "su" do the same thing as typing "su root"?
-JMagi
|
|
|
|
02-27-2003, 05:30 PM
|
#6
|
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep: 
|
It probably says this in man su, but yes su on it's own assumes you want to switch user to root. 
|
|
|
|
02-28-2003, 12:08 AM
|
#7
|
|
LQ Newbie
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15
Original Poster
Rep:
|
su on its own simply goes into root automatically, there's no need to type su root 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:51 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|