limiting time per day account

I would like to enable an account for max 2 hours per day from 12:00 to 18:00.
I tried to use time.conf without success.

Can I do that?

Thanks in advance

6.32. pam_time - time controled access

It’s meant to be used with pam_time, so you have to add pam_time to the appropriate /etc/pam.d/* file, probably common-account, as pam_time only supports the account service. Probably you need an additional line:

account required pam_time

Careful that you don’t lock yourself out. :slight_smile: