Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Great - thanks. I am now starting to understand - if I log in as root, I need to set the path in the .bash_profile under /root. For other users, I have to set it in the .bash_profile in the /home/user_name directory.
Is there anywhere I can set it where it will always be picked up regardless of user?
I am not aware of any location that allows you to set a path that woud be applicable for all users. Part of the reason behind this the idea of security within unix/linux. In many (most?) distributions root will have a some what limited path listing. For example root will normail not include "." which would be your current working directory. This is to prevent the root user from accidently running a program that has been left in a user directory that has been given the same name as a traditional utility program.
I hope this makes some sense (I have just gotten out of bed...).
It does, but from a maintenance standpoint, I can see this could get out of hand if you need default paths for a group of users... or is it possible to set paths by group somehow?
In the meantime, I am running a server with Oracle Applications, and so only need applmngr and root pretty well, so the solution of setting the path in the bash file for the 2 uses is no problem. The penny dropped for me last night when you replied, so I feel at least I understand how it works...
The overall system path is set in /etc/profile. The profiles in the home directories are generally extensions of it. You might see specific uid's mentioned in it to have portions of the path apply only to root or other users.
I couldn't log in to my box as root at all so I got some help and he tried to see if my shell was the problem and it ended up being my root folder. So he renamed root to root.hosed and made a new folder called root then I think thats all he did then he tried loging in and it worked. But i can't set the path for /sbin /usr/sbin /usr/local/sbin and if i type an absolute path it will work. So my question would have to be how to set the path only for root????? Oh yeah and when i log in it doesn't seem to be reading my .bashrc or any of the files that I can tell???? Any Ideas???