sudo is 40 years old and new CVEs are still being found, perhaps because it’s ~412k (mostly plugins and tooling, more like ~15k lines which is still a lot) lines of code to let users switch accounts for a single command.
The Four Steps
- Install the
sudo xbps-install opendoas
permit your_username as root, this is the last time you’ll be using
- (optional) create a bash alias by adding
- Remove the
sudo xbps-remove -F sudoor
doas xbps-remove -F sudoif you didn’t add an alias.
Don’t Things Depend on Sudo?
-F flag for
xbps-remove is needed to force XBPS to ignore
base-system’s dependency upon it.
Everything I’ve seen will fallback to