Or, could I get the username who is using a port?
You can use lsof command for that.
"lsof -i" and you will see all processid how 're using your sockets.
man page: http://www.netadmintools.com/html/lsof.man.html
Regards.
Thanks.
I've tried lsof but failed.
>lsof
lsof: cannot open /dev/kmem
lsof: kvm_open(namelist=default, corefile=default): Permission denied
It seems that I have no permission to lsof, since i am not root.
Thanks,
Tristan
On Dec 11, 3:17 pm, "michael.guirimand" <michael.guirim...@gmail.com>
wrote:
> > Or, could I get the username who is using a port?- Hide quoted text -
>
> - Show quoted text -
http://gd.tuwien.ac.at/utils/admin-tools/lsof/FAQ
17.15 Why does lsof say, "kvm_open(namelist=default, core=default):
Permission denied?"
Lsof needs permission to read from the /dev/kmem and /dev/mem
memory devices. Access to them is opened via a call to
the kvm_open() library function and it reports the indicated
message.
You must give lsof permission to read the memory devices.
The super user can almost always do that, but other lsof
users can do it if some group -- e.g., sys -- has permission
to read the memory devices, and the lsof binary is installed
with the group's ownership and with the setgid permission
bit enabled.
> lsof: cannot open /dev/kmem
you have to run it as root. And use the following command line for lsof
to identify a process that is listening:
lsof -P -i -n
Thomas
AFAIK lsof doesn't work correctly on Solaris 10.
I would prefer pcp on Solaris 10 which is available at
BR
--
Roland