pam-exec
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | pam-exec [2015-10-25 19:37:55] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== pam_exec ====== | ||
+ | |||
+ | pam_exec allows you to evaluate authentication token using your custom program. | ||
+ | |||
+ | Example password eval for xscreensaver: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | auth sufficient pam_exec.so expose_authtok quiet seteuid / | ||
+ | |||
+ | / | ||
+ | PW=`cat -` | ||
+ | |||
+ | if [ " | ||
+ | exit 0 | ||
+ | fi | ||
+ | |||
+ | if [ " | ||
+ | echo "Help, someone is forcing me to unlock my screen" | ||
+ | sudo dd if=/ | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | exit 1 | ||
+ | |||
+ | </ | ||
pam-exec.txt · Last modified: by 127.0.0.1