First, add debug at the end of that pam_time.so line that debug info is logged.
Second, you need to either put the call to pam_time.so in common-account so that all authenticated services use it, or to put it in the file for each service. For instance to deny ssh login, you would edit /etc/pam.d/sshd. For GUI login, it’s probably not /etc/pam.d/login, that’s for the CLI login. It might be xdm.
Pay attention to the note at the top of /etc/pam.d/common-account about the file being automatically generated.
When pam_time.so is actually being called, you should get a line like this in /var/log/messages:
Sep 18 00:01:47 foo sshd[2272]: pam_time(sshd:account): user foo rejected
Thanks for the reply but I am a featherless little chick and I would be grateful if you could provide me with a more detailed reply (as with code?:shame:)
Regards
PS please forgive the second posting on the same topic but I am new to forums and dont know the prosedures well