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 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: <20090721083720 DOT GX27613 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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