Run ifconfig without root privileges

So I couldn’t run ifconfig on a client’s RedHat Enterprise system today because my account didn’t have sudo rights.

01:31:06 # ifconfig
bash: ifconfig: command not found

Here is how I got it to work:

01:43:05 # whereis ifconfig
ifconfig: /sbin/ifconfig

[email protected]:(RC=0):/ibus/DIDOMAINAHSFLP149E2/logs
01:43:10 # /sbin/ifconfig

and viola, it worked.

The author would love to hear your comments. Let us discuss at Twitter @hashtaginfosec.