- why is this happening?
Expected output:
# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500......
Output that occurs:
# ifconfig
bash: ifconfig: command not found
If sudo is used it works:
# sudo ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500......
- Can this effect startup scripts that use something located in /sbin?
PATHvariable is not set properly.sudo -iandsu -should set the correct path, as well as a direct login.su(or worsesudo su) will not reset the path.su root, I thought my path would change, but its the same as normal user.