How can I set computer usage time limits?
I've looked at a number of other threads but most of them talk about how to restrict the time of day an account can log in... What I'm looking for is a simple way to restrict the total usage minutes during any 24-period, e.g. I want to allow "jsmith" to be logged in a total of 120 minutes per day. I don't necessarily care WHEN jsmith is logged in; I just want to cap his total time at 120 minutes during the 24 hour period 0000-2400.
I looked at the question, "How do I restrict my kids' computing time" but again that focuses on WHEN the account can actually log in, not how LONG the account is allowed to remain logged in.
The solution needs to "remember" previous logins even after the user has logged out; for example if jsmith logs in for an hour in the morning, then logs out, jsmith should not be allowed to remain logged in for more than an hour in the afternoon or evening, for a total of 2 hours usage per 24-hour period. What is the easiest way to accomplish this in Ubuntu 11.04?