1836633 Members
1575 Online
110102 Solutions
New Discussion

Re: FTP

 
Jade Bulante
Frequent Advisor

FTP

Does anybody know how to stop and start the ftp daemon/services manually?
4 REPLIES 4
Sachin Patel
Honored Contributor

Re: FTP

Hi
Put following two line in comment on
/etc/services and /etc/inetd.conf files respectively.
ftp 21/tcp

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

then
#/usr/sbin/inetd -c (this will reread your configuration and stop the ftp. reverse the step and reread the configuration that will start the ftpd).

Sachin
Is photography a hobby or another way to spend $
James R. Ferguson
Acclaimed Contributor

Re: FTP

Hi Jade:

'inetd' is the controller of Internet services (ftp, rcp, remsh, rlogin, and telnet). It must be running before hosts can connect using these services.

To stop the 'inetd' daemon you would do this:

# /usr/sbin/inetd -k

Of course, that would prohibit the other services from running too.

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: FTP

Hi Jade,

ftpd expects to be started by inetd.
To stop it you would need to edit /etc/inetd.conf and comment the ftp line out with a '#' as the first character and then do an init q and finally kill all the ftpd processes.

To start you would need to remove the '#' and issue an init q.

You could script all of this to then make a sart/stop ftpd command.

Regards, Clay

If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: FTP

Hi again Jade,

I'm an idiot, I meant 'inetd -c' rather than 'init q' to force a reread on inetd.conf
If it ain't broke, I can fix that.