How to allow user to access system only 1 hour in day using PAM?
For example I wish to give access to a user only for 1hr on a workstation in 24hrs. First the 24hr time period needs to be defined, as fixed time period like 00:00:00 to 23:59:59 or the time period should be counted from the time the user first logs in. One must also consider the possibility if the user logs in for 3 minutes. logs off and logs in, after an hour.
Note: I have successfully configure allow access in time ranges but not only 1 hour in day.
Please give me any example of any service.