X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=vGi5+0v5x0eBTH+hNPdEsa2Xdolzpx6r2YylZU1NlfeWmWQa4WQxh O9Kb2p6oHLw4WTEUbwSmI1vH6atKMNKnW2pxjE06X4Lj4sdRSdZl4iMDIEHqNCuv D/VNJFp/z3vDlrmmjGPHx5398GtVHl5ElkoMlYg1D8oLibK1hLvl3s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=ujGrkOl69FLkEHyYU8t7x8DK474=; b=ad7UfTAwsE91wP5tknQujOihgYu5 I/dfZvyqrjs+AIM8Ck1fldXaWrKGfT6itMu30+eYOQnv7cGDjQcxvxBSJCFhLZXi bvoPpfAmIk6UqrAP/kIIsD9FchRhi7fTL4QisIsBUtTfSF2gVZxutFm6vUE96D+e 3LX3hEUDWgwJ4Pg= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_50 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Sat, 21 Mar 2015 17:41:25 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: mintty startup message: /sbin/nologin: No such file or directory Message-ID: <20150321164125.GB15431@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CdrF4e02JqNVZeln" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --CdrF4e02JqNVZeln Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi David, On Mar 21 13:50, Habermann, David (D) wrote: > I observed the same error. In my case, it was apparently caused by a > too-rapid startup at boot of cygserver, which apparently could not > connect to LDAP at that early stage. LDAP can't have to do with that, in theory. The whole mechanism should give a sane result even if LDAP connections fail, because the core part is the call to LookupAccountSid and that's the only call which has to succeed. I just had a quick glance into the source code and I'm seriously puzzled how it could create /sbin/nologin. This should only happen if your account is not a SidTypeUser account. But that's impossible for a user account. Unless, and that's the puzzeling thing here, unless LookupAccountSid failed for your account and returned SidTypeUnknown. This should never happen for a user logged in to the system since in this case all the information returned by LookupAccountSid should be cached. I'd like to investigate more, but it would be nice if we could try to understand what exactly happens. How exactly looks the output of `getent passwd ' and `id' while you're getting the /sbin/nologin shell entry? There may be also some interesting info in an strace, or we could run an (yet to be created) augmented Cygwin DLL in your scenario As for /sbin/nologin itself, I'm not sure why I did that without providing an /sbin/nologin executable. This is very clearly an oversight on my part. In theory it should be part of the util-linux package, but it isn't for some reason. Yaakov, any idea why? Is it a problem to add it? Alternatively, is anybody interest to provide just /sbin/nologin as an extra package, perhaps? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --CdrF4e02JqNVZeln Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVDZ81AAoJEPU2Bp2uRE+gLtQP/08dkw6TnDShJeMLQh5hTpKn Ocsl+KtALWQWd3FxQUU/Nq65brB1LzpiSNfIGj8aynSeBgvg8ON3x5lBtTgchx7S lC0dGhphKys2aDJRnUYTCa9SEIifZDdmncGJ+XKMgSSMKt4qw+K0rGMJb9urnGab IREQgOm2MrplS54FZ+OTt6iJNAW9/Rdl133T0mGXj6IkbhttQCxcdtVqu0EnyDrZ H/dgbZmWHgs9k4u2ZTZTY9XXCXAj8Dwp5osiAMZMAwvE0DUA8MBF+nTW+r1M+v/P HCjzFM4CRQmqC1GurRhkfyC78bDZ5Fd4m+wZF+xlklTGIrE667O6ZtanmEX58cX9 S4BvdTsuFakYtPCZN5r7VxwCWLAMwxOKF+ObQA4erV/FB/kQdQtn07nbBHiW8XYU aXIKGq/ctNZf+01/qgU2y6ZnEZ+6RptS/oDuQcpgvpWIuqGPzErPEUC6r58JNXhQ a+1kN//tGyYky83H3IEOuHxGHpajwyOkpCi5Ep1v51QnUJvmvQpeuRAij67yP0lw d+7HRB0XOa3TiXAjCy3zCEAell5Ex9BBaRCQouhbcHxJkjaC04eleCLJwhXLVw8V XLp1q4laO9CJEyH0L+vguvPfBItPXfmZLimWfqbHzQ3eduX19FyDRrxgw8CAPkMB GH38cJc19nt2pgYTtAXn =xNmB -----END PGP SIGNATURE----- --CdrF4e02JqNVZeln--