As a normal UNIX user, I can use netstat to find out the network status of a SUN UNIX box. I can find out how many TCP/IP connections are established and what's IP address/port ( both source and destination). However, what I want is to connect these information with the process ID. I want to know which process owns this network connection. ( With this, I can find out who is now connected to certain equipment).
How can I do that. Note that all these should be done in normal user account.
( I'm good at Perl, shell programing and C/C++ in UNIX).
It's not easy, I know :).