You are not logged in.
Pages: 1
Surprisingly, if this line is removed I do not need to tap password.
It is because:
The last matching rule determines the action taken. If no rule matches, the ac-
tion is denied.
https://man.openbsd.org/doas.conf#DESCRIPTION
What is wrong with using XAUTHORITY?
Nothing, but you should have only one line matching the same username.
permit nopass keepenv setenv { XAUTHORITY=/home/username/.Xauthority DISPLAY=:0.0 LANG LC_ALL } username as root
Pages: 1