public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Chris Wagner <wagnerc@plebeian.com>
To: David <cupcake@sdf.org>
Cc: cygwin@cygwin.com
Subject: Re: Groups command failing me in Windows 10
Date: Tue, 12 May 2020 20:43:30 -0400	[thread overview]
Message-ID: <9222f81f1de828626cf048a4d938e2af@plebeian.com> (raw)
In-Reply-To: <202005121945.04CJjgq5019928@sdf.org>

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

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

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.


Thanks.




  parent reply	other threads:[~2020-05-13  0:43 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 [this message]
2020-05-13  5:34   ` Brian Inglis
2020-05-14 10:04   ` Andrey Repin
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=9222f81f1de828626cf048a4d938e2af@plebeian.com \
    --to=wagnerc@plebeian.com \
    --cc=cupcake@sdf.org \
    --cc=cygwin@cygwin.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).