1

Is there a way to identify what "client/server" processes/applications are running on a Linux server to know what the server's role or roles are?

I'm sure it might vary for different flavors of Linux and might be easier on some than on others.

As an admin, recently I've inherited a few Linux servers during an acquisition. I can tell they are running SAMBA, but beyond that I don't know where to look to find what kinds of software they might be serving up to various clients. In the Windows world I can sort of tell by the services that are running, the software that is installed, open ports, etc. Is there a decent way to do something similar in the Linux world that would help people like me determine what all the server does from a client/server role perspective?

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208
TheCleaner
  • 32,352
  • 26
  • 126
  • 188

2 Answers2

2

Sure, there are a few good ways to get started.

One is to check out what ports are listening and open as you mentioned. For that I'd suggest one or more of the following:

lsof -i
netstat -lnp
nmap localhost

All give roughly the same information.

You could also consult the local firewall configuration for clues. For that look at:

iptables -L -n -v

You could also check who has been logging into the system and talk with those users. To do that, check:

last
who
w
finger

You might query the local package management system to determine which packages are installed. For example, on a RedHat style RPM system you could run:

rpm -qa --last

I'd suggest consulting any existing documentation. With any luck, the previous administrator has put something together.

dmourati
  • 24,720
  • 2
  • 40
  • 69
1

In the Windows world I can sort of tell by the services that are running,

In Linux, you also can do this by executing ps -ef | less.

the software that is installed,

Depends on your distro: Red Hat based can be check with rpm -qa | less or dpkg -l | less in Debian based.

The open ports can be list with:

# netstat --protocol=ip -nlp
quanta
  • 50,327
  • 19
  • 152
  • 213