who的输出问题

居然发现who  一看    N个root在系统中 汗啊~!
[root@localhost log]# last | tac 的输出
root     pts/3                         Sun Jan 15 18:17 - 18:17  (00:00)
root     pts/3        :2.0             Sun Jan 15 18:17 - 23:12 (2+04:54)
root     pts/6                         Sun Jan 15 18:28 - 18:28  (00:00)
root     pts/6        :4.0             Sun Jan 15 18:28 - 23:12 (2+04:44)
[root@localhost log]# who
root     pts/2        Jan 15 18:06 (:1.0)
root     pts/4        Jan 15 18:09
root     pts/5        Jan 15 18:10 (:1.0)
root     pts/3        Jan 15 18:17 (:2.0)
root     pts/6        Jan 15 18:28 (:4.0)
找来找去 没发现什么异常
google一下  还好
who command shows more users than actual exists?
Often this means that your utmp file is corrupted.  When files like
that go bad, different commands interpret them differently.
Most likely, because there's something in some of your login/logout
procedures that corrupts the file sometimes.
Can I simply delete utmp?  will it recreate itself?
Just truncate it to size zero .
> /var/run/utmp
who
没有输出了
重新登陆后正常
 
> root       169  0.0  0.5  1148  644 ?        S    08:23   0:00 /sbin/rpc.statd

Do you use NFS?  If not, get rid of this.

> root       193  0.0  0.4  1300  552 ?        S    08:23   0:00 /usr/sbin/inetd

I assume you use this for telnet and FTP.  Make sure other services are
commented out in /etc/inetd.conf. 

> root       201  0.0  0.4  1352  560 ?        S    08:23   0:00 /usr/sbin/lpd

Do you print from this machine?  If not, get rid of this.

> nobody     256  0.0  2.0  3616 2596 ?        S    08:23   0:00 /usr/bin/X11/xfs-xtt -user nobody

Don't really need font serving on a colo box.

> root       260  0.0  1.2  1556 1548 ?        SL   08:23   0:00 /usr/sbin/ntpd

Do you use this?  I think it's for time synchronization serving, though
it might be a client.  Maybe try rdate if you just need a client. 

> daemon     265  0.0  0.4  1140  544 ?        S    08:23   0:00 /usr/sbin/atd

If you don't use this, get rid of it.  Malicious users can schedule
tasks for when they're not logged in. 

Just a couple thoughts on ways to tighten things.

<script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=3&lang=zh"></script> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/bshareC0.js"></script>
阅读(667) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值