LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Automatically log out idle users (https://www.linuxquestions.org/questions/linux-software-2/automatically-log-out-idle-users-713767/)

rozilla 03-23-2009 07:20 AM

Automatically log out idle users
 
I'm looking for an app (or a config?) that automatically logs out users who are idle beyond a given time-limit.

AlucardZero 03-23-2009 07:45 AM

append
Code:

export TMOUT=###
to /etc/profile, replacing ### with the number of seconds you want.

And sorry, but this is an easily Googleable question - you'll often find answers more quickly if you do a little searching yourself.

rozilla 03-24-2009 04:44 AM

Quote:

Originally Posted by AlucardZero (Post 3484900)
And sorry, but this is an easily Googleable question - you'll often find answers more quickly if you do a little searching yourself.

Well, you need to take your own advice. You see, I have googled, and thus found out that TMOUT will only log users out with open terminals. If you're logged into the desktop and the terminal is not open, you'll stay logged in with or without TMOUT.

Maybe next time before you go off on someone, you make sure you know what you're talking about.

AlucardZero 03-24-2009 11:46 AM

You didn't mention a desktop or a GUI - sorry, I failed the mind reader exam.

I by no means "went off" on you - I was far more polite than many would have been.

So since you've looked already, you know about the screensaver options and I don't have to suggest that.

rozilla 03-24-2009 06:06 PM

I don't want to lock the session with a screensaver. I said I want the user logged out, after a predetermined idle-time. Geeeez!


All times are GMT -5. The time now is 07:28 PM.