On Friday 25 May 2007 15:45, Alexey Eremenko wrote:
...
LOL ! Running ifconfig as root is totally different than running it with /sbin/ifconfig as normal user.
How do you figure? When I run /sbin/ifconfig from my own account and then ifconfig from root (though I have /sbin in my everyday path), and diff the results, this is what I get: diff /tmp/{rschulz,root}-ifconfig 5c5 < RX packets:654610 errors:0 dropped:0 overruns:0 frame:0 ---
RX packets:654611 errors:0 dropped:0 overruns:0 frame:0
8c8 < RX bytes:439743722 (419.3 Mb) TX bytes:61560706 (58.7 Mb) ---
RX bytes:439743782 (419.3 Mb) TX bytes:61560706 (58.7 Mb)
The only differences are the statistics that naturally change over time. If I could synchronize the two invocations closely enough, they might not differ at all.
Adding /sbin/* to user's $PATH won't make any security problems.
True, as far as I can think of.
ifconfig should be useble by normal users to see their IP addresses, not to configure ones.
I'd go for "hostname -i" to simply see my local host's IP address. It's much easier than finding the proper IP address in the output of ifconfig (it currently produces 44 lines of output on my system). The "hostname" command happens to be in /bin/hostname, which should be in every user's PATH. Hostname has lots of other useful options. Check it out. Randall Schulz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org