LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2005, 08:57 AM   #1
Abnoba12
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 2, Fedora Core 6, UNBUNTU
Posts: 22

Rep: Reputation: 15
Auto-Logout of X-Windows


I have been looking around the web for a way to logoff a user after a certain amount of time. I am using Fedora Core 2 and running GNOME with X-Windows. When I logout this user I want it to return me to the login screen. I tried putting this code:

// Timeout if no input is given for 1 hour
TMOUT=3600

Into my “.bash_profile” file, but it didn’t seem to work. So I did some more reading and found a few things talking about “tcsh”, but I didn’t understand what any of that was talking about.

Could someone point me in the right direction? I can navigate and make things work in Linux, but I would still call myself a noob.
 
Old 10-21-2005, 02:16 PM   #2
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
Security

The nearest I can get is using the control centre to apply password to stop the screensaver.

This might be a KDE thing, though.
 
Old 10-21-2005, 03:02 PM   #3
Abnoba12
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 2, Fedora Core 6, UNBUNTU
Posts: 22

Original Poster
Rep: Reputation: 15
It is not a matter of security. Yes this adds to it, but the primary reason is because the only way I connect is trough x11vnc. If I lose my connection while logged in it won’t let me reconnect. There is no monitor, keyboard, or mouse on this computer and I am forced to reset it so x11vnc will work again.

When I had the machine hooked up to a monitor, keyboard, and mouse, I found logging out allowed me to connect again using x11vnc.

Not sure how to fix this. Just thought this would be a good path to try.
 
Old 10-21-2005, 05:25 PM   #4
rholiday
LQ Newbie
 
Registered: Aug 2005
Location: Wisconsin
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 0
what error do you receive when you attempt to reconnect? Is it similar to 'all sessions in use'?
 
Old 10-21-2005, 08:53 PM   #5
solveit
Member
 
Registered: Jan 2005
Posts: 83

Rep: Reputation: 15
x11vnc : try connecting to display 1 instead of display 0
 
Old 10-22-2005, 02:50 PM   #6
Abnoba12
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 2, Fedora Core 6, UNBUNTU
Posts: 22

Original Poster
Rep: Reputation: 15
Well I changed the display number to 1 (-display :1) and I can't connect at all anymore. I get constant "Failed to connect to server" messages. Now I have to hook up a monitor, keyboard, and mouse to fix it.

Dose anyone have any type of script to log someone off of x-windows if they are Idle for to long? An auto-logout seems to be the best solution for what I want.

Quote:
Originally posted by rholiday
what error do you receive when you attempt to reconnect? Is it similar to 'all sessions in use'?
No all I get is a "Failed to connect to server" message.

Last edited by Abnoba12; 10-22-2005 at 02:53 PM.
 
Old 11-01-2005, 09:04 PM   #7
disorderly
Member
 
Registered: Sep 2003
Location: NJ
Distribution: RHEL5
Posts: 154

Rep: Reputation: 30
i am interested in this as well. i tried setting TMOUT=900 in .bashrc but it doesn't do anything when in xwindows, only when logged in using ssh (it boots you out). Abnoba12, did you ever figure this out?
 
Old 11-03-2005, 05:23 PM   #8
Abnoba12
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 2, Fedora Core 6, UNBUNTU
Posts: 22

Original Poster
Rep: Reputation: 15
No I haven't gotten the auto-logout to work. I just have to call and have someone reset my server when my x11vnc locks me out.
 
Old 11-08-2006, 11:01 AM   #9
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Rep: Reputation: 30
TMOUT works for virtual terminal within X...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
auto logout ziox Linux - General 1 11-21-2004 07:31 PM
auto-logout in Dropline Vindane Slackware 2 06-12-2004 06:48 PM
Auto Logout with Gnome 1.4?!? bassclarinet Debian 1 04-24-2004 10:22 PM
auto logout from KDE 3.2 jbasement Debian 9 02-28-2004 09:42 PM
Auto logout in Xsession nightoil Linux - Newbie 3 12-09-2003 06:40 AM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration