LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   logout out automatically after a couples of seconds (https://www.linuxquestions.org/questions/linux-security-4/logout-out-automatically-after-a-couples-of-seconds-321493/)

yenonn 05-08-2005 10:19 PM

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.....

Thoreau 05-08-2005 10:47 PM

Your screensaver has a password lock.

yenonn 05-08-2005 10:55 PM

i am in the runlevel 3

Thoreau 05-08-2005 11:11 PM

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

yenonn 05-09-2005 01:02 AM

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.

yenonn 05-09-2005 01:14 AM

my mistake.... it works..... after it is idle..... thanks......

Thoreau 05-09-2005 03:43 AM

Yep, I know.


All times are GMT -5. The time now is 06:25 AM.