Views:
369β
Votes: 6β
β
Solution
Tag :
user-management
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/964246
Title:
How can I restrict users of computers to 2 hours only?
ID:
/2017/10/12/How-can-I-restrict-users-of-computers-to-2-hours-only_
Created:
October 12, 2017
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
This Bash script will lock screen after an interval you specify and require the password to reactivate it.
It gives a count down notification bubble and soft sound at 2 hours, 1 hour, 45, 30, 15, 10, 5, 3, 2 and 1 minute remaining.
As I wrote the script Iβd be happy to modify it for anyone. Because itβs written in Bash millions of other people with beginner scripting skills can change it as well.