The trick (as you showed, but didn't point out) is
that you must either have /sbin in you path (which
root does) or specifiy it when you try to run
ifconfig.
Mere mortals must run ifconfig as such:
/sbin/ifconfig
Root can just type ifconfig, because /sbin is in his
path. Or course mere mortals c
Hi all,
> A long time ago, in a galaxy far, far way, someone said...
>
> > How would a user find out the IP address assigned to eth0. This is a
> > normal user, not a sys-op, so he doesn't have access to ifconfig.
>
> Even a normal user can run ifconfig; the normal user just can't change
> anyth
A long time ago, in a galaxy far, far way, someone said...
> How would a user find out the IP address assigned to eth0. This is a
> normal user, not a sys-op, so he doesn't have access to ifconfig.
Even a normal user can run ifconfig; the normal user just can't change
anything with ifconfig.
Ru
-rwxr-xr-x1 root root45296 Nov 18 07:12 /sbin/ifconfig
so I don't see a problem to execute it as user:
[EMAIL PROTECTED]:~]$ id
uid=1000(siemce) gid=1000(siemce) groups=1000(siemce)
[EMAIL PROTECTED]:~]$ /sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:20:77:38:29
How would a user find out the IP address assigned to
eth0. This is a normal user, not a sys-op, so he
doesn't have access to ifconfig.
Thanks,
Bryan
5 matches
Mail list logo