X-Spam-Check-By: sourceware.org
Date: Thu, 26 Jul 2007 16:51:30 -0700 (PDT)
From: Chris Stromsoe <cbs@cts.ucla.edu>
To: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
cc: cygwin@cygwin.com
Subject: Re: proftpd as a service under 2003
In-Reply-To: <f8bapo$s89$1@sea.gmane.org>
Message-ID: <Pine.LNX.4.64.0707261635530.27722@potato.cts.ucla.edu>
References: <Pine.LNX.4.64.0707261316500.24994@potato.cts.ucla.edu>   <f8b4f7$a8p$1@sea.gmane.org> <Pine.LNX.4.64.0707261517380.27722@potato.cts.ucla.edu>  <f8bapo$s89$1@sea.gmane.org>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1635799168-37876600-1185493890=:27722"
X-Probable-Spam: no
X-Spam-Report: none
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--1635799168-37876600-1185493890=:27722
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Thu, 26 Jul 2007, Ren=E9 Berber wrote:
> Chris Stromsoe wrote:
>>
>>> How did you setup proftpd as service?
>>
>> cygrunsrv --install proftpd --path /usr/sbin/proftpd.exe --args=20
>> "nodaemon" --type auto --disp "Cygwin proftpd" --desc "ProFTP FTP=20
>> daemon" --user sshd_server -e CYGWIN=3D"ntsec"
>
> Is that a typo? the option nodaemon is written as --nodaemon or -n.

it's a typo.  It's "--nodaemon".

>> "cygrunsrv --start proftpd" after that fails.
>>
> ...
>> If I run without specifying --user, proftpd runs as SYSTEM.  It does not
>> change users at all.  If I log in with other users and upload files, the
>> files all end up owned by the SYSTEM user.
>
> I know all about that, but you can see your result, the error message=20
> you posted clearly states that the user could not change to SYSTEM...=20
> again: did you configyro proftpd correctly?

It's the default configuration.

Which, it turns out is the problem.  Thanks for the hint.  Apparently, the=
=20
created user (sshd_server) can't switch to SYSTEM at startup, but has no=20
problems switching to other users after proftpd is already running.  So=20
/etc/proftpd.conf needs to specify the same user that you give to=20
cygrunsrv, or it won't start the service.


-Chris

--1635799168-37876600-1185493890=:27722
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--1635799168-37876600-1185493890=:27722--
