Linux - GeneralThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have upgraded from RedHat 8.0 to RedHat 9.0. I was installing MySQL and ran a command "ldconfig". I was given the "yo, ain't in your PATH man" error message I love so much.
First, why the discrepencies between teh .cshrc file and the actual $PATH? Also, if I've su'd to root and type echo $PATH, why does it still use /home/steve/bin?
wanted to add that i boot to text, and log in as steve. I then su to root. I notice that when the machine boots, and i log in as root (as opposed to su'ing to root) i get the full path i was expecting. So why doesn't the root's path follow when I su to root?
When you su to root, you have to
su -
not just
su
the '-' tells su to load roots environment. Without it, you become root but keep 'steve's' environment.
I am surprised that you aren't running bash (I suspect you are). If you open, as root
redhat-config-users
and select a user and properties, what does the login shell show? The default is bash, so that would explain the path inconsistancy because .cshrc is not used.
FYI. /sbin and /usr/sbin are usually NOT in a normal users path.
So, if you are running bash, what you posted is exactly the way it is supposed to work.
Originally posted by 8nasmith did you know that redhat annonced that peole using it at home should switch back to windows. Unbeliveable.
I'm sure he knows but how is this suppose to help him with his question? Useless post. If you don't post an actual answer or contribute to the thread, don't post at all. Post constructively like our rules state.
Once again I am reminded how much I have to learn, and how little I know.
Your lack of disdain for my ignorance is a testament to your acumen.
Thank you.
On a side not, I'm guessing I should have been looking at the .bashrc file, not the .chsrc file...?
-G-
Yes, .bashrc, .bash_profile and the primary setup file is /etc/bash. All 3 get run. If you want to add to a 'users' path specifically, append to .bashrc in their home dir (ALWAYS backup first), and if you want system wide path change for any user, append to /etc/bash (ALWAYS backup first).
FYI: Nothing you posted are things that you should worry about. Until you know, the '-' and how to know which shell you run are things that aren't really intuitive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.