View previous topic :: View next topic |
Author |
Message |
aerogems n00b

Joined: 19 Feb 2003 Posts: 30
|
Posted: Sun May 01, 2005 5:40 pm Post subject: Automatic logout |
|
|
I'm looking to set up an older box as a server/internet terminal for a local business. One of the functions will be to run a local web based program, but it's very important that only the person logged in sees the particular data for their username. At some point I plan on adding a login/authentication system to the web app, but for now...
So what I'd like to try and do, is be able to monitor a person's idle time, and then log them out after if they're idle for more than some set amount of time. Ideally, this method would work with KDM (or any of the others really). So if Person A gets up and forgets to log out, there's a good chance by the time Person B sits down, they have to log in themselves.
Does such a program exist? |
|
Back to top |
|
 |
i92guboj Bodhisattva


Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sun May 01, 2005 5:59 pm Post subject: |
|
|
There could be many workarounds to acomplish this.
If you use kde you can rename /usr/kde/3.4/bin/kblankscrn.kss or /usr/kde/3.4/bin/krandom.kss to something different, and substitute the file for a script that would launch the at daemon to do what you want, so you can adjust the time by simply configuring your screensaver into the kcontrol (not tested, thou).
Then you will also need to make something similar with /usr/kde/3.4/bin/kcheckpass to kill the daemon with '/etc/init.d/at stop'
Of course you need to emerge at, and you also need to play around a little with sudo, because only root is allowed normally to start and stop daemons. I know almost nothing about at, so cant help with that, i never had a need to use it.
If you use kde the only similar thing I can think of is kshutdown, is in portage but masked, anyway i doubt it is what you are looking for... |
|
Back to top |
|
 |
nixnut Bodhisattva


Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun May 01, 2005 6:02 pm Post subject: |
|
|
add TMOUT=300 to /etc/profile to log ppl out after 5 min inactivity _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
 |
i92guboj Bodhisattva


Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sun May 01, 2005 6:10 pm Post subject: |
|
|
nixnut wrote: | add TMOUT=300 to /etc/profile to log ppl out after 5 min inactivity |
Vow! Is that documented in any known place, please? I didnt know at all about that That's cool. |
|
Back to top |
|
 |
aerogems n00b

Joined: 19 Feb 2003 Posts: 30
|
Posted: Sun May 01, 2005 7:13 pm Post subject: |
|
|
nixnut wrote: | add TMOUT=300 to /etc/profile to log ppl out after 5 min inactivity |
But will that work with XDM/KDM/GDM? |
|
Back to top |
|
 |
|