Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-25-2006, 02:06 AM
|
#1
|
LQ Newbie
Registered: Sep 2006
Posts: 14
Rep:
|
Timeout session
Hi.How do i set timeout session in linux?
If user has no session activity(console,remote login ,etc)for the pre-defined period of time,system should force session timeout and user must re-logon.
|
|
|
09-25-2006, 01:41 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,331
|
In the .profiles of your users (or in the system-wide profile in /etc/), set a TMOUT=<number>, such as TMOUT=18000. That'll be the number of seconds. In this case, 5 hours of inactivity, and their sessions will drop.
I have a few problems users that this works for.
|
|
|
09-26-2006, 01:45 AM
|
#3
|
LQ Newbie
Registered: Sep 2006
Posts: 14
Original Poster
Rep:
|
thank u sir.but can u tell me the precise location of this file.i could not locate it in /etc/.
|
|
|
12-28-2006, 11:21 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,331
|
Quote:
Originally Posted by moinpasha
thank u sir.but can u tell me the precise location of this file.i could not locate it in /etc/.
|
It is not in /etc. The .profile (or .bashrc), file will be in the users own home directory. The default profile file is sometimes in /etc, sometimes in /etc/default, depending on your distribution. It will sometimes be called /etc/profile.
Last edited by TB0ne; 12-28-2006 at 11:22 AM.
|
|
|
All times are GMT -5. The time now is 01:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|