On 15 December 2016 at 10:42, trondd <tro...@kagu-tsuchi.com> wrote: > On Thu, December 15, 2016 12:28 pm, Ax0n wrote: >> I don't know how doas is keeping track of a session. If it's by >> interactive >> tty session only, that could cause problems with non-interactive scripts. >> I'll let someone closer to the code answer that question. >> > > It's tied to the shell. > > http://www.tedunangst.com/flak/post/doas-mastery > > "If you have multiple shell logins to a machine, each login will require > authentication. Additionally, the authentication information includes the > parent shell process ID. This means that executing doas again in a shell > script will require authentication." >
Ah, I knew I should have checked Ted's blog!