[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] What's The IP Address?
On Sun, 2003-11-09 at 01:19, fred wrote:
> If you are logged in as fred and type ifconfig it will show command not
> found as you are not root (user)
That's not correct - it's command not found because /sbin generally
isn't in your $PATH.
> Changing to root with fred [at] lxbox local] # su
> password ******
> root [at] lxbox local] # ifconfig -a
>
> Will work however you are running cammand as root!!!
Actually, it probably won't work - since being root is not the problem,
changing to root isn't going to fix it. If you did 'su -' rather than
plain 'su' it would, because you would also get root's environment,
which does have /sbin in $PATH.
> Is this all to do with absolute path!! /sbin/ifconfig
Indeed, that works.
Cheers,
Alex.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.