/sbin not in path in su?
Ralph Angenendt
ra at br-online.de
Tue Dec 16 16:20:59 UTC 2003
Mike Evans wrote:
> 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.
Because you should be "su -" if you want to have root's environment.
Simple su gives you id 0 but you stay in your environment. And /sbin
won't be in your PATH then.
Ralph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20031216/1e9f55be/attachment-0001.sig>
More information about the fedora-list
mailing list