delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/26/19:51:49

X-Spam-Check-By: sourceware.org
Date: Thu, 26 Jul 2007 16:51:30 -0700 (PDT)
From: Chris Stromsoe <cbs AT cts DOT ucla DOT edu>
To: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
cc: cygwin AT cygwin DOT 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 DOT LNX DOT 4 DOT 64 DOT 0707261316500 DOT 24994 AT potato DOT cts DOT ucla DOT edu> <f8b4f7$a8p$1 AT sea DOT gmane DOT org> <Pine DOT LNX DOT 4 DOT 64 DOT 0707261517380 DOT 27722 AT potato DOT cts DOT ucla DOT edu> <f8bapo$s89$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
X-Probable-Spam: no
X-Spam-Report: none
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019