- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Idle process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 05:53 PM
03-19-2003 05:53 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 05:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 06:20 PM
03-19-2003 06:20 PM
Re: Idle process
There is a built-in shell variable called 'TMOUT' for ksh/posix. This value can be set in either ther /etc/profile file or the users own .profile.
If your using 'csh' you can use the variable called 'autologout'.
Consult the 'sh-posix' and 'csh' man pages for further details.
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 06:24 PM
03-19-2003 06:24 PM
Re: Idle process
export TMOUT=3600
3600 = 1 hour
1800 = 30 minutes
900 = 15 minutes
600 = 10 minutes
60 = 1 minute
A warning message will be displayed to every terminal that the connection will be logged out in 60 seconds hit any key to remain logged in.
You can also put it into /etc/profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 07:14 PM
03-19-2003 07:14 PM
Re: Idle process
TMOUT=600(time in sec)
export TMOUT
You can set this in the global file /etc/profile so that I reflects for all users.
For csh you can use
autologout=60(in min)
THe global file here is /etc/csh.login
THanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 08:24 PM
03-19-2003 08:24 PM
Re: Idle process
bash: TMOUT: command not found
how to solve ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 09:14 PM
03-25-2003 09:14 PM
Re: Idle process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 07:49 PM
04-09-2003 07:49 PM
Re: Idle process
If add it to /etc/profile ,then the system user (eg. root , bin ) will also logout when it is timeout , is there other suggest to prevent the system user will not logout? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 08:09 PM
04-09-2003 08:09 PM
Re: Idle process
well for oracle,in order for autologoff, you need to create a profile and assign the profile to all user.Example:
1) CREATE PROFILE test_profile LIMIT
IDLE_TIME 60;
Next assign test_profile to user.
what this do is , logoff the user if it session idle more than 60 minutes.
(I get this from Oracle 9 book don't know whether it support version less than this).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 09:07 PM
04-09-2003 09:07 PM
Re: Idle process
At the Oracle level, use profiles. The session will be killed (status killed in v$session) and all resources released. The session will still appear in v$session but will not consume any resources (locks and such).
I have the following profile for my users:
CREATE PROFILE USERPROFILE1 LIMIT
SESSIONS_PER_USER 4
CPU_PER_SESSION DEFAULT
CPU_PER_CALL DEFAULT
CONNECT_TIME DEFAULT
IDLE_TIME 600
LOGICAL_READS_PER_SESSION DEFAULT
LOGICAL_READS_PER_CALL DEFAULT
COMPOSITE_LIMIT DEFAULT
PRIVATE_SGA DEFAULT
FAILED_LOGIN_ATTEMPTS DEFAULT
PASSWORD_LIFE_TIME 30
PASSWORD_REUSE_TIME 90
PASSWORD_REUSE_MAX DEFAULT
PASSWORD_LOCK_TIME DEFAULT
PASSWORD_GRACE_TIME DEFAULT
PASSWORD_VERIFY_FUNCTION DEFAULT;
Our NEW users are created with the following command:
create user yd01
identified by y23234b2
default tablespace tbs_lmt_users
temporary tablespace temp
profile userprofile1
password expire;
or if you want to modify a user profile, you can use:
alter user yd01 profile userprofile1;
NB. Unfortunately, at the OS level, your unix session will still remain active. So don't forget to modify your /etc/profile to include: export TMOUT=600
hth
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 09:12 PM
04-09-2003 09:12 PM
Re: Idle process
for bash & korn shells, include the following in /etc/profile
readonly TMOUT=10800
export TMOUT
I set it as readonly to avoid users trying to change it's value, including root.
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 09:19 PM
04-09-2003 09:19 PM
Re: Idle process
The TMOUT can be a good thing or a bad thing depending on the requirements.
1) it forces people to log out if idle.
2) logs out unattended terminals/sessions (people gone home)
The best alternative is to have a skeleton .profile (/etc/skel.profile) that contains the TMOUT value. Each new user that gets created, will have the variable included. You would of course need to add the string to existing users .profile file.
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 05:33 PM
04-14-2003 05:33 PM
Re: Idle process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2003 08:13 PM
04-14-2003 08:13 PM
Re: Idle process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 05:31 PM
04-15-2003 05:31 PM
Re: Idle process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 05:36 PM
04-15-2003 05:36 PM
Re: Idle process
I think for us to help more, please advise:
The actual process of connection to your database.
i.e. telnet to server
Each user runs a command from a menu to access your database?
What database is it? oracle, informix?
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 06:13 PM
04-15-2003 06:13 PM
Re: Idle process
We have Oracle database, for the security reason , when the user use telnet to login , the system will force the login to access to the oracle database directly ( so i said they will not access at the unix shell) , can suggest how to solve it? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 06:35 PM
04-15-2003 06:35 PM
Re: Idle process
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 08:18 PM
04-15-2003 08:18 PM
Re: Idle process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 08:34 PM
04-15-2003 08:34 PM
Re: Idle process
the following, as in the example below, will do it:
K250: home/yd>who -u|grep yd
yd ttyqf Apr 16 07:34 . 15781 c332
K250: home/yd>kill -15 15781
hth
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 08:39 PM
04-15-2003 08:39 PM
Re: Idle process
you have a parameter
sqlnet.expire_time.
By placing this in the sqlnet.ora file like
sqlnet.expire_time=10
close the 10 min idle sessions.
revert on the same