transaction_test: Add root-less tests to check pam conversation

Use pam_succeed_if to make it implicitly ask for the user name and
verify that the provided one is correct.

This can safely run as user.
This commit is contained in:
Marco Trevisan (Treviño)
2023-09-19 18:40:17 +02:00
parent 1cab6e699c
commit a22a1abf3f
2 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# Custom stack to deny permit, independent of the user name/pass
auth requisite pam_succeed_if.so user = testuser