Linux timed access
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:
- add to
# /etc/pam.d/lightdm account required pam_time.so
which will block access to all services which require
pam_time.so outside of 12:00 and 21:30 time window.
More info and how to set the see: linux-pam