Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatic logout
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
aerogems
n00b
n00b


Joined: 19 Feb 2003
Posts: 30

PostPosted: Sun May 01, 2005 5:40 pm    Post subject: Automatic logout Reply with quote

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
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sun May 01, 2005 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun May 01, 2005 6:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sun May 01, 2005 6:10 pm    Post subject: Reply with quote

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 :D That's cool.
Back to top
View user's profile Send private message
aerogems
n00b
n00b


Joined: 19 Feb 2003
Posts: 30

PostPosted: Sun May 01, 2005 7:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum