[ale] Fuser questions

Brian Pitts brian at polibyte.com
Tue Jan 4 10:51:18 EST 2011


I have two questions about the fuser command.

Can anyone explain why fuser identifies the process as running as root
but ps says it is running as pbr?

$ sudo /sbin/fuser -vn tcp 6013
here: 6013

                     USER        PID ACCESS COMMAND
6013/tcp             root      24376 f....  sshd

$ ps -p 24376 -o '%U'
USER
pbr

Can anyone explain what fuser means by "here" and why it does not list
the two processes that lsof does?

$ /sbin/fuser -vn tcp 51422
here: 51422

$ sudo /usr/sbin/lsof -i TCP:51422
COMMAND   PID USER   FD   TYPE    DEVICE SIZE NODE NAME
sshd    24372 root    3u  IPv4 103565535       TCP foo:ssh->bar:51422
(ESTABLISHED)
sshd    24376  pbr    3u  IPv4 103565535       TCP foo:ssh->bar:51422
(ESTABLISHED)

-- 
All the best,
Brian Pitts


More information about the Ale mailing list