Groups command failing me in Windows 10

Andrey Repin
Thu May 14 10:04:57 GMT 2020

Greetings, Chris Wagner!

> On 2020-05-12 3:45 pm, David wrote:
>> The groups command in the cmd window on Windows 10 shows None as my 
>> first group.
>> When I use the dir command to create a file, the security display
>> shows no error.
>> When I use the touch command to create a file, I get "The permissions
>> on ... are incorrectly ordered [NULL if first]

> Hi David.  The first thing to realize is that POSIX permissions and 
> Windows ACLs are almost impossible to reconcile.  Best to pick one and 
> ignore the other.

> has additional information.

> To set your group you should do it in /etc/passwd.
> If you don't have one, do: mkpasswd > /etc/passwd

getent group

It will configure correct group file according to current NSS settings.
But you don't need to store it. (Or, well, you do, but for very, very, very
rare occasions.)

> Then edit the file and change the 4th field on the line with your 
> username to the group Id for Users.

No need.

> david:*:123456:197153:
> david:*:123456:545:

> Then restart ALL Cygwin processes and id should show Users as your 
> primary group.  Any files created by a Windows process however will 
> still put None as the group.

> Hope that helps.

If you want to configure your user's primary group for Cygwin, you'd have to
do it in your user's settings. This is explained in the same article[1],
which you quoted, but seemingly not read yourself.


With best regards,
Andrey Repin
Thursday, May 14, 2020 13:00:31

Sorry for my terrible english...

More information about the Cygwin mailing list