Logging off and locking out users at specific times
I need a way to log off a user at a specific time, and disable her account until a specific time. I could probally figure out how to make a script that would disable her account by editing the passwd file twice a day, but im not sure how to go about logging her out if she is already signed in. I thought about doing it by having the same script change the run level, but Id much rather not do that just to kick a user off a system.
Also, it would be perferable to have a five minute warning that she is going to be kicked off, so if she is actually doing anything important she can save her files.
This is to make a girl who spends way too much time on the slackware box im loaning her actually do her homework and go to bed, even if her parents arent home.
Any suggestions on where to start, or any programs that may make this easy?