User account controls

Asked by LEGOManiac

It's back-to-school time again and that leaves me wondering: are there any more advanced user account controls such that I can force a logout after a period of time (say, 2hrs) or ban log-ins before 7PM (to make sure homework comes first) and force a log-out at 9PM?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You can make a script and cron (schedule) it to run:

This will help you form the script:
http://ubuntuforums.org/showthread.php?t=288223

You can have the script simply kick them out, you can even cron another job 10 mins before to show the user a message along the lines of "YOu will be logged off in 10 mins"

https://help.ubuntu.com/community/CronHowto

If you use:

gksudo gnome-schedule
or
sudo crontab -e

You can cron as root :)

Revision history for this message
LEGOManiac (bzflaglegomaniac) said :
#2

Thanks. I had a feeling I'd be stuck with cron. I was hoping there was some sort of package I could install that would have given more advanced account control options.

I'll leave this open in case anyone has a better idea and close it in a couple of days if nothing better surfaces.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
LEGOManiac (bzflaglegomaniac) said :
#4

Thanks actionparsnip, that solved my question.