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..... |
Your screensaver has a password lock.
|
i am in the runlevel 3
|
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 |
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. |
my mistake.... it works..... after it is idle..... thanks......
|
Yep, I know.
|
All times are GMT -5. The time now is 06:25 AM. |