The command does not need root access to run as you are calling it, i.e., just plain
ifconfig without any command line options. It's probably just not in your path. However, trying to shut down an interface with it, e.g.,
ifconfig eth1 down, WOULD require root permissions.
Try: