public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Steinar Bang <sb@dod.no>
To: cygwin-xfree@cygwin.com
Subject: Re: Problems with users home directory on cygwin64 on Windows 10
Date: Thu, 08 Feb 2018 17:23:00 -0000	[thread overview]
Message-ID: <upzcd11f5ray.fsf@dod.no> (raw)
In-Reply-To: <F187BCB1819C944184FEFF04AA702BF60112B89CF4@ORD2MBX05E.mex05.mlsrvr.com>

>>>>> Ross Boulet <rossb@rossb.com>:

> Have you tried running mkpasswd? The man page for mkpasswd looks like
> it might accomplish what you want.

Thanks! That worked!

Here's what I did:
 1. Let the mkpasswd program create an /etc/passwd for my user
     sb@ITEM-S63383:~$ mkpasswd -c -p "$(cygpath -H)" >/etc/passwd
     sb@ITEM-S63383:~$

 2. Checked the content of the generated /etc/passwd
     sb@ITEM-S63383:~$ grep sb /etc/passwd
     sb:*:1294839:1049089:U-AD\sb,S-1-5-21-2260904419-1400770398-4175912926-246263:/cygdrive/d/Profiles/sb:/bin/bash
     sb@ITEM-S63383:~$

 3. Checked what getent said and it still gave /home/sb as the home
    directory
     sb@ITEM-S63383:~$ getent passwd sb
     sb:*:1294839:1049089:U-AD\sb,S-1-5-21-2260904419-1400770398-4175912926-246263:/home/sb:/bin/bash
     sb@ITEM-S63383:~$

 4. Stopped all cygwin windows

 5. Started a new cygwin window and now the home directory was correct
     sb@ITEM-S63383:~$ getent passwd sb
     sb:*:1294839:1049089:U-AD\sb,S-1-5-21-2260904419-1400770398-4175912926-246263:/cygdrive/d/Profiles/sb:/bin/bash
     sb@ITEM-S63383:~$

> Also, this mailing list is deprecated. Please see
> https://cygwin.com/ml/cygwin-xfree-announce/2015-03/msg00001.html

Ah, sorry about that!  Old habit!

Next time I will use the main cygwin mailing list. :-)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


      reply	other threads:[~2018-02-08 17:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-07 15:08 Steinar Bang
2018-02-07 18:15 ` Ross Boulet
2018-02-08 17:23   ` Steinar Bang [this message]

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=upzcd11f5ray.fsf@dod.no \
    --to=sb@dod.no \
    --cc=cygwin-xfree@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).