Log off idle users

Place to discuss Fedora and/or Red Hat
Post Reply
kovax
scripter
scripter
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA
Contact:

Log off idle users

Post by kovax » Thu Apr 30, 2009 8:10 am

Is there a way to log off idle users automatically? Is there a script or something like that out there that would do this?

Thanks

Kovax
Last edited by kovax on Thu May 14, 2009 9:29 am, edited 1 time in total.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Thu Apr 30, 2009 1:35 pm

Is this for security reasons or just system resource/cleanup reasons? From a shell level or desktop level? For example, you can add "TMOUT" to the bash profile which will automatically exit the shell (if you are ssh'd in to a system or have a shell windows open). If you are talking about having a desktop session logged out that's a little different. It would make sense to have the screensaver set up to log a person out of a desktop session. Not sure off the top of my head on that but shouldn't be hard to figure something out. Or are you talking any process by a normal user? That might be a little more difficult and may have unintended consequences.

kovax
scripter
scripter
Posts: 85
Joined: Mon Jan 24, 2005 9:47 am
Location: Jacksonville, USA
Contact:

Post by kovax » Mon May 04, 2009 1:08 pm

It is for security reasons. I have a few users that seem to stay logged on for days of inactivity. I am trying to implement a policy to log them out. This is for some of my application servers.

thanks

Post Reply