- 论坛徽章:
- 7
|
Hi liangkaizhen@ !!\r\n\r\nYou need autologout .\r\n\r\nAutologout and Tmout\r\nThe 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.\r\n\r\n\r\nWhat version of Solaris do you have?\r\n\r\nSteve Steel\r\n\r\n\r\n- \r\nIf you do NOT wish someone modify your environmental variables without your admission, you can append some codes in /etc/profile as below\r\n\r\nTMOUT=\r\nreadonly TMOUT\r\nexport TMOUT\r\n
复制代码 \r\nIs it enough for you? |
|