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:


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

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


# ftp
ftp: connect: Connection refused
ftp> bye

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

About the author

Free Linux

View all posts

Leave a Reply