webcp.hostinghacks.net/slackware | inetd
Slackware by default runs internet daemons such as POP or FTP through inetd. However, it is not utilized for the hostinghacks project. Here we remove it from active duty but keep it a available for troubleshooting purposes.
mv /etc/inetd.conf /etc/inetd.conf.old cat > /etc/inetd.conf << "EOF" # pop3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/popa3d # auth stream tcp wait root /usr/sbin/in.identd in.identd # # ftp stream tcp nowait root /usr/sbin/tcpd proftpd # echo stream tcp nowait root internal # echo dgram udp wait root internal # discard stream tcp nowait root internal # discard dgram udp wait root internal # daytime stream tcp nowait root internal # daytime dgram udp wait root internal # chargen stream tcp nowait root internal # chargen dgram udp wait root internal # time stream tcp nowait root internal # time dgram udp wait root internal # telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd # comsat dgram udp wait root /usr/sbin/tcpd in.comsat # imap2 stream tcp nowait root /usr/sbin/tcpd imapd # finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd -u # systat stream tcp nowait nobody /usr/sbin/tcpd /bin/ps -auwwx # netstat stream tcp nowait root /usr/sbin/tcpd /bin/netstat -a EOF chmod 644 /etc/inetd.conf /etc/rc.d/rc.inetd stop chmod 444 /etc/rc.d/rc.inetd # nmap localhost