LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting up ones shell correctly? (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-ones-shell-correctly-22986/)

ifm 06-09-2002 12:28 PM

Setting up ones shell correctly?
 
Total newbie question... this has got to be a seriously stupid one... but the answer eludes me, even after using linux hard core for a good year now...

When you 'su' into root from a remote station/user... many commands no longer work unless you type also the /usr/sbin or /sbin in front of the command.

So my question is... how do I add those two locations to the command lookup paths?

Its really bothersome to type those out all the time. When directly rooting into the machine physically (not remotely), this seems to be all set fine.

Its gotta be a config file somewhere ... I just cant find it.

taz.devil 06-09-2002 12:43 PM

Edit your /etc/profile file and add those two directories to the PATH= statment.

trickykid 06-09-2002 12:47 PM

when your su'ing to root, use this command to get the full path of root:

su -

or

su - root

and you should have /usr/sbin and /sbin in your path.

ifm 06-09-2002 12:57 PM

Thank you!
 
Both of those replies worked out fine. Have no clue why I just couldn't figure that out before, but thank you for the responses.


All times are GMT -5. The time now is 08:52 PM.