1753587 Members
6761 Online
108796 Solutions
New Discussion юеВ

ftp

 
himacs
Super Advisor

ftp

Hi admins,

I have commented the ftp line in /etc/inetd.conf and run inetd -C.But still ftp works..i want ftp to be disabled from the server


regards,
Pavan



10 REPLIES 10
Patrick Wallek
Honored Contributor

Re: ftp

>>But still ftp works

FTP works how? Are you trying to FTP **TO** this server? Or are you trying to FTP **FROM** this server?

Depending on what **EXACTLY** you are doing will determine additional responses.
Patrick Wallek
Honored Contributor

Re: ftp

I should add that commenting out the FTP line in /etc/inetd.conf and running 'inetd -c' will only effect **incoming** FTP connections.

It will **NOT** effect outgoing FTP from this server.
Taifur
Respected Contributor

Re: ftp

Hi himacs

You can stop the ftp service by
#/sbin/init.d/ftpd stop

Rgds//
Taifur
Johnson Punniyalingam
Honored Contributor

Re: ftp

>>and run inetd -C.But still ftp works<<

I suspect your command wrong "C" should be "c"

# inetd -c --> to Initialize,

please verify as below

# ftp localhost

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
vijay alur
Advisor

Re: ftp

Hi

stop the ftp service thru

#/sbin/init.d/ftpd stop

and comment out the ftp service from /etc/services by blocking the default port.

i think so it should work.

regds
Steven Schweda
Honored Contributor

Re: ftp

> and comment out the ftp service from
> /etc/services [...]

This is seldom a good idea, and is unlikely
to have the desired effect.
Patrick Wallek
Honored Contributor

Re: ftp

>>stop the ftp service thru
>>#/sbin/init.d/ftpd stop

Impossible!!!!! There is no such thing as 'ftpd' in /sbin/init.d. FTP is controlled via inetd.

The only exception **might** be if you are running an ftpd daemon other than the standard HP-UX ftp daemon.

Steven is quite right about /etc/services. Commenting something out there really doesn't do much good as /etc/services is basically a documentation file.
Md. Farhan A Azam
Trusted Contributor

Re: ftp

Hi you can comment in..

/etc/services

hope it will work.
Steven Schweda
Honored Contributor

Re: ftp

Outside of this forum, I have never seen so
many people so eager to damage
"/etc/services".

Does anyone know why this nonsense is so
popular?