how to configure $PATH for root?
hi, I need to login as root for some tasks. After login, I re-configured the PATH. PATH=$PATH:/home/jl/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin problem is, after logoff to normal user, then I swith to root. the PATH goes back to the original one: echo $PATH /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin how can I change it permanently?
Jie Li wrote:
hi, I need to login as root for some tasks. After login, I re-configured the PATH.
PATH=$PATH:/home/jl/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin
problem is, after logoff to normal user, then I swith to root. the PATH goes back to the original one: echo $PATH /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin
how can I change it permanently?
In /etc/profile.local add an entry like this ... export PATH=$PATH:/whatever or export PATH=/whatever:$PATH Mike
participants (2)
-
Jie Li
-
Mike Dewhirst