Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3C45D4A8.7020300@Salira.com>
Date: Wed, 16 Jan 2002 11:29:44 -0800
From: Andrew DeFaria <ADeFaria@Salira.com>
Organization: Salira Optical Networks
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: en-us
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: How to stop ftp in Cygwin
References: <1011194699.21501.ezmlm@cygwin.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 16 Jan 2002 19:29:35.0764 (UTC) FILETIME=[219A8D40:01C19EC4]

Tiffany Chan <ikbea88@yahoo.co.uk> wrote:

> Hi,
>
> I want to use Microsoft FTP Service, so I would like to stop the "Ftp" 
> in Cygwin (inetd), of course, i use
> cygwin for telnet.
>
> How to stop "ftp" in cygwin ?

The basic idea is to comment out the ftp entry in /etc/inetd.conf then 
cause inetd to reread its configuration or:

$ sed 's/^ftp/\#ftp/' /etc/inetd.conf > /etc/inetd.new # Comment out ftp 
entry in /etc/inetd.conf
$ mv /etc/inetd.new /etc/inetd.conf # Move new file into place
$ net stop inetd # Stop inetd
$ net start inetd # Restart inetd

Note that you could also send a sighup to the inetd to cause it to 
reread it's configuration (of course there are two inetd processes 
running and I'm not sure if you need to send the sighup to both or not).




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

