Operating System - HP-UX
1751894 Members
5177 Online
108783 Solutions
New Discussion юеВ

Re: How to kill ftpd and telnetd

 
Patrick Clow
Occasional Contributor

How to kill ftpd and telnetd

Hello, I would like to know how to kill the telnet and ftp daemons. I'm not sure if they're even running to begin with, how would I be able to tell?

Thank you
9 REPLIES 9
Jon Mattatall
Esteemed Contributor

Re: How to kill ftpd and telnetd

Easiest is to edit /etc/inetd.conf, comment out the ftp/telnet entries, and issue an

inetd -c

to re-read the .conf file.

To see if they're running, just try to telnet/ftp to another server.
A little knowledge is dangerous - none is absolutely terrifying!!!
Umapathy S
Honored Contributor

Re: How to kill ftpd and telnetd

Denis,
ps -ef|egrep "telnetd|ftpd". This will show the processes running.
Get the pids and kill

You can also pipe to make a single command.

HTH,
Umapathy

Arise Awake and Stop NOT till the goal is Reached!
Ashwani Kashyap
Honored Contributor

Re: How to kill ftpd and telnetd

use ps -ef and grep for the prcesses then kill them using their PID .

If you want to stop telnet/ftp completely comment them out in /etc/inetd.conf and then do a inetd -c .
hpuxrox
Respected Contributor

Re: How to kill ftpd and telnetd



ps -aux | egrep "ftpd|telentd" | awk '{print $2}' | xargs kill -9

Will kill all the processes, but you would want to turn them off in your inetd.conf file from further access.
Brian Lee_4
Regular Advisor

Re: How to kill ftpd and telnetd

Run "ps -ef|egrep "ftpd|telnetd"
and then "kill -9 process_id"
brian lee
A. Clay Stephenson
Acclaimed Contributor

Re: How to kill ftpd and telnetd

I have an even surer method of disabling them and I assure you that they will not be running. Find the Power Switch and set it to off -- or as an alternative disconnect the power cable(s). Telnetd and ftpd will be instantly disabled.

As a wimpy alternative, comment the lines in /etc/inetd.conf.
If it ain't broke, I can fix that.
Tom Danzig
Honored Contributor

Re: How to kill ftpd and telnetd

Nice Clay ;^)

I would cut the ftp and telnet wires in the LAN cable (J/K).
John Dvorchak
Honored Contributor

Re: How to kill ftpd and telnetd

In addition to A. Clay's method of securing the box. Shuting down the power and removing the power cords has the added benefit of system logevity and reducing operating and maintenance costs. It should never cease to take up floor space, generate heat, consume our natural resources or suffer a disk or tape failure again.

Let me know what the boss says when you submit your cost saving proposal using A. Clay's solid security method.
If it has wheels or a skirt, you can't afford it.
E. Wong
Frequent Advisor

Re: How to kill ftpd and telnetd

easiest way to tell, is to open telnet/ftp to the server from a separate machine.

inetd -c will restart the daemon that runs ftp and telnet in case it's needed.

E.
compute, therefore you are