Problems with users home directory on cygwin64 on Windows 10
Steinar Bang
sb@dod.no
Thu Feb 8 17:23:00 GMT 2018
>>>>> 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/
More information about the Cygwin-xfree
mailing list