doas
doas can be installed with
sudo apt install doas
After this, a config file must be created, optionally after installing vim with
sudo apt install vim
sudo vim /etc/doas.conf
The content of the config file should then be set to
permit setenv {PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin} :wheel
The config file MUST end with an empty line. Additionally, "permit" can be followed by "persist" to allow for doas to have a period of time where the password must not be entered for new commands, after it has been used with a password initially.
The system needs to be rebooted for doas to function.