delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Wed, 22 Jul 2009 12:42:17 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [1.7] login ignores /etc/passwd in first invokation |
Message-ID: | <20090722104217.GG27613@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <h42p23$gcq$1 AT ger DOT gmane DOT org> <20090721083720 DOT GX27613 AT calimero DOT vinschen DOT de> <h454ae$4t4$1 AT ger DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <h454ae$4t4$1@ger.gmane.org> |
User-Agent: | Mutt/1.5.19 (2009-02-20) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Jul 21 21:18, Wolfgang Goetz wrote: > Corinna Vinschen wrote: > > On Jul 20 23:54, Wolfgang Goetz wrote: > snippet from 'net config workstation': > ... > Workstation domain EMEA > ... > Logon domain AD1 > > > > Are you sure /etc/passwd is really correct? > > made with mkpasswd -l -d, homepath changed for my account. I'm not entirely sure, but it might help to call `mkpasswd -l -d AD1 instead. > > What do you mean by "HOSTNAME missing"? The environment variable? > > the first cygcheck output doesn't show the HOSTNAME environment. That's weird because Cygwin does nothing to the environment variable $HOSTNAME. That's a shell thingy. > > I have no idea why this happens for you. Some debugging will be necessary. > > Starting the first bash from strace might give a clue. > > BTDT, attached. > and believe me ... there is no /etc/passwd with 9 lines ;) Nevertheless Cygwin only recognizes 9 valid lines. Even if the passwd file has more lines, the number of lines accepted by Cygwin can be less, if the content is not valid. But that should only happen if the uid and gid fields are not valid unsigned long values, which is quite unlikely. How big is your /etc/passwd in bytes and how many lines does it have? Please start your first bash under strace again and call it like this: C:\cygwin\bin> strace -o bash.out -m 0xfffff bash This will give us some more information. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |