On Sat, January 13, 2007 8:43 pm, Jordi Espasa Clofent
wrote:> Hi all,
>
> Usually I work in X environment (XCFE) with extensive use of x terminal;
> concretely, I use Gnome-terminal.
> Sometimes I change to root to do some admin tasks. But often it seems a
> few commands are not availables. The key is in the $PATH value:
>
> echo $PATH (in login shell, interactive ):
>
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/root/bin
>
> echo $PATH (in gnome-terminal, no-login interactive shell):
>
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/jordi/bin
>
> The last path in $PATH variable shows me that the problem would be the
> gnome-terminal doesn't update correclty the $PATH when I change to root
> through "su" command.
>
> ?What do you think about?
>
> TIA.
>
su -
will do the trick.