From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80125 invoked by alias); 14 Mar 2019 02:20:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 80117 invoked by uid 89); 14 Mar 2019 02:20:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=offices, restaurant, Google, google X-HELO: mout.perfora.net Received: from mout.perfora.net (HELO mout.perfora.net) (74.208.4.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Mar 2019 02:20:10 +0000 Received: from [192.168.0.2] ([24.209.49.167]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LtpGl-1gwBWW0UlB-011C9z for ; Thu, 14 Mar 2019 03:20:09 +0100 Subject: Re: seteuid problem with sshd To: cygwin@cygwin.com References: <68371e6b-aee9-4e70-d079-098160f7bf61@halcomp.com> <1231848485.20190314025011@yandex.ru> From: Bruce Halco Message-ID: <032d1268-15e7-f10d-bdd7-45effb6b6a2b@halcomp.com> Date: Thu, 14 Mar 2019 02:20:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <1231848485.20190314025011@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2019-03/txt/msg00360.txt.bz2 I had found nothing referencing "No such file or directory", which sounds rather different from a permissions problem. Running sshd under the Local System account made no difference. passwd -R was no help. What I did discover was that cygwin/sshd apparently now requires the Windows account to be Enabled.  That was not the case previously. The target systems in my application are in restaurant offices, and only use a single Windows login. As the people who use ssh do not need local Windows accounts, I've always used the practice of Disabling those user accounts in Windows. The credentials were available to ssh, without the security issues of all those extra active accounts. Unless someone can suggest an alternative, I'll have to leave all those accounts Enabled. I can put some long, nasty passwords on them to keep the risk acceptable. Thanks. Bruce On 3/13/19 7:50 PM, Andrey Repin wrote: > Greetings, Bruce Halco! > >> I'm having to update a number of cygwin installations that are about a >> year old (cygwin 2.9.0-3). Usually I just run the installer and >> everything goes fine.  Occasionally I've run into a problem and had to >> remove the existing installation and reinstall. >> Apparently something has changed with ssh.  I now go though the same >> installation process I've been using for years, but sshd logins fail >> after connection with >>     "fatal: seteuid xxxxxx: No such file or directory" >> The ssh client gets as far as offering the key. The last two lines from >> the client side are >>     debug1: Offering public key: bhalco.ssh RSA >> SHA256:DDFVOXwQIpPODxXJPxp8Mxj1Y1mXsMqdmrvVYi5P51c agent >>     Connection closed by 192.168.0.12 port 32000 >> I've reproduced the problem on two computers. Both are running Windows >> 7, although the same update will need to be applied to Windows 10 systems. >> I haven't found any info using Google or the cygwin archives. > Please don't lie. The archive is full of recent reports. > >> I don't even have a good guess what file or directory is missing. >> I'd greatly appreciate any suggestions. > Try changing the owning user of sshd service to LocalSystem for a starter. > > -- 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