Unattended terminals (timed out waiting for input)AIX TMOUT 和TIMEOUT的含义 作用 以及区别

原文:http://pic.dhe.ibm.com/infocenter/aix/v7r1/index.jsp?topic=%2Fcom.ibm.aix.baseadmn%2Fdoc%2Fbaseadmndita%2Fsec_unattended_terms.htm

Unattended terminals

All systems are vulnerable if terminals are left logged in and unattended. The most serious problem occurs when a system manager leaves a terminal unattended that has been enabled with root authority. In general, users should log out anytime they leave their terminals.

You can force a terminal to log out after a period of inactivity by setting the TMOUT and TIMEOUT parameters in the /etc/profile file. The TMOUT parameter works in the ksh (Korn) shell, and the TIMEOUT parameter works in the bsh (Bourne) shell.

The following example, taken from a .profile file, forces the terminal to log out after an hour of inactivity:

TO=3600
echo "Setting Autologout to $TO"
TIMEOUT=$TO
TMOUT=$TO
export TIMEOUT TMOUT

Note: You can override the TMOUT and TIMEOUT values in the /etc/profile file by specifying different values in the .profile file in your home directory.


等待输入的客户端


如果客户端在登录的状态下,不进行任何操作,此时系统会是脆弱的,不安全的。

在这种状态下,如果说登录用户拥有root权限,这是个非常严重的问题,或者说是个潜在危险。

一般情况下,如果说当前用户不在进行任何操作,处于离开状态,都应该logout系统,就是退出当前系统。


你可以通过在/etc/profile文件里,设定TMOUT和TIMEOUT的值,来强制登录用户(当登录用户在没有输入的状态下)自动退出系统。

TMOUT参数在 Korn Shell(ksh)环境里有效, 而TIMEOUT参数则在Bourne Shell(bsh)里有效。

例子:

TO=3600
echo "Setting Autologout to $TO"
TIMEOUT=$TO
TMOUT=$TO
export TIMEOUT TMOUT

上面的例子,设定了当用户如果不活动时间超过了3600(一个小时)的话,系统会强制用户logout。

注意:你可以重写TMOUT和TIMEOUT的值(单位是秒),在用户的根目录$HOME/.profile文件里。




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值