pam_duration
Set limits on per-day total usage for Linux/Unix users
pam_duration provides a module for the Pluggable Authentication Module (PAM) authorization framework that sets per-day limits on total usage by particular Linux/Unix users on a single system. Limits can be configured by day of the week, so, for example, weekend limits can be different from weekdays.
It also provides a service to ensure logout when the specified time limit expires.