admin revidoval tento gist 3 weeks ago. Přejít na revizi
1 file changed, 9 insertions
sudo
| @@ -4,7 +4,16 @@ | |||
| 4 | 4 | session required pam_limits.so | |
| 5 | 5 | ||
| 6 | 6 | @include common-auth | |
| 7 | + | ||
| 8 | + | # Below requires package 'libpam-u2f' (or equivalent PAM library) package installed first | |
| 9 | + | # as well as 'pamu2fcfg > ${HOME}/.config/Yubico/u2f_keys' ('pamu2fcfg -n >> ${HOME}/.config/Yubico/u2f_keys' | |
| 10 | + | # for additional keys) first | |
| 11 | + | ||
| 7 | 12 | auth sufficient pam_u2f.so cue [cue_prompt=Tap hardware key] | |
| 13 | + | ||
| 14 | + | # Below requires 'libpam-google-authenticator' (or equivalent PAM library) package installed first | |
| 15 | + | # as well as executing 'google-authenticator' as '$USER' first | |
| 16 | + | ||
| 8 | 17 | auth required pam_google_authenticator.so nullok | |
| 9 | 18 | @include common-account | |
| 10 | 19 | @include common-session-noninteractive | |
admin revidoval tento gist 3 weeks ago. Přejít na revizi
1 file changed, 10 insertions
sudo(vytvořil soubor)
| @@ -0,0 +1,10 @@ | |||
| 1 | + | #%PAM-1.0 | |
| 2 | + | ||
| 3 | + | # Set up user limits from /etc/security/limits.conf. | |
| 4 | + | session required pam_limits.so | |
| 5 | + | ||
| 6 | + | @include common-auth | |
| 7 | + | auth sufficient pam_u2f.so cue [cue_prompt=Tap hardware key] | |
| 8 | + | auth required pam_google_authenticator.so nullok | |
| 9 | + | @include common-account | |
| 10 | + | @include common-session-noninteractive | |