New comment by Clos3y on void-packages repository https://github.com/void-linux/void-packages/issues/38075#issuecomment-1549881429 Comment: I'd love to see this implemented! Would something as naive as ``` SUCMDS=( su sudo doas ) for prog in "${SUCMDS[@]}" do [[ $(command -v $prog) ]] && export XBPS_SUCMD="$prog sh -c" done ``` work? I don't know what other privilege escalation tools people use, but at least with these three, you can be mostly assured that if someone has `doas` installed, they're probably using it.