Thread: PAM-script module doesn't work properly
so installed pam-script
made script:
and modified common_auth tocode:#!/bin/bash rfid_auth_success=0 #read card tag=`'/etc/rfid/rfid-login'` #check if card id card, if so, authenticate, if not, disallow if [ $tag == "2800a79557" ]; rfid_auth_success=1 else rfid_auth_success=0 fi echo $rfid_auth_success exit $rfid_auth_success;
but upon starting terminal window , typingcode:# here per-package modules (the "primary" block) auth sufficient pam_script.so dir=/etc/pam-scripts/ auth sufficient pam_unix.so nullok_secure try_first_pass
it doesn't ask password , instantly authenticates root!code:sudo test
if run above posted script manually, (cd dir , execute it), works fine , produces result 1 if positive , 0 if negative.
did wrong?
solved myself.
silly, pam-script package built , went sudo make install, ran , outputted stuff. failed put pam_script.so /lib/security/ folder.
when went make made folder .libs, had script file inside.
why make command build hidden folder?
Forum The Ubuntu Forum Community Ubuntu Specialised Support Security [all variants] PAM-script module doesn't work properly
Ubuntu
Comments
Post a Comment