public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: Chris Wagner <wagnerc@plebeian.com>, cygwin@cygwin.com
Subject: Re: Groups command failing me in Windows 10
Date: Thu, 14 May 2020 13:04:57 +0300	[thread overview]
Message-ID: <815827926.20200514130457@yandex.ru> (raw)
In-Reply-To: <9222f81f1de828626cf048a4d938e2af@plebeian.com>

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.

> https://cygwin.com/cygwin-ug-net/ntsec.html has additional information.

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

Nope.
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.

[1] https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch


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

Sorry for my terrible english...


  parent reply	other threads:[~2020-05-14 10:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-12 19:45 David
2020-05-12 20:33 ` David Macek
2020-05-13  0:43 ` Chris Wagner
2020-05-13  5:34   ` Brian Inglis
2020-05-14 10:04   ` Andrey Repin [this message]
2020-05-13 11:39 David

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=815827926.20200514130457@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=wagnerc@plebeian.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).