/var/net/sys/admin/blog
| More

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

Share

Leave a comment

Name: (Required)

E-mail: (Required)

Website:

Comment:

 

About FLT

This site is dedicated to everyone who likes to learn and explore the beautiful world of Linux. If you have comments and suggestions, please feel free to email at freelinuxtutorials@gmail.com. I am happy to serve and share things esp. that is free and enjoyable as Linux.