In the output of
netstat -a | grep LISTEN
there are usually a lot of processes. How (where) can I find out information about them, what is their purpose in the system and if I can kill them? Which of them can be insecure and which are safe?
|
In the output of
there are usually a lot of processes. How (where) can I find out information about them, what is their purpose in the system and if I can kill them? Which of them can be insecure and which are safe? |
||||
|
|
First you have to find out which program is bound to each port. Unfortunately, there is no single standard way to do that which will work on all *ix type systems, and your question doesn't specify one. Some versions of If your
Once you have the program name in hand,
You will figure that out once you know what each server is doing. A single answer here is not the right place for a list of all the things you can kill. There are simply too many possibilities. If you're unsure about a given program after reading its documentation, you can post another question here asking about it. Some things are fairly obvious (e.g.
It's rare for a program to be running by default on a new *ix system which is absolutely insecure. (In the bad old days, that wasn't the case. You'd often see systems running Any non-default background TCP listener should be something you or another trusted admin installed, so presumably you've already come to grips with any safety concerns. There are gray areas here. You might have a server running which is not absolutely insecure, but which is conditionally insecure. Maybe it's not locked down properly, maybe it has unpatched bugs, etc. That's the stuff of entire computer security careers, though, not something suitable for answering here in a single question. Lacking that experience, Google is probably your best first resort. If you don't find what you need there, you can post a new question here about a particular server. |
|||||||||||||||
|
|
The command
lists all the processes listening on various types of sockets. These sockets can be of any address families like ipv4 (udp or tcp), ipv6 (udp6 or tcp6), unix. The entries like:
means The entries like:
means tcp6 protocol of ipv6 is used. The entries like:
are created by ORBit CORBA. This Common Object Request Broker Architecture (CORBA) is a standard defined by the Object Management Group (OMG) that enables software components written in multiple computer languages and running on multiple computers to work together i.e., it supports multiple platforms. 1. How (where) can I find out information about them ? Suppose I want to find information about
This command gave the output:
Here:
2. what is their purpose in the system ? Some processes like
are for listening of an FTP server. Others like:
are meant for interprocess communication between different processes used by CORBA. 3. Can I kill them? That depends upon the criticality of the process. Suppose if you kill any server listening then it will cease all communication related to that server. 4. Which of them can be insecure and which are safe ? All are secure processes. |
||||
|
|
|
|
|||
|
|