delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/16/14:46:51

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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=a4MvN/l
11iBI5vJJbhmJ2Ap4ML49m/tSrdpqVNRnVCAU2XVYUmuTcd8FV8CVNI82c1jC6oQ
yKhA0f3Wcc3Vkl1hc8RBOD28O6pd1786I0bXJEmP0pSwjV7dPcaWDfaXI++L/ds3
iD5QrdAzkONAT72mljdLXJn4mbNR5FxQ3ZIE=
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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=X49gIPJL3BndL
T7I943RgOxKq4k=; b=hk/qeMda3942aGerbg0n/irPstRhca0NqQZsUr3T6TZTG
s8DizNVbvU0/1L9Vfl2fPIlRqz10zGpbIyH0WtlD5rPy4d6O2XfibLa4BzQu7m3S
8bXWLdSleOBWvUKObo4YMdNgHnQv4kItsHO1fOyEW+AVwkqHqZ5LX8iY+SPEPk=
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-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Received:68d9, H*c:alternative
X-HELO: mail-ed1-f43.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2ab76IhOsHYCNZEWhWkme5r5i1CaKtUdDQ72tMoFQm0=; b=kATP16iwA398W4E8Vn39XbMSAbcwZKUDeYXSK5E1UiyRgeO2ew7nYqXEM468T1DL2z gpGjgj5sf9I33WzG2H2XsDPFPLPnZRYpAuxRiFAjxwFG5T0lbA3DPZ/a5QW+IRfQlYip UgtiKs05MxVl4sJK+Iscql/0anE9JhHMrCcVrPDTYq/hgUKelDv80DDUc2aDhlPq2fsj Hf9fSlEMpJBIceryzk5ZeY0bI+pjVzBFu6S/KWV2UtKDiun/3VKVoez/qyuRrLkWGZnl DutBAcAJGztRUkB8zia5lbe+bK8RFs+CwLQZ3aIZmhE1Yyzf9vm9ALxOvBBN1Wna+JrB NzsQ==
MIME-Version: 1.0
References: <CAA5t8VocmswTXD4Y7QLxe1NkbZ0Jj+Nt40dFXjHF+9cTP8zW3A AT mail DOT gmail DOT com> <0b92f093cce0c8b0f1b43c9ed6dabac9 AT smtp-cloud8 DOT xs4all DOT net> <CAA5t8VqBgrOwWN6KJyqm+72wtWDu8QY=t3F5kHKEODH-qVHiJQ AT mail DOT gmail DOT com> <177b39dbb95fb07000da6880d83c1db1 AT smtp-cloud9 DOT xs4all DOT net> <ff1a89fdc0e4a94a9a29bef1a2a0e582 AT smtp-cloud7 DOT xs4all DOT net>
In-Reply-To: <ff1a89fdc0e4a94a9a29bef1a2a0e582@smtp-cloud7.xs4all.net>
From: David Karr <davidmichaelkarr AT gmail DOT com>
Date: Fri, 16 Aug 2019 11:45:43 -0700
Message-ID: <CAA5t8VoDZqru3gieyT4p7WH8GG82uY3ZziGkQ1RAjSwZpYLMiA@mail.gmail.com>
Subject: Re: Win7 system update hosed something in Cygwin
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

On Fri, Aug 16, 2019 at 11:22 AM Houder wrote:

> On Fri, 16 Aug 2019 16:58:09, Houder  wrote:
> > On Fri, 16 Aug 2019 06:40:28, David Karr  wrote:
> > > On Fri, Aug 16, 2019 at 2:01 AM Houder wrote:
> > ..
> >
> > > > Please study /etc/profile where it says "here is how HOME is set" ...
> > > >
> > >
> > > Ok. This says:
> > >
> > >   #  1) From existing HOME in the Windows environment, translated to a
> > > Posix path
> > >   #  2) from /etc/passwd, if there is an entry with a non empty
> directory
> > > field
> > >   #  3) from HOMEDRIVE/HOMEPATH
> > >   #  4) / (root)
> > >
> > > I just brought up a cmd shell and entered "set" and looked at the
> result.
> > >
> > > 1. I don't have a "HOME" variable setting.
> > > 2. /etc/passwd doesn't exist in Cygwin.
> > > 3. I DO have both HOMEDRIVE and HOMEPATH set, and that points to my
> Windows
> > > home directory, which DOES exist.
> > > 4. This is what I am getting.
> >
> > Perhaps comment in file is not complete? (is getent perhaps used?)
>
> Execute from a command prompt:
>
> <your Cygwin root>\bin\env
>
> and observe that HOME is added to the environment by the cygwin1.dll ...
> (at the end of the listing/environment array)
>

Yes, it adds "HOME=/".


> Next, study
>
>  - https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping
>  - https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
>
> You should find the answer here; somewhere (/etc/nsswitch.conf?), you
> define
> HOME (db_home:?) ... that is why HOME is known to the cygwin1.dll.
>

All the lines in nsswitch.conf are commented out, so I assume they're not
active.


> Henri
>
> > > So, before this reboot, my Cygwin home directory has always been
> > > "/home/<myuid>", which has always resided at
> "c:\cygwin64\home\<myuid>".
> > > After the reboot, my Cygwin home directory is "/", which appears to
> > > translate to "c:\cygwin64" (from "cygpath -w /").  However, according
> to
> > > the rules listed in /etc/profille, I SHOULD be getting home set to
> > > "c:/Users/<myuid>", although I don't want that.
> > >
> > > Any other ideas?
> >
> >  1. cygcheck -srv? (include the compressed output to your reply)
> >
> >  2. getent passwd? (what home directory for your id?)
> >
> >  3. /etc/nsswitch.conf? (db_home?)
> >
> > Henri
> >
> >
> > --
> > 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
> >
>
>
> --
> 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
>
>

--
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

- Raw text -


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