pam.d + pam_google_authenticator, per user configuration

Nagy László Zsolt gandalf at shopzeus.com
Mon May 9 17:13:30 UTC 2016


> Shell script to /usr/sbin/pam_not_root.sh:
>
> #!/bin/sh
> if [ $PAM_USER != "root" ]
> then
>     exit 0
> else
>     exit 1
> fi
Even simpler one liner:

#!/bin/sh
[ $PAM_USER != "root" ]




More information about the freebsd-questions mailing list