The officially official Devuan Forum!

You are not logged in.

#1 Re: Freedom Hacks » Replacing sudo. » 2023-09-11 20:41:25

Devarch wrote:

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

Devarch wrote:

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

Board footer

Forum Software