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 To: cygwin AT cygwin DOT com Subject: Cygwin Proftpd on Windows2008 seteuid setegid invalid argument Message-ID: <20110930192029.5efc1d22@thor> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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