X-Spam-Check-By: sourceware.org Date: Thu, 26 Jul 2007 16:51:30 -0700 (PDT) From: Chris Stromsoe To: =?ISO-8859-1?Q?Ren=E9_Berber?= cc: cygwin AT cygwin DOT com Subject: Re: proftpd as a service under 2003 In-Reply-To: Message-ID: References: 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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--