目录
错误现象
>>> lsof | grep libwrap
...
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
lsof: no pwd entry for UID 33
sshd 5915 root mem REG 253,1 42520 1054255 /usr/lib64/libwrap.so.0.7.6
sshd 9512 root mem REG 253,1 42520 1054255 /usr/lib64/libwrap.so.0.7.6
错误原因
1.进程在用户被删除之前启动,并且从那以后一直在运行
2.进程在容器内被启动
解决方法
-w 是指忽略这些错误
>>> lsof -w | grep libwrap
auditd 464 root mem REG 253,1 42520 1054255 /usr/lib64/libwrap.so.0.7.6
auditd 464 465 root mem REG 253,1 42520 1054255 /usr/lib64/libwrap.so.0.7.6
sshd 5915 root mem REG 253,1 42520 1054255 /usr/lib64/libwrap.so.0.7.6
sshd 9512 root mem REG 253,1 42520 1054255 /usr/lib64/libwrap.so.0.7.6