On 05/05/2017 01:16 PM, Tim wrote:
François Patte wrote:
You have a list of ports and associated devices/protocols in /etc/serveces
Doug:
Tried the command from root in pclos and got permission denied. I
don't know what if any ports are in use for anything, but I figured I
might find out.
Yes, it dawned on me that it is a file, and I did open the file--a very
big one!
--doug
I'm surprised that root couldn't read that. Or do you mean you tried to
execute that? Rather than trying to read the contents of the
file /etc/services
I've always found netstat to be handy at seeing what services are trying
to do on my computer. For example:
netstat -antu
If you drop the "n" option, you'll see the names of things, rather than
the numerical IP addresses and port numbers. For example:
netstat -atu
Stick a "p" option onto the list, and you'll see the actual program
associated with the activity.
Either way, you'll see a bunch of lines with some having "LISTEN" as
their status. Those are services listening to those ports, whether or
not anything is successfully communicating with them at the time.
But before you blindly allow anything that's listening, do some research
into the port numbers that you find listening. Just open the ones
actually related to what you're trying to resolve.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx