LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-08-2005, 10:19 PM   #1
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
logout out automatically after a couples of seconds


hi,

i want my fedora box to be more secure. i discovered, whenever i left the machine without logging out, the session will stay forever. can i configure my machine, in such a way that, it will automatically timeout the session and kick me out to the login screen. thanks.....
 
Old 05-08-2005, 10:47 PM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Your screensaver has a password lock.
 
Old 05-08-2005, 10:55 PM   #3
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
i am in the runlevel 3
 
Old 05-08-2005, 11:11 PM   #4
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
As I told my former girlfriend when I found her in bed with Santa Claus.. there are some things I could have known sooner.

If you export the Variable "TMOUT" with a value in seconds, then the
session will automaticly closed after that inactive time.

You can put it in your .profile or .bashrc per user, or..

You can set it as root and set it to readonly, otherwise the user may reset it to 0 (no timeout). /etc/profile is a good place.

TMOUT=10
readonly TMOUT
 
Old 05-09-2005, 01:02 AM   #5
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
The thing works, BUT, if i am logging on, and start prompting commands, eventhough, it passed 10 seconds, it will kick me out automatically...which is not good.

i want it to be kicked out automatically after it is idle.
 
Old 05-09-2005, 01:14 AM   #6
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
my mistake.... it works..... after it is idle..... thanks......
 
Old 05-09-2005, 03:43 AM   #7
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Yep, I know.
 
  


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
convert total no of seconds in the format hour minutes and seconds suchi_s Programming 15 03-15-2011 11:34 AM
get logged out every 5 seconds Avatar LQ Suggestions & Feedback 4 12-20-2005 10:13 AM
How do I automatically logout after a period of inactivity? AshleyK Linux - Security 4 12-31-2004 10:47 PM
Where to run scripts automatically on login/logout hilltop*Tech Linux - General 2 02-06-2004 10:59 AM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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
Open Source Consulting | Domain Registration