delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/21/12:41:49

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: <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
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 <corinna-cygwin AT cygwin DOT com>
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: <CAO73BABq1D5fUhJYcdc1J5-gP_0NRu3Z5LBcR6NKPbk0bpuc2g AT mail DOT gmail DOT com> <C9D37D92E903B347A31B9CF82643BA28074B1ED6 AT 046-CH1MPN1-042 DOT 046d DOT mgd DOT msft DOT net>
MIME-Version: 1.0
In-Reply-To: <C9D37D92E903B347A31B9CF82643BA28074B1ED6@046-CH1MPN1-042.046d.mgd.msft.net>
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 <your account>' 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--

- Raw text -


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