pluggable authentication modules - time based ssh logins
rene — Sat, 01/03/2009 - 22:11
The pam module pam_time.so will allow a system administrator to define what time users can access certain services.
To deny ssh logins for the user rene during business hours add the following to /etc/security/time.conf
ssh;*;rene;!Wk0900-1730Then add the following line to /etc/pam.d/ssh
account required pam_time.soCheck out the time.conf(5) and pam_tally(8) man pages for some more examples of time.conf entries.































