I am trying to configure PAM TIME module, but not getting success.
I want to restrict user1 to login between 1300~1500 Hrs.

My /etc/pam.d/login output.
#%PAM-1.0
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_time.so
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
session optional /lib/security/pam_console.so
Here is my /etc/security/time.conf output.
login;*;user1;!Al1300-1500
But all this not working..any clue !