LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pam_time time limitation not working (https://www.linuxquestions.org/questions/linux-newbie-8/pam_time-time-limitation-not-working-4175672575/)

amteguia 04-04-2020 10:23 PM

pam_time time limitation not working
 
Hi Everybody,

I am trying to restrick loggin for some hours , but my settings are not applied.

/etc/pam.d/sshd id as follows

account required pam_nologin.so
account include password-auth
account requisite pam_time.so
password include password-auth


/etc/security/time.conf is as follows

sshd;*;aauteguia;Su1400-2300


I also tried this but not working

*;*;aauteguia;Su1400-2300


Please can you help me solve this issue ?

Thanks

berndbausch 04-06-2020 05:07 PM

I have never used it, but I would try the module's debug option.


All times are GMT -5. The time now is 03:13 AM.