LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   add path to normal user (https://www.linuxquestions.org/questions/linux-general-1/add-path-to-normal-user-214655/)

acbenny 08-07-2004 10:12 AM

add path to normal user
 
if a normal user just want to type ifconfig rather than /sbin/ifconfig. How can I do it ?

david_ross 08-07-2004 10:26 AM

You can add "/sbin" to the PATH variable:
PATH="/sbin:"$PATH

It will only last for a session so you probably want to put it in a login script for either that user all for all users.

acbenny 08-07-2004 12:45 PM

sorry, i also don't understand, can u teach me step by step.
Thanks!!!

whansard 08-07-2004 01:09 PM

in the user's home directory, there should be a file called .bash_profile, which has the PATH defined in it. add what you want to that.

acbenny 08-07-2004 09:31 PM

is it nescessary to reboot linux after vi .bash_profile. to take effective ? any other method ?

whansard 08-07-2004 10:02 PM

logout and log back in.

acbenny 08-07-2004 10:24 PM

Thank you very much !!!


All times are GMT -5. The time now is 06:24 PM.