cancel
Showing results for 
Search instead for 
Did you mean: 

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
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?
Patrick Wallek
Honored Contributor

Re: ftp

>>Does anyone know why this nonsense is so
>>popular?

I think there is a big misunderstanding of the function of /etc/services.

While it is possible that commenting entries in /etc/services will **break** a service it is definitely not necessarily the correct way to **disable** a service.