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: More on Win7 update messing up HOME
Date: Fri, 16 Aug 2019 20:35:00 -0000	[thread overview]
Message-ID: <CAA5t8VpRNETtpxZQtBznHcQWT=6k3D9EOiv18WqYkbok0pOzCw@mail.gmail.com> (raw)
In-Reply-To: <CAD8GWsuUjJxKHjm=CNEg8AKYoJr7MhY-ZtvJqDEWM+W43jpqNQ@mail.gmail.com>

On Fri, Aug 16, 2019 at 11:43 AM Lee wrote:

> On 8/16/19, David Karr wrote:
> > On Fri, Aug 16, 2019 at 10:32 AM Hans-Bernhard Bröker wrote:
> >
> >> Am 16.08.2019 um 15:28 schrieb David Karr:
> >> > On Fri, Aug 16, 2019 at 3:50 AM Andrey Repin wrote:
> >>
> >> >> Do you have %HOME% variable set in your user environment?
> >> >> Do you have %HOMEDRIVE%/%HOMEPATH% variables defined to something
> >> >> unsettling?
> >>
> >> > I checked "Environment Variables" in control panel, and I'm not
> setting
> >> > anything beginning with "HOME" in either user or system variables.
> >>
> >> That check is not really useful, though.
> >>
> >> You need to look at the actual environment constructed for a user
> >> process, at run-time.  About the easiest is to start a Windows command
> >> shell (Start->Run "cmd") and look at the output of the "set" command.
> >>
> >> In cases of looking for names starting with some prefix, like here, you
> >> can narrow down the search:
> >>
> >>         set HOME
> >>
> >
> > That just results in:
> >
> >     HOMEDRIVE=C:
> >     HOMEPATH=\Users\<myuid>
> >
> > I detailed this in another reply, but this would fit one of those checks,
> > which should result in "C:\Users\<myuid>", which is my Windows home
> > directory, which does exist.  I don't want it to use this, but it's not
> > anyway.  It's resulting in "/" as my Cygwin home.
>
> Have you checked /etc/nsswitch.conf yet?
> $ cat /etc/nsswitch.conf
> # /etc/nsswitch.conf
> #
> #    This file is read once by the first process in a Cygwin process tree.
> #    To pick up changes, restart all Cygwin processes.  For a description
> #    see
> https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
> #
> # Defaults:
> # passwd:   files db
> # group:    files db
> # db_enum:  cache builtin
> # db_home:  /home/%U
> # db_shell: /bin/bash
> # db_gecos: <empty>
>

This matches the state of mine, where all the lines are commented out.


> Lee
>
> --
> 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:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-16  2:39 David Karr
2019-08-16 10:50 ` Andrey Repin
2019-08-16 13:40   ` David Karr
2019-08-16 18:22     ` Hans-Bernhard Bröker
2019-08-16 18:42       ` David Karr
2019-08-16 18:43         ` Lee
2019-08-16 20:35           ` David Karr [this message]
2019-08-16 20:47     ` Andrey Repin
2019-08-16 21:02       ` Quanah Gibson-Mount
     [not found]       ` <1FFDA2C4248A525343CFDE92@192.168.1.144>
2019-08-16 22:11         ` David Karr
2019-08-17  8:16 ` Achim Gratz
2019-08-18  1:37   ` David Karr

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='CAA5t8VpRNETtpxZQtBznHcQWT=6k3D9EOiv18WqYkbok0pOzCw@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).