- 论坛徽章:
- 7
|
Hi liangkaizhen@ !!
You need autologout .
Autologout and Tmout
The C shell, Korn shell, and POSIX shell have an autologout feature. For C shell users, if the "autologout" environment variable is set to a number other than 0, the shell will be logged out after the specified number of minutes have passed. For Korn shell and POSIX shell users, the TMOUT environment variable specifies the number of minutes before the shell logged out. A value of 0 indicates the shell should not be logged out.
What version of Solaris do you have?
Steve Steel
- If you do NOT wish someone modify your environmental variables without your admission, you can append some codes in /etc/profile as below
- TMOUT=
- readonly TMOUT
- export TMOUT
复制代码
Is it enough for you? |
|