* Win7 system update hosed something in Cygwin
@ 2019-08-16 1:28 David Karr
2019-08-16 9:01 ` Houder
2019-08-16 21:20 ` L A Walsh
0 siblings, 2 replies; 17+ messages in thread
From: David Karr @ 2019-08-16 1:28 UTC (permalink / raw)
To: The Cygwin Mailing List
I logged into my Win7 laptop and I saw it was having some connection
problems, so I decided to reboot.
After the reboot I found that Cygwin had some basic problems. I brought up
a mintty window (C:\cygwin64\bin\mintty.exe -e /bin/bash --login) and the
prompt looked odd. It wasn't the PS1 value that I set in my .bashrc. It
also seemed to be saying that my current directory was "/", which is not my
homedir.
I tried to cat out /etc/passwd, but there was no "passwd" (or "groups") in
/etc . I looked at the output of "env", and it does say that HOME is "/".
When I saw this behavior, I tried rebooting again just in case, but it
didn't change. I guess I'm going to try running the cygwin installer to
see if it will repair itself. I have no idea whether it would do that.
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 1:28 Win7 system update hosed something in Cygwin David Karr
@ 2019-08-16 9:01 ` Houder
2019-08-16 14:48 ` David Karr
2019-08-16 21:20 ` L A Walsh
1 sibling, 1 reply; 17+ messages in thread
From: Houder @ 2019-08-16 9:01 UTC (permalink / raw)
To: cygwin
On Thu, 15 Aug 2019 18:28:09, David Karr wrote:
> I logged into my Win7 laptop and I saw it was having some connection
> problems, so I decided to reboot.
>
> After the reboot I found that Cygwin had some basic problems. I brought up
> a mintty window (C:\cygwin64\bin\mintty.exe -e /bin/bash --login) and the
> prompt looked odd. It wasn't the PS1 value that I set in my .bashrc. It
> also seemed to be saying that my current directory was "/", which is not my
> homedir.
Re. your subject title: not likely.
Please study /etc/profile where it says "here is how HOME is set" ...
Henri
> I tried to cat out /etc/passwd, but there was no "passwd" (or "groups") in
> /etc . I looked at the output of "env", and it does say that HOME is "/".
>
> When I saw this behavior, I tried rebooting again just in case, but it
> didn't change. I guess I'm going to try running the cygwin installer to
> see if it will repair itself. I have no idea whether it would do that.
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 9:01 ` Houder
@ 2019-08-16 14:48 ` David Karr
2019-08-16 15:16 ` Houder
0 siblings, 1 reply; 17+ messages in thread
From: David Karr @ 2019-08-16 14:48 UTC (permalink / raw)
To: The Cygwin Mailing List
On Fri, Aug 16, 2019 at 2:01 AM Houder wrote:
> On Thu, 15 Aug 2019 18:28:09, David Karr wrote:
> > I logged into my Win7 laptop and I saw it was having some connection
> > problems, so I decided to reboot.
> >
> > After the reboot I found that Cygwin had some basic problems. I brought
> up
> > a mintty window (C:\cygwin64\bin\mintty.exe -e /bin/bash --login) and the
> > prompt looked odd. It wasn't the PS1 value that I set in my .bashrc. It
> > also seemed to be saying that my current directory was "/", which is not
> my
> > homedir.
>
> Re. your subject title: not likely.
>
Cygwin was working fine. I rebooted. Cygwin broken.
> 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.
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?
> Henri
>
> > I tried to cat out /etc/passwd, but there was no "passwd" (or "groups")
> in
> > /etc . I looked at the output of "env", and it does say that HOME is "/".
> >
> > When I saw this behavior, I tried rebooting again just in case, but it
> > didn't change. I guess I'm going to try running the cygwin installer to
> > see if it will repair itself. I have no idea whether it would do that.
>
>
> --
> 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 14:48 ` David Karr
@ 2019-08-16 15:16 ` Houder
2019-08-16 18:31 ` Houder
2019-08-16 18:45 ` David Karr
0 siblings, 2 replies; 17+ messages in thread
From: Houder @ 2019-08-16 15:16 UTC (permalink / raw)
To: cygwin
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?)
> 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 15:16 ` Houder
@ 2019-08-16 18:31 ` Houder
2019-08-16 18:47 ` David Karr
2019-08-16 18:45 ` David Karr
1 sibling, 1 reply; 17+ messages in thread
From: Houder @ 2019-08-16 18:31 UTC (permalink / raw)
To: cygwin
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)
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.
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 15:16 ` Houder
2019-08-16 18:31 ` Houder
@ 2019-08-16 18:45 ` David Karr
2019-08-16 21:01 ` Houder
2019-08-16 21:46 ` Andrey Repin
1 sibling, 2 replies; 17+ messages in thread
From: David Karr @ 2019-08-16 18:45 UTC (permalink / raw)
To: The Cygwin Mailing List
On Fri, Aug 16, 2019 at 7:58 AM 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?)
>
> > 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?)
>
The first line of this output is this (with some minor elisions):
<mydomain>+User(1944941):*:2993517:2993517:U-<mydomain>\User(1944941),S-1-5-21-2057499049-1289676208-1959431660-1944941:/:/sbin/nologin
This does seem to correspond to having a homedir of "/".
I don't know what this looked like before.
> 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 18:31 ` Houder
@ 2019-08-16 18:47 ` David Karr
0 siblings, 0 replies; 17+ messages in thread
From: David Karr @ 2019-08-16 18:47 UTC (permalink / raw)
To: The Cygwin Mailing List
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 18:45 ` David Karr
@ 2019-08-16 21:01 ` Houder
2019-08-16 21:46 ` Andrey Repin
1 sibling, 0 replies; 17+ messages in thread
From: Houder @ 2019-08-16 21:01 UTC (permalink / raw)
To: cygwin
On Fri, 16 Aug 2019 11:43:22, David Karr wrote:
> On Fri, Aug 16, 2019 at 7:58 AM Houder wrote:
>
> > On Fri, 16 Aug 2019 06:40:28, David Karr wrote:
[snip]
> > > Any other ideas?
> >
> > 1. cygcheck -srv? (include the compressed output to your reply)
> >
> > 2. getent passwd? (what home directory for your id?)
> >
>
> The first line of this output is this (with some minor elisions):
>
> <mydomain>+User(1944941):*:2993517:2993517:U-<mydomain>\User(1944941),S-1-5-21-2057499049-1289676208-1959431660-1944941:/:/sbin/nologin
Really? /sbin/nologin for "shell" ?????
grepping winsup/cygwin/* for "/sbin/nologin"
results in
2777 __small_sprintf (linebuf, "%W:%s:%u:",
2778 posix_name, sid.string ((char *) sidstr), uid);
2779 /* For non-users, create a passwd entry which doesn't allow interactive
2780 logon. Unless it's the SYSTEM account. This conveniently allows to
2781 logon interactively as SYSTEM for debugging purposes. */
2782 else if (acc_type != SidTypeUser && sid != well_known_system_sid)
2783 __small_sprintf (linebuf, "%W:*:%u:%u:U-%W\\%W,%s:/:/sbin/nologin",
2784 posix_name, uid, gid,
2785 dom, name,
2786 sid.string ((char *) sidstr));
2787 else
(pwdgrp::fetch_account_from_windows() in uinfo.cc)
Mmmh, ... I think you will need advice from Corinna ... (IF I am correct!).
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 1:28 Win7 system update hosed something in Cygwin David Karr
2019-08-16 9:01 ` Houder
@ 2019-08-16 21:20 ` L A Walsh
2019-08-17 1:23 ` David Karr
` (2 more replies)
1 sibling, 3 replies; 17+ messages in thread
From: L A Walsh @ 2019-08-16 21:20 UTC (permalink / raw)
To: David Karr; +Cc: cygwin
On 2019/08/15 18:28, David Karr wrote:
> I logged into my Win7 laptop and I saw it was having some connection
> problems, so I decided to reboot.
>
> After the reboot I found that Cygwin had some basic problems. I brought up
> a mintty window (C:\cygwin64\bin\mintty.exe -e /bin/bash --login) and the
> prompt looked odd. It wasn't the PS1 value that I set in my .bashrc. It
> also seemed to be saying that my current directory was "/", which is not my
> homedir.
>
You might want to read the section in the cygwin user manual, especially
https://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping
If you don't have /etc/passwd or /etc/group, cygwin will generate
DOMAIN+USER entries dynamically each time you start cygwin (or per-boot)
if you have cygwin processes started at boot. The /etc/passwd and group
files do not exist by default.
If you want consistency -- same user names+id's with each boot and
MS-Win compatible names, you may want to create /etc/passwd
and /etc/group using mkpasswd, mkgroup and hand tuning. It isn't
suggested for most users, but it may be something you want.
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
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
1 sibling, 1 reply; 17+ messages in thread
From: Andrey Repin @ 2019-08-16 21:46 UTC (permalink / raw)
To: David Karr, cygwin
Greetings, David Karr!
>> > 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?)
>>
> The first line of this output is this (with some minor elisions):
> <mydomain>+User(1944941):*:2993517:2993517:U-<mydomain>\User(1944941),S-1-5-21-2057499049-1289676208-1959431660-1944941:/:/sbin/nologin
Your machine is a domain member?
> This does seem to correspond to having a homedir of "/".
Not "correspond", but it exactly is.
> I don't know what this looked like before.
>> 3. /etc/nsswitch.conf? (db_home?)
--
With best regards,
Andrey Repin
Friday, August 16, 2019 23:31:58
Sorry for my terrible english...
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 21:46 ` Andrey Repin
@ 2019-08-16 22:33 ` David Karr
0 siblings, 0 replies; 17+ messages in thread
From: David Karr @ 2019-08-16 22:33 UTC (permalink / raw)
To: The Cygwin Mailing List
On Fri, Aug 16, 2019 at 2:20 PM Andrey Repin wrote:
> Greetings, David Karr!
>
> >> > 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?)
> >>
>
> > The first line of this output is this (with some minor elisions):
>
>
> >
> <mydomain>+User(1944941):*:2993517:2993517:U-<mydomain>\User(1944941),S-1-5-21-2057499049-1289676208-1959431660-1944941:/:/sbin/nologin
>
> Your machine is a domain member?
>
Apparently.
> > This does seem to correspond to having a homedir of "/".
>
> Not "correspond", but it exactly is.
>
Clearly, but I still don't know what changed to make this start happening.
> > I don't know what this looked like before.
>
>
> >> 3. /etc/nsswitch.conf? (db_home?)
>
>
> --
> With best regards,
> Andrey Repin
> Friday, August 16, 2019 23:31:58
>
> Sorry for my terrible english...
>
>
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 21:20 ` L A Walsh
@ 2019-08-17 1:23 ` David Karr
2019-08-17 5:31 ` David Karr
2019-08-17 7:11 ` Achim Gratz
2019-08-19 12:34 ` Andrey Repin
2 siblings, 1 reply; 17+ messages in thread
From: David Karr @ 2019-08-17 1:23 UTC (permalink / raw)
To: L A Walsh; +Cc: cygwin
On Fri, Aug 16, 2019 at 2:17 PM L A Walsh wrote:
> On 2019/08/15 18:28, David Karr wrote:
> > I logged into my Win7 laptop and I saw it was having some connection
> > problems, so I decided to reboot.
> >
> > After the reboot I found that Cygwin had some basic problems. I brought
> up
> > a mintty window (C:\cygwin64\bin\mintty.exe -e /bin/bash --login) and the
> > prompt looked odd. It wasn't the PS1 value that I set in my .bashrc. It
> > also seemed to be saying that my current directory was "/", which is not
> my
> > homedir.
> >
> You might want to read the section in the cygwin user manual, especially
> https://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping
>
> If you don't have /etc/passwd or /etc/group, cygwin will generate
> DOMAIN+USER entries dynamically each time you start cygwin (or per-boot)
> if you have cygwin processes started at boot. The /etc/passwd and group
> files do not exist by default.
>
> If you want consistency -- same user names+id's with each boot and
> MS-Win compatible names, you may want to create /etc/passwd
> and /etc/group using mkpasswd, mkgroup and hand tuning. It isn't
> suggested for most users, but it may be something you want.
>
>
I would most like to understand what changed to make this suddenly start
happening.
Also note the following:
$ mkpasswd -u <myuid> -d
<myuid>:*:2993517:1049089:U-ITSERVICES\<myuid>,S-1-5-21-2057499049-1289676208-1959431660-1944941:/home/<myuid>:/bin/bash
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-17 1:23 ` David Karr
@ 2019-08-17 5:31 ` David Karr
2019-08-18 6:04 ` L A Walsh
0 siblings, 1 reply; 17+ messages in thread
From: David Karr @ 2019-08-17 5:31 UTC (permalink / raw)
To: L A Walsh; +Cc: cygwin
On Fri, Aug 16, 2019 at 3:33 PM David Karr wrote:
> On Fri, Aug 16, 2019 at 2:17 PM L A Walsh wrote:
>
>> On 2019/08/15 18:28, David Karr wrote:
>> > I logged into my Win7 laptop and I saw it was having some connection
>> > problems, so I decided to reboot.
>> >
>> > After the reboot I found that Cygwin had some basic problems. I
>> brought up
>> > a mintty window (C:\cygwin64\bin\mintty.exe -e /bin/bash --login) and
>> the
>> > prompt looked odd. It wasn't the PS1 value that I set in my .bashrc. It
>> > also seemed to be saying that my current directory was "/", which is
>> not my
>> > homedir.
>> >
>> You might want to read the section in the cygwin user manual, especially
>> https://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping
>>
>> If you don't have /etc/passwd or /etc/group, cygwin will generate
>> DOMAIN+USER entries dynamically each time you start cygwin (or per-boot)
>> if you have cygwin processes started at boot. The /etc/passwd and group
>> files do not exist by default.
>>
>> If you want consistency -- same user names+id's with each boot and
>> MS-Win compatible names, you may want to create /etc/passwd
>> and /etc/group using mkpasswd, mkgroup and hand tuning. It isn't
>> suggested for most users, but it may be something you want.
>>
>>
> I would most like to understand what changed to make this suddenly start
> happening.
>
> Also note the following:
>
> $ mkpasswd -u <myuid> -d
>
> <myuid>:*:2993517:1049089:U-ITSERVICES\<myuid>,S-1-5-21-2057499049-1289676208-1959431660-1944941:/home/<myuid>:/bin/bash
>
Well, I guess I've managed to resolve this, but I would really like to
understand why I had to do what I did. I basically ran both mkpasswd and
mkgroup, passing "-d -c" and writing the output to the corresponding
passwd or group file, and then rebooting. It now appears to work just as
well as it did before.
I've been running this Cygwin installation for a long time on this laptop
without any problem like this.
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 21:20 ` L A Walsh
2019-08-17 1:23 ` David Karr
@ 2019-08-17 7:11 ` Achim Gratz
2019-08-19 12:34 ` Andrey Repin
2 siblings, 0 replies; 17+ messages in thread
From: Achim Gratz @ 2019-08-17 7:11 UTC (permalink / raw)
To: cygwin
L A Walsh writes:
> If you don't have /etc/passwd or /etc/group, cygwin will generate
> DOMAIN+USER entries dynamically each time you start cygwin (or per-boot)
> if you have cygwin processes started at boot.
This is wrong. Cygwin never "generates" those nor do they change, they
are coming from the DC. I do think they get cached if you run
cygserver, but I'm not sure about that.
> If you want consistency -- same user names+id's with each boot and
> MS-Win compatible names, you may want to create /etc/passwd
> and /etc/group using mkpasswd, mkgroup and hand tuning. It isn't
> suggested for most users, but it may be something you want.
There aren't very many situations where you'd still need either of
those, especially not if your machine is a domain member.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-17 5:31 ` David Karr
@ 2019-08-18 6:04 ` L A Walsh
0 siblings, 0 replies; 17+ messages in thread
From: L A Walsh @ 2019-08-18 6:04 UTC (permalink / raw)
To: David Karr; +Cc: cygwin
On 2019/08/16 18:44, David Karr wrote:
>
>
> I would most like to understand what changed to make this suddenly
> start happening.
----
You really need to read the cygwin section on nt-security.
in the user manual @ https://www.cygwin.com/cygwin-ug-net/ntsec.html.
If you are into things appearing a certain way -- I think you
will really find this invaluable. It also gives background and why
things changed.
As for how or why a windows update changed a behavior
in cygwin -- MS doesn't released documentation in that detail.
I came up with my mappings on my linux/samba box because
I have a pretty simple setup. But I wanted the common well-known
ID's in there so they would also make some sense:
From the very generic sids:
Null Authority:x:10010:S-1-0,builtin:
Nobody:x:10100:S-1-0-0,builtin:
World Authority:x:10101:S-1-1,builtin:
Everyone:x:11100:S-1-1-0,builtin:
Local Authority:x:10102:S-1-2,builtin:
...
to my domain id's:
Domain Administrator:x::S-1-5-21-33333-77777-33333-500,domain:
Domain Admins:x::S-1-5-21-33333-77777-33333-512,domain:
Domain Users:x::S-1-5-21-33333-77777-33333-513,domain:
...
to local roles:
Administrators:x::S-1-5-32-544,builtin:
Users:x::S-1-5-32-545,builtin:
Backup Operators:x::S-1-5-32-551,builtin:
...
and authentication + trust labels:
NTLM Authentication:x::S-1-5-64-10,builtin:
Schannel Authentication:x::S-1-5-64-10,builtin:
NT Service:x::S-1-5-80,builtin
Untrusted Mandatory Level:x::S-1-16-0,builtin:
Low Mandatory Level:x:11604096:S-1-16-4096,builtin:
High Mandatory Level:x:11612288:S-1-16-12288,builtin:
System Mandatory Level:x:11616384:S-1-16-16384,builtin:
So in cygwin, when I display my 'id' output, I see the various
groups and labels on my userid:
uid=5013(Bliss\law) gid=201(Bliss\lawgroup) groups=201(Bliss\lawgroup), 1015(lawgroup), 1018(Netmon Users), 1017(pulse-access), 1016(pulse-rt), 1023(WinRMRemoteWMIUsers__), 544(Administrators), 555(Remote Desktop Users), 559(Performance Log Users), 545(Users), 11504(Interactive), 11201(Console Login), 11511(Authenticated Users), 4095(CurrentSession), 66048(LOCAL), 260(Bliss\Media), 512(Bliss\Domain Admins), 513(Bliss\Domain Users), 1053(Bliss\Trusted Local Net Users), 1156410(NTLM Athentication), 11612288(High Mandatory Level)
If you look at your security blob using something like 'processhacker' (goog),
you can see all those labels on your login. Setup right, you also see them
in your cygwin shell, which I thought was cool (being a computer scientist).
Sorry if this was too much, I can't say my setup is necessarily
recommended, BUT, I wanted my Win+linux machines to be joined as
1 machine (all my docs & content is on the linux box, with progs on
my Win Desktop box) joined by a 10gbit ethernet cable:
> I've been running this Cygwin installation for a long time on this
> laptop without any problem like this.
Yeah, you get used to a well tuned setup (though mine does often
have problems because of the weird things I've tried).
-linda
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 system update hosed something in Cygwin
2019-08-16 21:20 ` L A Walsh
2019-08-17 1:23 ` David Karr
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
2 siblings, 1 reply; 17+ messages in thread
From: Andrey Repin @ 2019-08-19 12:34 UTC (permalink / raw)
To: L A Walsh, cygwin
Greetings, L A Walsh!
> On 2019/08/15 18:28, David Karr wrote:
>> I logged into my Win7 laptop and I saw it was having some connection
>> problems, so I decided to reboot.
>>
>> After the reboot I found that Cygwin had some basic problems. I brought up
>> a mintty window (C:\cygwin64\bin\mintty.exe -e /bin/bash --login) and the
>> prompt looked odd. It wasn't the PS1 value that I set in my .bashrc. It
>> also seemed to be saying that my current directory was "/", which is not my
>> homedir.
>>
> You might want to read the section in the cygwin user manual, especially
> https://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping
This was a good suggestion.
> If you don't have /etc/passwd or /etc/group, cygwin will generate
> DOMAIN+USER entries dynamically each time you start cygwin (or per-boot)
> if you have cygwin processes started at boot. The /etc/passwd and group
> files do not exist by default.
> If you want consistency -- same user names+id's with each boot and
> MS-Win compatible names, you may want to create /etc/passwd
> and /etc/group using mkpasswd, mkgroup and hand tuning. It isn't
> suggested for most users, but it may be something you want.
However, with all due respect, you should follow your own advice first.
There's more ways to resolve this, and all of them are more correct, than
generating static files which would get stale rather fast.
F.e. you could try setting
db_home: windows
for it to pick your system profile directory.
--
With best regards,
Andrey Repin
Monday, August 19, 2019 14:10:04
Sorry for my terrible english...
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Win7 update may create confusing Cygwin changes
2019-08-19 12:34 ` Andrey Repin
@ 2019-08-20 18:02 ` L A Walsh
0 siblings, 0 replies; 17+ messages in thread
From: L A Walsh @ 2019-08-20 18:02 UTC (permalink / raw)
To: cygwin, Andrey Repin; +Cc: David Karr
Hi Andrey!
On 2019/08/19 04:14, Andrey Repin wrote:
> However, with all due respect, you should follow your own advice first.
> There's more ways to resolve this, and all of them are more correct, than
> generating static files which would get stale rather fast.
---
How do the static files get stale? Only time I've seen
has been if I did something to require a new local machine image
(reinstall windows, or move hard disk to new, working machine, etc)
which cause the local machine and rid's to change. What are you
talking about when you say stale?
> F.e. you could try setting
> db_home: windows
> for it to pick your system profile directory.
---
But do you know what it does if you have a roaming
profile?
With a roaming profile, which I _had_ for
over 15 years, it would come up with different values for USERPROFILE
based on *something*, that different from HOME (as a composite
of $HOMEDRIVE$HOMEPATH). Now I dunnow if one value or the other
was 'stale', but having it change wasn't what I wanted.
That made software expecting USERPROFILE = HOME or
such, get confused.
So i'm interested in situations where what I have won't work
(the places where you say it gets 'stale').... Could you elaborate\
please?
--
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
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2019-08-20 0:05 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-16 1:28 Win7 system update hosed something in Cygwin 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
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
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).