Sat 01 Jun 2019
Sometimes you just want to restrict users from using the system at certain times in the week ;-) It’s all there when using
PAM, you just need to find it.
For the specific
PAM services see
$ ls /etc/pam.d/
Limiting access to eg
lightdm in 2 steps:
account required pam_time.so
which will block access to all services which require
pam_time.sooutside of 12:00 and 21:30 time window.
More info and how to set the see: linux-pam