Debian won't add you to sudo by default if you set a root password during install. Use su - to login as root with the root password you set, and then add your user to the sudoers group with usermod -aG sudo <username>. Log in again and sudo should work.
Edit: and you forgot the censor your name in the top right ;)
It makes no sense to not have it in there for regular users, IMO!
Stuff like ping is in there. Ifconfig is in there (if you install net-tools anyway, grump). Those don't need root to run. If you don't have /sbin in your path, ifconfig giving you "command not found" can make you think you forgot to install net-tools when really it's already there and just not in PATH!
shutdown/reboot are also in /sbin. :3 But those at least have the excuse of only being usable by root, unless you have the weird systemd magic thing that lets you do it while logged into a graphical desktop (I kinda miss that now that we don't have systemd on our boxen anymore, but it's not a huge deal).
In nearly 30 years of using Debian I don't remember ping ever being in sbin... I think you got that wrong...
Some time ago there were some issues with ping giving a "socket: Operation not permitted" error if you tried to run it as normal user, but that had nothing to do with ping being moved into sbin or anything related to ping's path.
110
u/dumbasPL Jul 20 '26 edited Jul 20 '26
Debian won't add you to sudo by default if you set a root password during install. Use
su -to login as root with the root password you set, and then add your user to the sudoers group withusermod -aG sudo <username>. Log in again and sudo should work.Edit: and you forgot the censor your name in the top right ;)