/sbin not in path in su?
Benjamin J. Weiss
benjamin at weiss.name
Tue Dec 16 16:23:53 UTC 2003
----- Original Message -----
From: "Mike Evans" <mike at public.arl.arizona.edu>
To: <fedora-list at redhat.com>
Sent: Tuesday, December 16, 2003 10:11 AM
Subject: /sbin not in path in su?
> Sorry if this has been covered... I'm new to the list and the search
> function in the archives is non-op. After a brand new install of Fedora
> Core 1 on my Thinkpad R40, I was trying to compile some drivers and
> noticed that all the errors and warnings that cropped up were related to
> the script not being able to find "ifconfig"
>
> Since ifconfig is in /sbin and I was su, why wouldn't /sbin be in my
> PATH? I'm not only confused about that, but how to remedy the
> situation. Thanks for the help.
>
> Mike
Mike,
When you type 'su', you are switching to super user (root) rights, but you
are not getting the super user's environment, which includes the PATH
environment variable.
I would suggest that you use 'su -' instead of 'su', as it will then give
you the super user's environment as well.
Ben
More information about the fedora-list
mailing list