27 Jan
2004
27 Jan
'04
13:49
/ 2004-01-27 12:53:29 -0000 \ Tom Knight:
Hi,
I allow ssh access to a number of accounts on one of my servers from a list of IP addresses, but I don't really want people to be using this service outside normal working hours..
I'm restricting access to these accounts thus:
In /etc/pam.d/sshd, add: account required pam_time.so
In /etc/security/time.conf, add: sshd;*;user;Wd0900-1700
All well and good, BUT... I can't log in! (And yes, it _is_ a weekday between 9am and 5pm....)
and that might be your error: I think Wd is WeekenD, Wk is WeeKday ;) Lars Ellenberg