There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop lcd malware memory modem monitor motherboard network printer problem ram registry router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Console lock after 15 minutes of inactivity

Reply  
Thread Tools
DotHQ's Avatar
Member with 449 posts.
 
Join Date: May 2008
Location: Ohio USA
Experience: Advanced
02-Sep-2009, 10:26 AM #1
Console lock after 15 minutes of inactivity
I'm wanting to lock the console if it has had 15 minutes of inactvity. This excludes ssh sessions, only console users.
Does anyone know of such a program that will either lock the console or log the user off. Either would work.
valdezdj's Avatar
Junior Member with 10 posts.
 
Join Date: Aug 2009
Location: Pueblo, CO
Experience: Advanced
02-Sep-2009, 11:26 AM #2
You can set that up in Group Policy, you'll have to create a group and add the console users to that group in Active Directory then run the group policy on that group. You can set the time if you want to change it to whatever you like. Your users will have to reboot or you'll have to write a script for gpupdate /force. This is all assuming you're running a Windows 2000/2003/2008 server on your network and it's what you're looking for.
RootbeaR's Avatar
Computer Specs
Distinguished Member with 4,606 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
02-Sep-2009, 11:57 AM #3
Quote:
Originally Posted by DotHQ View Post
I'm wanting to lock the console if it has had 15 minutes of inactvity. This excludes ssh sessions, only console users.
Does anyone know of such a program that will either lock the console or log the user off. Either would work.
Check your screen saver options.
DotHQ's Avatar
Member with 449 posts.
 
Join Date: May 2008
Location: Ohio USA
Experience: Advanced
02-Sep-2009, 04:24 PM #4
Quote:
Originally Posted by valdezdj View Post
You can set that up in Group Policy, you'll have to create a group and add the console users to that group in Active Directory then run the group policy on that group. You can set the time if you want to change it to whatever you like. Your users will have to reboot or you'll have to write a script for gpupdate /force. This is all assuming you're running a Windows 2000/2003/2008 server on your network and it's what you're looking for.
Good thought but this won't work for us. We do have Windows in the enterprise but these are for servers in a select VLAN that windows Active Directory cannot get to or set policies in.
Thanks for the reply.
DotHQ's Avatar
Member with 449 posts.
 
Join Date: May 2008
Location: Ohio USA
Experience: Advanced
02-Sep-2009, 04:26 PM #5
Quote:
Originally Posted by RootbeaR View Post
Check your screen saver options.
Good thought but on the console we very rarely run the gui (Startx). This is for the terminal console login when an admin is logged onto multiple servers (we have over 150) and he forgets to log off of one or more. We share the data center with others and want to ensure that no console is left with root logged on over a period of time. Screen saver is not an option, I should have mentioned that to start wtih.
__________________
"May you buld a ladder to the stars and climb on every rung" - Bob Dylan
"In this age of Fiberglass I'm searching for a gem" - Bob Dylan
Net Music Talk Forums Fourms .com Net Cooking Talk DotHQ .com
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
02-Sep-2009, 04:34 PM #6
Quote:
Originally Posted by DotHQ View Post
I'm wanting to lock the console if it has had 15 minutes of inactvity. This excludes ssh sessions, only console users.
Does anyone know of such a program that will either lock the console or log the user off. Either would work.
Hi DotHQ,

What Unix/Linux distribution are you using?

If you use Ubuntu, then just left-click on the main menu as follows:
System>Preferences>ScreenSaver
and set Regard the computer as idle after: 15 minutes on the slide bar
and check the boxes:
Activate screensaver when computer is idle
Lock screen when screensaver is active

Then click on Close, and from then on the Screensaver will do the work for you, but you may need to login with your user password to unlock the screen for the user account you logged in as.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DotHQ's Avatar
Member with 449 posts.
 
Join Date: May 2008
Location: Ohio USA
Experience: Advanced
08-Sep-2009, 04:28 PM #7
Tom,
I'm using Red Hat Enterprise edition. This is on multiple servers. We do not want to take the chance of someone walking away from one still logged in.
We only use terminal access. No GUI. So no standard screen saver is available in this environment.
Guess I need a program / script that checks for inactivity and then logs out the user. Sounds simple enough. Does anyone know of such a monster already existing?
__________________
"May you buld a ladder to the stars and climb on every rung" - Bob Dylan
"In this age of Fiberglass I'm searching for a gem" - Bob Dylan
Net Music Talk Forums Fourms .com Net Cooking Talk DotHQ .com
RootbeaR's Avatar
Computer Specs
Distinguished Member with 4,606 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
08-Sep-2009, 10:45 PM #8
DotHQ's Avatar
Member with 449 posts.
 
Join Date: May 2008
Location: Ohio USA
Experience: Advanced
09-Sep-2009, 11:12 AM #9
Thanks RootBeaR ... but that only appears to handle terminal attributes. If it has a feature which would end a terminal session I missed it, but I think you are on the right track. I'll dig more on die.net and if I find a solution I will share it here.
__________________
"May you buld a ladder to the stars and climb on every rung" - Bob Dylan
"In this age of Fiberglass I'm searching for a gem" - Bob Dylan
Net Music Talk Forums Fourms .com Net Cooking Talk DotHQ .com
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
09-Sep-2009, 01:53 PM #10
Hi DotHQ,

Search for "How to end a terminal session remotely" for links and ideas. Not sure if any of the hits will help, but a similar search for cron based approach might be useful to search for idle sessions, and issue notice of termination unless screen/keyboard response initiated by user in x amount of time from idle start.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DotHQ's Avatar
Member with 449 posts.
 
Join Date: May 2008
Location: Ohio USA
Experience: Advanced
10-Sep-2009, 02:39 PM #11
Quote:
Originally Posted by lotuseclat79 View Post
Hi DotHQ,

Search for "How to end a terminal session remotely" for links and ideas. Not sure if any of the hits will help, but a similar search for cron based approach might be useful to search for idle sessions, and issue notice of termination unless screen/keyboard response initiated by user in x amount of time from idle start.

-- Tom
good thoughts Tom. I'll let you know if that leads to a solution for me. It does sound promising. You got me going down an avenue I had not thought of. Cron is our friend.
Thanks!!!!!!
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:02 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.