Duncaen / OpenDoas

A portable fork of the OpenBSD `doas` command
Other
611 stars 35 forks source link

Persist does not work on Arch #94

Closed ad-on-is closed 2 years ago

ad-on-is commented 2 years ago

I've installed opendoas from the Arch repo which seems to be built with the --with-timestamp config. https://github.com/archlinux/svntogit-community/blob/packages/opendoas/trunk/PKGBUILD

However, the password is not persisted, even thou I've added permit persist :wheel in the /etc/doas.conf

Is there something I'm missing?

ad-on-is commented 2 years ago

Ok, I found the issue.. It's the ordering of settings.

This does not work

permit persist :wheel
permit setenv { XAUTHORITY LANG LC_ALL } :wheel

However, this works

permit setenv { XAUTHORITY LANG LC_ALL } :wheel
permit persist :wheel
ericonr commented 2 years ago

You're overriding the config for :wheel, that should be a single line with all the configs.