delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/30/13:21:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Date: Fri, 30 Sep 2011 19:20:29 +0200
From: largo <flash DOT 54n AT free DOT fr>
To: cygwin AT cygwin DOT com
Subject: Cygwin Proftpd on Windows2008 seteuid setegid invalid argument
Message-ID: <20110930192029.5efc1d22@thor>
Mime-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hi,

I just installed proftpd packages from cygwin setup on a windows 2008
server.

And here come my problem, my log are filled with error, as soon, a user
connect to proftpd.

Extract of log :
hostname - ProFTPD 1.2.10 standalone mode SHUTDOWN
hostname - ProFTPD 1.2.10 (stable) (built Sat Sep 18 20:19:32 EDT 2004)
standalone mode STARTUP 
hostname - error setting write fd TCP_NOPUSH:
Protocol not available 
hostname - error setting read fd TCP_NOPUSH:
Protocol not available 
hostname (127.0.0.1[127.0.0.1]) - FTP session
opened. 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_USER: unable to
setegid(session.login_gid): Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_USER: unable to
seteuid(session.login_uid): Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - USER ftp: Login successful. 
hostname (127.0.0.1[127.0.0.1]) - error: /var/log is a world writeable
directory hostname (127.0.0.1[127.0.0.1]) - error: unable to set
groups: Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_USER:
unable to setegid(session.login_gid): Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_USER: unable to
seteuid(session.login_uid): Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_SETUP: unable to setgid():
Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_SETUP: unable
to seteuid(): Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_RELINQUISH: unable to
setegid(session.gid): Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_RELINQUISH: unable to
seteuid(session.uid): Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_RELINQUISH: unable to
setegid(session.gid): Invalid argument 
hostname (127.0.0.1[127.0.0.1]) - PRIVS_RELINQUISH: unable to
seteuid(session.uid): Invalid argument 
hostname - error setting write fd TCP_NOPUSH: Protocol not available
hostname - error setting read fd TCP_NOPUSH: Protocol not available

This one "hostname - error setting write fd TCP_NOPUSH: Protocol not
available hostname - error setting read fd TCP_NOPUSH: Protocol not
available" are attended according to documentation. But for the other
(PRIVS_*), I have no clue.

I see that proftpd need a priviled user like openssh
(/usr/share/doc/cygwin/openssh.README), so I replace the local account
by cyg_server created by sshd-host-config, and edit proftpd.conf to
replace User SYSTEM by User cyg_server, Group Administrators untouched.
I chown the ftp root directory from SYSTEM to cyg_server.

But it didn't change anything.

The user's ftp was created in a passwd.ftp, proftpd.conf was set to use
it with this argument :
AuthOrder mod_auth_file.c
AUthUserFile /etc/passwd.ftp

The rest of the config is the one coming from the install minus the
anonymous section after try it (the error was shown already with this
section anyway) and with DefaultRoot ~.


Please, What is wrong in my setup ?

Thanks for your help
Flash Koti

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

- Raw text -


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