[Wylug-help] Where are ifconfig, route etc under FC4?
John Hodrien
johnh at comp.leeds.ac.uk
Mon Aug 15 15:22:27 BST 2005
On Mon, 15 Aug 2005, Dave Fisher wrote:
> On Mon, Aug 15, 2005 at 02:57:28PM +0100, John Hodrien wrote:
>> On Mon, 15 Aug 2005, Dave Fisher wrote:
>>> Me too. That's probably why I didn't explicitly look for ifconfig in
>>> /sbin ... and why which ifconfig, etc obviously didn't work.
>>
>> But to keep the voice on I had before, this is also true of FC4. Of course
>> if Dave had su'ed to root with "su" rather than "su -", or run as a normal
>> user, then that wouldn't have been picked up.
>
> Excuse me for being Mr ultra-defensive, for any lapses of memory, and/or
> for miss-reading the logic of your sentence, but I think I tried sudo
> first and used "su -" after that failed. Aren't you saying that "su -"
> is supposed to work because it picks up root's path (and the rest of its
> environment)?
su - indeed does work and I've never seen an instance of it not working. I
can show you any number of default install FC4 boxes and su - gives the
following path:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
Now if either you or something else has modified .bashrc or associated
friends, then all bets are off. So something broken in /etc/profile.d for
example could shaft you. But if you look in /etc/profile you see:
# Path manipulation
if [ $EUID = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
Where pathmunge prevents duplicates.
I was just making sure that FC4's good name wasn't being soiled again as this
is *not* the fault of Fedora. The defaults are as you'd expect.
jh
--
"Never take life seriously. Nobody gets out alive anyways."
-- Anon.
More information about the Wylug-help
mailing list