PRO+ Premium Content/Information Security magazine

Thank you for joining!
Access your Pro+ Content below.
August 2003

Working with Linux: Disable service to improve network security

How do I stop services in Linux? I tried putting a "#" before the services to be stopped in my inetd.conf file, but the services still exist when I scan the server. inetd (and later xinetd) was created to be a network daemon "superserver" -- you configure it to listen on a number of ports and to launch a particular program whenever it receives a connection on a particular port. It hands off the connection to this program and continues listening for more connections. Each port gets its own line in /etc/inetd.conf, like this: pop-3 stream tcp nowait root /usr/sbin/tcpd ipop3d The first column lists the port, either numerically or as a reference into the /etc/services table. In this case, the /etc/services file says that the pop-3 port is port 110. If you want to tell inetd to stop listening on a given port, you can just comment out (or even delete) that port's line, and then tell inetd to reread the file. Here's the process, outlined step by step: Comment out the network service's line in /etc/inetd.conf by prepending a hash mark....

Access this PRO+ Content for Free!

Features in this issue

Columns in this issue