I've systems with dzdo and sudo users, Its necessary to find the user who is sudo/dzdo to run the following commands accordingly. like updating ca-certificates, changing permission ..etc
if [ -f /usr/bin/dzdo ]; then
/usr/bin/dzdo "$@"
else
/usr/bin/sudo "$@"
Above won't be applicable for users who have a dzdo but using sudo.