I am using nestat command to check the port is free or not.
netstat -alp | grep <portnumber>
For a root user i am getting process name on which the port is used. I have logged in as test user and am using netstat command to check the port. But i am getting the output with warning that you are not a root user and process name is not displayed. But i want to notify the person who is using the port number. Is there any other command to display the process name/id for a non root user.