Re:Doas – dedicated OpenBSD application subexecutor
by xcdzvyn on Tuesday August 29, 2023 @10:41PM
(#37317026)
OpenDoas has opt-in persistence via the --with-timestamp build flag. And on NixOS, for example, it's built with this flag by default.
Re:Doas – dedicated OpenBSD application subexecutor
by toastal on Tuesday August 29, 2023 @11:07PM
(#37317174)
Thanks for providing NixOS commentary. I’d was leery something in Nix would break, so I never tried.
Re:Doas – dedicated OpenBSD application subexecutor
by xcdzvyn on Wednesday August 30, 2023 @12:07AM
(#37317543)
No problem. FWIW I use doas over sudo on all 3 of my Nix hosts and I've only ever had one issue - VeraCrypt has a hardcoded shell-out to sudo, so I can't use it.
The proper fix would be VeraCrypt implementing polkit, but I just use cryptsetup's implementation.
Re:Doas – dedicated OpenBSD application subexecutor
by somat on Tuesday August 29, 2023 @11:08PM
(#37317186)
This is actually an interesting case. Openbsd implemented timing out the connection by adding it to the tty[1]. this sort of shenanigan would never fly on linux, "what! improve an unrelated established system, I don't think so." So for a long time doas on linux was not able to timeout a session. At some later point the timeout code was re-implemented on linux using a different mechanism[2].
If your linux doas does not timeout, try updating it?
1. http://man.openbsd.org/tty.4#TIOCSETVERAUTH
2. https://github.com/Duncaen/OpenDoas/blob/master/timestamp.c
Re:Doas – dedicated OpenBSD application subexecutor
by inferiorhuman on Wednesday August 30, 2023 @12:51AM
(#37317809)
Well my use case was DragonFly and FreeBSD where there is a version of doas available, but not opendoas.
However if you're running "sudo bash", you should probably consider setting the root shell appropriately and just use "sudo -l".