Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-19 Thread Andrey Repin
Greetings, Bill Stewart! > On Fri, Feb 15, 2019 at 3:48 PM Bill Stewart wrote: >> This means that when I test getent using the name "Admin", Cygwin >> finds the domain group: >> >> PS C:\> getent -w passwd admin >> admin::DOMAINNAME\admin:S-1-5-21-nn-n-n-nn >>

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-19 Thread Bill Stewart
On Tue, Feb 19, 2019 at 8:47 AM Bill Stewart wrote: > (a) Is this correct? > > (b) Is there a particular reason this order was chosen (instead of > local first, then domain, i.e., the usual Windows order)? Please disregard. I forgot the reason was to have the same behavior as the Windows logon

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-19 Thread Bill Stewart
On Fri, Feb 15, 2019 at 3:48 PM Bill Stewart wrote: > This means that when I test getent using the name "Admin", Cygwin > finds the domain group: > > PS C:\> getent -w passwd admin > admin::DOMAINNAME\admin:S-1-5-21-nn-n-n-nn > > I get that this is by design,

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-18 Thread Corinna Vinschen
On Feb 16 18:40, Corinna Vinschen wrote: > On Feb 16 09:15, Brian Inglis wrote: > > On 2019-02-16 08:33, Corinna Vinschen wrote: > > > On Feb 16 08:09, Brian Inglis wrote: > > >> On 2019-02-16 02:45, Corinna Vinschen wrote: > > >>> On Feb 15 14:51, Bill Stewart wrote: > > On Fri, Feb 15, 2019

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-16 Thread Corinna Vinschen
On Feb 16 09:15, Brian Inglis wrote: > On 2019-02-16 08:33, Corinna Vinschen wrote: > > On Feb 16 08:09, Brian Inglis wrote: > >> On 2019-02-16 02:45, Corinna Vinschen wrote: > >>> On Feb 15 14:51, Bill Stewart wrote: > On Fri, Feb 15, 2019 at 2:38 PM Brian Inglis wrote: > > Windows

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-16 Thread Brian Inglis
On 2019-02-16 08:33, Corinna Vinschen wrote: > On Feb 16 08:09, Brian Inglis wrote: >> On 2019-02-16 02:45, Corinna Vinschen wrote: >>> On Feb 15 14:51, Bill Stewart wrote: On Fri, Feb 15, 2019 at 2:38 PM Brian Inglis wrote: > Windows normally allows "." to be used to refer to the local

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-16 Thread Corinna Vinschen
On Feb 16 08:09, Brian Inglis wrote: > On 2019-02-16 02:45, Corinna Vinschen wrote: > > On Feb 15 14:51, Bill Stewart wrote: > >> On Fri, Feb 15, 2019 at 2:38 PM Brian Ingliswrote: > >> > >>> Windows normally allows "." to be used to refer to the local machine name > >>> in a > >>> domain context

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-16 Thread Brian Inglis
On 2019-02-16 02:45, Corinna Vinschen wrote: > On Feb 15 14:51, Bill Stewart wrote: >> On Fri, Feb 15, 2019 at 2:38 PM Brian Ingliswrote: >> >>> Windows normally allows "." to be used to refer to the local machine name >>> in a >>> domain context - can anyone confirm or deny whether this works in

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-16 Thread Corinna Vinschen
On Feb 15 14:51, Bill Stewart wrote: > On Fri, Feb 15, 2019 at 2:38 PM Brian Ingliswrote: > > > Windows normally allows "." to be used to refer to the local machine name > > in a > > domain context - can anyone confirm or deny whether this works in Cygwin or > > with > > getent? > > AFAICT,

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Andrey Repin
Greetings, Bill Stewart! >> What is a "typical" order?!? >> >> If you login locally to a domain member machine the default domain is >> the logon domain of this machine. If that's not what you want you have >> to choose the logon domain of your account explicitely, even if it's the >> local

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Bill Stewart
On Fri, Feb 15, 2019 at 2:32 PM Corinna Vinschen wrote: > What is a "typical" order?!? > > If you login locally to a domain member machine the default domain is > the logon domain of this machine. If that's not what you want you have > to choose the logon domain of your account explicitely, even

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Bill Stewart
On Fri, Feb 15, 2019 at 2:38 PM Brian Ingliswrote: > Windows normally allows "." to be used to refer to the local machine name in a > domain context - can anyone confirm or deny whether this works in Cygwin or > with > getent? AFAICT, the "." shortcut does not work in Cygwin. Regards, Bill

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Bill Stewart
On Fri, Feb 15, 2019 at 2:32 PM Corinna Vinschen wrote: > > The section that starts with "Let's discuss the SID<=>uid/gid mapping > > first. Here's how it works." states this order: > > It doesn't state an order. It describes the mapping from SID to > uid/gid, and there's *no* order at all to

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Brian Inglis
On 2019-02-15 13:59, Bill Stewart wrote: > On Fri, Feb 15, 2019 at 1:43 PM Corinna Vinschen wrote: >> More specific as the original text? I'm hard pressed to accomplish >> that. Take note of the "domain member machine" property. > I think I see the problem. The list I posted (above the one you

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Corinna Vinschen
On Feb 15 13:59, Bill Stewart wrote: > On Fri, Feb 15, 2019 at 1:43 PM Corinna Vinschen wrote: > I think I see the problem. The list I posted (above the one you are > apparently referring to) has the search in a different order. I'm not only "apparently referring" to that list, I pasted it

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Bill Stewart
On Fri, Feb 15, 2019 at 1:43 PM Corinna Vinschen wrote: > More specific as the original text? I'm hard pressed to accomplish > that. Take note of the "domain member machine" property. I think I see the problem. The list I posted (above the one you are apparently referring to) has the search in

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Andrey Repin
Greetings, Bill Stewart! > On Fri, Feb 15, 2019 at 9:38 AM Corinna Vinschen wrote: >> There's a documented ruleset which is strictly followed >> https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-how: > From that reference, we have the following order: [...crap skipped...] > What am I

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Corinna Vinschen
On Feb 15 13:36, Bill Stewart wrote: > On Fri, Feb 15, 2019 at 1:29 PM Corinna Vinschen wrote: > > > you didn't really read it. Try again. > > Can you be more specific? More specific as the original text? I'm hard pressed to accomplish that. Take note of the "domain member machine"

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Bill Stewart
On Fri, Feb 15, 2019 at 1:29 PM Corinna Vinschen wrote: > you didn't really read it. Try again. Can you be more specific? Bill -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Corinna Vinschen
On Feb 15 12:14, Bill Stewart wrote: > On Fri, Feb 15, 2019 at 9:38 AM Corinna Vinschen wrote: > > > There's a documented ruleset which is strictly followed > > https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-how: > > >From that reference, we have the following order: > > * Well-known

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Bill Stewart
On Fri, Feb 15, 2019 at 9:38 AM Corinna Vinschen wrote: > There's a documented ruleset which is strictly followed > https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-how: >From that reference, we have the following order: * Well-known SIDs in the NT_AUTHORITY domain of the S-1-5-RID

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Corinna Vinschen
On Feb 15 08:34, Bill Stewart wrote: > On Fri, Feb 15, 2019 at 2:32 AM Sam Edge (Cygwin) wrote: > > > https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-how explains > > in more detail. > > I had already read that, and it seems to indicate that it asks the > local machine first, but that

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Andrey Repin
Greetings, Bill Stewart! > On Fri, Feb 15, 2019 at 2:32 AM Sam Edge (Cygwin) wrote: >> https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-how explains >> in more detail. > I had already read that, and it seems to indicate that it asks the > local machine first, but that doesn't seem to

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Brian Inglis
On 2019-02-15 08:34, Bill Stewart wrote: > On Fri, Feb 15, 2019 at 2:32 AM Sam Edge wrote: >> https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-how explains >> in more detail. > I had already read that, and it seems to indicate that it asks the > local machine first, but that doesn't seem

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Bill Stewart
On Fri, Feb 15, 2019 at 2:32 AM Sam Edge (Cygwin) wrote: > https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-how explains > in more detail. I had already read that, and it seems to indicate that it asks the local machine first, but that doesn't seem to be happening when there's a

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

2019-02-15 Thread Sam Edge (Cygwin)
On 14/02/2019 23:47, Bill Stewart wrote: > Consider the case where you have a local account and a domain account > with the same username. > > If you supply just the username to Windows without an authority name, > Windows returns the local account. To get the domain account, you'd > have to