[H-GEN] another thing
Allen Grace
a.grace at mailbox.uq.edu.au
Thu Aug 26 07:53:34 EDT 1999
[ Humbug *General* list - semi-serious discussions about Humbug and
Unix-related topics. ]
Stephen Brine wrote:
> if I telnet in with my normal login name freek then su to root if I use
> tools like route it says
> bash: route: command not found
> now is this a protection thingy built into su (it does the same if i login
> on the actual console then su to root) and is there a way around it ?
The environmental variable PATH specifies where bash is to look for
things that you want to run. Root's PATH is different to that of an
ordinary user because root wants to run different sorts of things; e.g.
generally users don't need to run route, so their path doesn't include
/sbin (which is where route lives (on linux anyway)). When you su,
root's .bashrc (or .profile or whatever sets environment values for you)
is not run, so PATH does not change. Type the full path, or change your
rc file.
allen
--
PD: pardon of my horror syntax english. you must be patient with me.
--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.
More information about the General
mailing list