public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: David Karr <davidmichaelkarr@gmail.com>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: Win7 system update hosed something in Cygwin
Date: Fri, 16 Aug 2019 18:47:00 -0000	[thread overview]
Message-ID: <CAA5t8VoDZqru3gieyT4p7WH8GG82uY3ZziGkQ1RAjSwZpYLMiA@mail.gmail.com> (raw)
In-Reply-To: <ff1a89fdc0e4a94a9a29bef1a2a0e582@smtp-cloud7.xs4all.net>

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

  reply	other threads:[~2019-08-16 18:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-16  1:28 David Karr
2019-08-16  9:01 ` Houder
2019-08-16 14:48   ` David Karr
2019-08-16 15:16     ` Houder
2019-08-16 18:31       ` Houder
2019-08-16 18:47         ` David Karr [this message]
2019-08-16 18:45       ` David Karr
2019-08-16 21:01         ` Houder
2019-08-16 21:46         ` Andrey Repin
2019-08-16 22:33           ` David Karr
2019-08-16 21:20 ` L A Walsh
2019-08-17  1:23   ` David Karr
2019-08-17  5:31     ` David Karr
2019-08-18  6:04       ` L A Walsh
2019-08-17  7:11   ` Achim Gratz
2019-08-19 12:34   ` Andrey Repin
2019-08-20 18:02     ` Win7 update may create confusing Cygwin changes L A Walsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA5t8VoDZqru3gieyT4p7WH8GG82uY3ZziGkQ1RAjSwZpYLMiA@mail.gmail.com \
    --to=davidmichaelkarr@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).