Skip to main content

Thread: PAM-script module doesn't work properly


so installed pam-script

made script:

code:
#!/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;
and modified common_auth to
code:
# 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
but upon starting terminal window , typing
code:
sudo test
it doesn't ask password , instantly authenticates root!


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

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???