Sudo#
Migration to doas#
As an lightweight alternative to sudo you can use doas.
Warning
doas does not seem to be production ready. See [2]
install the package
apt-get install doas
configure doas. Replace
USER
with your user1permit keepenv setenv { XAUTHORITY LANG LC_ALL } :wheel 2permit persist keepenv ${USER}
test it
doas -s
use this bash alias and function to convert
sudo
andsudo -i
to thedoas
equivalents1function doas_to_sudo_interactive() { 2 # rename alias 3 [ "${1}" = '-i' ] && doas -s || doas ${1} 4} 5alias sudo='doas_to_sudo_interactive'
If you want to remove sudo you have to set an environment variable first
SUDO_FORCE_REMOVE=yes apt purge sudo
Footnotes