delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:content-type:content-transfer-encoding; q=dns; s=default; b=tNL | |
9H26263XZzlij0z2qDX67LKBIe/v5GGUvXZKqJggEnWClpBlc1bZB1l97NH1EEh+ | |
CRxJUuDPonwHUq/VVfJVJqNwTNMW1YfsHPv93Pk6VEEG2gW0Ry3vdQ6b0YS+HXiP | |
5wWisisFqOyKUCcE7RFC6d9t2q7a89J/t/C42+RU= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:content-type:content-transfer-encoding; s=default; bh=wmMZbomlg | |
xv/Da+XbizDVXxjhu4=; b=X3kiMo8ZoHLS432/VyZZMumfSWFuIMtam8bx1f6Op | |
tKtMpwbxpDLtDKwIvL51OQUqxE1KKRY0EXmk+Fn1/GeUqsX3olsHwbBbmHWZ8CRP | |
sf59D8HLAWW7ab/oaEuklvz0+Tb7EOhQMtkr5Cjjne0bgclUfI2jCXRAnRuWmWyh | |
fg= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 |
X-HELO: | mail-ig0-f182.google.com |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=kfEfFXDylBaRqnlcim5Sb7EmJfywojNEHky0DfHF/dc=; b=giGHExFlFlSWHQQBhE/x9ioaugqKFjduPCWrEjDklpkM6iBnNZLmSqyRkHM8QBJaBV yYyRkW2d/LevZqZeZYevN/yOk5FohYs/fBM0VvgA1cVj+e+ZNsEEvFchZhoqwgG1U7sn T9CMjlsTWJDn4xBnUBfgR/uC3bNvHO9CTOUARO8OMYPtMLyRtsYJYqbrRSW4abyoHJFc nhrZoxROnPa1xWh/x74Itycrdc+f3TF5nJYd24QTDpnzeUEGmB5fZa7w0wgjztLptoct eAbhCVMeDo4oOQY2E5syUXVKLT+k/bjMgpsN3mvRD75Yps6Ad66riw0/Nar60b+MkTvg Zt8g== |
X-Gm-Message-State: | ALoCoQkS2fizFGka6bgSJ0Kk/GH8rKdlzu/0rXQOZN/XvdcFJ9UrmeRb4LjM6RgDKzkzMHm7d1L9 |
X-Received: | by 10.42.61.4 with SMTP id s4mr14339580ich.58.1389195253128; Wed, 08 Jan 2014 07:34:13 -0800 (PST) |
Message-ID: | <52CD6FF0.1010309@whitelancer.com> |
Date: | Wed, 08 Jan 2014 10:34:08 -0500 |
From: | John Smith <john AT whitelancer DOT com> |
User-Agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Re: Windows 8 group won't respect /etc/passwd or /etc/group |
Hi there, First, thanks for the detailed reply!! >> I've been struggling with an issue trying to figure out why Windows >> 8.1 won't seem to respect the trick of setting your /etc/password to >> use a default group such as users instead of 'none'. There are a >> few other discussions on this board around changing the group to >> "Users" and modifying the /etc/passwd to have a default group. > > Not sure if the User's Guide is explaining it badly or not, but "None" > *is* a group. It's the primary (what you call "default") group for all > users on a local machine not connected to a Windows domain, and it has > the SID S-1-5-21-<xxx>-<yyy>-<zzz>-513. If you call mkgroup -l it shows > up like this: > > None:S-1-5-21-3229976424-329291882-2774727752-513:513: > > assuming you have an english system, otherwise you see a localized > group name. Yes, I understand this part. And I would be happy to see this group show up, but it does not seem to be able to identify "None" as the group.> > Yes, of course. Changing the primary group via /etc/passwd only > works for Cygwin processes and their child processes. It does not > change the default user token of all processes. How should that > work, especially since the OS itself doesn't allow to change the > primary group of local user accounts. Interesting -- so we can change permissions via cygwin, (unless we're mounted as noacl) but not groups? I'm not trying to change the default group necessarily - that would be convenient, of course, but the most frustrating part is that it's changing it *back*. In *nix, once you change a group, just editing a file won't change the group back to something else. Is there a way to get to this within cygwin? Optimally I would find a way to change the default created group, but I can survive if cygwin (the OS?) will at least remember the group when I change it to something else. >> Well, technically >> it's coming back as 4294967295. (64 bit cygwin) > > This can only happen if you dropped the "None" group from your > /etc/group file. mkgroup -l > /etc/group will rectify it. See, this is why I'm so baffled: I *do* have this group. It's the last entry in my /etc/groups: None:S-1-5-21-339652832-68357117-3096367938-513:513: > Except for the 4294967295, which is just a missing entry for "None" in > /et/cgroup, this is normal. See above. It's not a problem of the OS or > Cygwin, you're just misunderstanding how this works. User tokens > are propagated from process to child process. The parent processes > of any first Cygwin process is a native Windows process with an > unchanged user token, so it has "None" as primary group. At startup > of the first Cygwin process, it reads /etc/passwd and /etc/group > and changes the primary group in its user token if requested by your > settings. This changed user token will be inherited by child processes Ah, I see. So do you know if there is anyway to tell applications to change groups, to avoid this issue of the None/blank/missing group? > started from this process and subsequent processes, but it does not > affect the user tokens of unrelated processes, especially not of > non-CYgwin processes started from Explorer. If you want Notepad to > use your group setting, start it from a Cygwin process. Just tested this, and yes, that definitely works. OK, thank you for this. It's not the solution yet but it's on the right track. Do you have any suggestions or thoughts as to why I'm still seeing that group of ??????????? even though "none" exists in my /etc/group? I was assuming that the default group must be something else, not "None", maybe some virtual group that cygwin can't detect with mkgroup. I just can't figure out what group cygwin is detecting it as. Once I do an 'ls', cygwin has already tried to map the group and just returns '??????' (well, -1 or whatever). Is there a way to see what group cygwin is trying to look up? If I can detect that it's not defaulting to the 'None' group, but some other random group, maybe it's a configuration option on the OS level to start using "none" again or something? Thank you so much for your thoughts and help on this. -J -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |