doas
is a sudo
-like command recently packaged in Debian 12, Ubuntu Jammy (universe) and some other Linux distros.
A non sudoers user (doasuser
) can be added to /etc/doas.conf
to be granted root access. Detailed instructions on Debian Wiki.
Problem:
The doasuser
isn't a member of any group. If you grant root access to doasuser
, this information isn't synchronized with sudo
(seen as unprivileged user). doas
only comes with a binary program, a PAM configuration file and /etc/doas.conf
.
Apart from /etc/doas.conf
, a superuser can't find the permissions of the doasuser
.
Is there any command line to check the permissions of doasuser
?
doas
.sudo
isn't really relevant to the question at all except in thatdoas
is a vaguely asudo
-like tool. The mentions ofsudo
in the question are just confusing the issue. If you need to mentionsudo
at all, you probably just want the equivalent ofsudo -l
orsudo -lU <user>
fordoas