I'm running Kali Linux Live, and I was using the system as the root user for a long time before I came across an article online telling you NOT to use root as your default account, and that instead you should create a low-privileged user. I ended up doing just that, and everything was OK, until I tried to run
ifconfig, to which I received the error:
bash: ifconfig: command not found.
I tried running
sudo apt-get install ifconfig, but it returned that
ifconfig was already the newest version. I was a little confused, so I tried
sudo ifconfig, since I had to use
sudo to run
apt-get. Sure enough,
sudo ifconfig worked, and any other commands I need to run that return a similar error work with
So my problem is that the programs I need to run are stored (I presume) in the root system when I install them with
sudo apt-get install, and are therefore unaccessible by non-root users? I'm not sure if that's correct or not. Reading the manual for
sudo, I know it runs a command as root (or another user in general), but does that mean the "output is executed" in the root's system? If so, what can I do to run commands as a low-privileged user, besides giving them admin privileges?
Thanks for any and all support!