1
How can I get a list of ports that are being listened on and the name of the user who bound them (on linux)?
Ultimately I want to have several users on a system which are assigned 2 ports to use and may not bind on any other ports.
I couldn't figure out how to do that, but it seems that if I had the right combination of bash-fu, I should be able to get the aforementioned list and periodically check to see which users have bound to which ports and if any users should be locked out for using ports which they were not assigned.