You cannot run sudo without authentication by default.
wheel group also does not havy any privileges in the default sudo config, by the way.
I am going to assume you meant the first example in the config, but to achieve the same issue, you'd have to use the second:
## Uncomment to allow members of group wheel to execute any command# %wheel ALL=(ALL:ALL) ALL## Same thing without a password# %wheel ALL=(ALL:ALL) NOPASSWD: ALL
No, that’s just how sudo works. It’s an inherent consequence of the architecture and protecting from root escalations under the premise that an allowed user is already compromised is not in the scope of sudo. There are dozens of academic papers on that, the oldest one I know is from 2004.
run0 fixes a lot of those problems but isn’t perfect either.
View all comments
Show parent comment
1
u/C0rn3j Sep 02 '26
It does not.
You cannot run sudo without authentication by default.
wheel group also does not havy any privileges in the default sudo config, by the way.
I am going to assume you meant the first example in the config, but to achieve the same issue, you'd have to use the second: