Sudo: Always uses the root user to get access to run a command, no matter which user you want to run the command as.
Doas: Uses the user you want to run the command as to actually get access to run the command.
Nah. The guy’s either confusing sudo -u and sudo su - or confusing “has suid so it can switch users” with “always goes through root”. Because it doesn’t “go through” root like sudo su does.
Sudo: Always uses the root user to get access to run a command, no matter which user you want to run the command as. Doas: Uses the user you want to run the command as to actually get access to run the command.
Sudo -u otheruser do still go trough root?
Nah. The guy’s either confusing
sudo -uandsudo su -or confusing “has suid so it can switch users” with “always goes through root”. Because it doesn’t “go through” root likesudo sudoes.This make much more sense…
Yes.