Dear All,
Is there anyway to shutdown ftp service in evening...
i dont want to stop ftpd deamon for this purpose...
but want to close the 21 port used by the ftpd deamon!!
how i can do that.....
Absi
Try editing the /etc/services and commenting out the line for ftp/21. Then refresh inetd. This should keep the system from listening on port 21. Also, you could use /etc/inetd.conf to filter out the ftp traffic from all hosts during the time frame you are looking for.
If you are running ws-ftp it's pretty easy, just add the following line to your /etc/ftpaccess file:
shutdown /etc/shutmsg
You can create the /etc/shutmsg file with a custom message in it to suit you.
Else, as crowe said, either comment the port out in the /etc/services file, ot comment the process out in the /inetd.conf file. This will require a SIGHUP of the inetd process to make effective.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.