Site icon Free Linux Tutorials

Quick tip: Disable FTP & Telnet access on HP-UX

1. FTP & Telnet  daemons are controlled by the inetd, so to simply stop the service, just comment the lines under /etc/inetd.conf

ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd

2. Reconfigure the internet daemon to reread the /etc/inetd.conf

#inetd -c

That’s it and you can do test:

Before:

# ftp 172.16.0.100
Connected to 172.16.0.100.
220 freehpux FTP server (Revision 6.0 Version wuftpd-2.6.1 Fri Apr 1 07:44:09 GMT 2011) ready.
Name (172.16.0.100:root):

[darwin@freelinux ]$ telnet 172.16.0.100
Trying 172.16.0.100…
Connected to 172.16.0.100 (172.16.0.100).
Escape character is ‘^]’.
HP-UX freehpux B.11.31 U ia64 (ta)
login:

After:

# ftp 172.16.0.100
ftp: connect: Connection refused
ftp> bye

[darwin@freelinux ]$ telnet 172.16.0.100
Trying 172.16.0.100…
telnet: Unable to connect to remote host: Connection refused

Exit mobile version