On Wed, 13 May 2020 at 14:53, Matt Pallissard <matt@xxxxxxxxxxxxxx> wrote: > > On 2020-05-13T12:39:50 +0100, Andy Pieters wrote: > > Should be doable, skip to pam_exec.so with `success=${num lines to skip}` > > So > man 8 pam_exec > > auth sufficient pam_unix.so > auth [success=1 default=ignore] foo_2fa.so some_other=options > auth requisite pam_deny.so > auth optional pam_exec.so debug /path/to/my/script.sh > Does that mean then that the auth_optional line is only *ever* triggered by a success on the 2fa line? No other way for PAM to execute it?