public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Should the group of my user be None?
@ 2014-11-08 15:29 Theodore Si
  2014-11-08 16:17 ` Theodore Si
  2014-11-09  3:03 ` Larry Hall (Cygwin)
  0 siblings, 2 replies; 6+ messages in thread
From: Theodore Si @ 2014-11-08 15:29 UTC (permalink / raw)
  To: cygwin

Hi all,

I just installed cygwin on my Windows 8.1 laptop and I found that
the result of ls -l is like this:
-rw-rw-r--  1 Theodore None 0 Nov  8 22:44 a
And I fond that I am in several groups
$ groups Theodore
Theodore : None root Performance Log Users

This raise my curiosity because when I use git, I got some error.
Then I read this:

http://stackoverflow.com/questions/9561759/why-cannot-chmod-in-cygwin-on-windows-8-cp

I wonder why I need to use chgrp to make it right? Is this a bug?

Thanks
Theo








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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Should the group of my user be None?
  2014-11-08 15:29 Should the group of my user be None? Theodore Si
@ 2014-11-08 16:17 ` Theodore Si
  2014-11-09  3:05   ` Larry Hall (Cygwin)
  2014-11-09  3:03 ` Larry Hall (Cygwin)
  1 sibling, 1 reply; 6+ messages in thread
From: Theodore Si @ 2014-11-08 16:17 UTC (permalink / raw)
  To: cygwin

Shouldn't I be in the group with the same name of my username, like in 
Linux?

在 11/8/2014 11:29 PM, Theodore Si 写道:
> Hi all,
>
> I just installed cygwin on my Windows 8.1 laptop and I found that
> the result of ls -l is like this:
> -rw-rw-r--  1 Theodore None 0 Nov  8 22:44 a
> And I fond that I am in several groups
> $ groups Theodore
> Theodore : None root Performance Log Users
>
> This raise my curiosity because when I use git, I got some error.
> Then I read this:
>
> http://stackoverflow.com/questions/9561759/why-cannot-chmod-in-cygwin-on-windows-8-cp 
>
>
> I wonder why I need to use chgrp to make it right? Is this a bug?
>
> Thanks
> Theo
>
>
>
>
>
>
>


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Should the group of my user be None?
  2014-11-08 15:29 Should the group of my user be None? Theodore Si
  2014-11-08 16:17 ` Theodore Si
@ 2014-11-09  3:03 ` Larry Hall (Cygwin)
  1 sibling, 0 replies; 6+ messages in thread
From: Larry Hall (Cygwin) @ 2014-11-09  3:03 UTC (permalink / raw)
  To: cygwin

On 11/08/2014 10:29 AM, Theodore Si wrote:
> Hi all,
>
> I just installed cygwin on my Windows 8.1 laptop and I found that
> the result of ls -l is like this:
> -rw-rw-r--  1 Theodore None 0 Nov  8 22:44 a
> And I fond that I am in several groups
> $ groups Theodore
> Theodore : None root Performance Log Users
>
> This raise my curiosity because when I use git, I got some error.
> Then I read this:
>
> http://stackoverflow.com/questions/9561759/why-cannot-chmod-in-cygwin-on-windows-8-cp
>
>
> I wonder why I need to use chgrp to make it right? Is this a bug?

No.  It's Windows (same difference? ;-) ).  See:

<https://cygwin.com/ml/cygwin/2014-01/msg00046.html>
<https://cygwin.com/ml/cygwin/2014-01/msg00057.html>


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Should the group of my user be None?
  2014-11-08 16:17 ` Theodore Si
@ 2014-11-09  3:05   ` Larry Hall (Cygwin)
  2014-11-09  3:33     ` Theodore Si
  0 siblings, 1 reply; 6+ messages in thread
From: Larry Hall (Cygwin) @ 2014-11-09  3:05 UTC (permalink / raw)
  To: cygwin

On 11/08/2014 11:17 AM, Theodore Si wrote:
> Shouldn't I be in the group with the same name of my username, like in Linux?

No.  Windows isn't Linux.  Of course, if you want to make a group with your
user name and add your user to that group, Windows will probably let you do
that.  But that's not a convention for user accounts on Windows.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Should the group of my user be None?
  2014-11-09  3:05   ` Larry Hall (Cygwin)
@ 2014-11-09  3:33     ` Theodore Si
  2014-11-09  3:36       ` Theodore Si
  0 siblings, 1 reply; 6+ messages in thread
From: Theodore Si @ 2014-11-09  3:33 UTC (permalink / raw)
  To: cygwin; +Cc: Larry Hall (Cygwin)

Thank you for your replies.

The permission of files under ~/.ssh can't be changed to 600 when their 
group owner is None. I have to chgrp -R Users (or Administrators, or any 
other group name other than None) ~/.ssh to make it possible to run 
chmod on them. I suppose this is a bug of cygwin on Windows 8/8.1 ?

在 11/9/2014 11:05 AM, Larry Hall (Cygwin) 写道:
> On 11/08/2014 11:17 AM, Theodore Si wrote:
>> Shouldn't I be in the group with the same name of my username, like 
>> in Linux?
>
> No.  Windows isn't Linux.  Of course, if you want to make a group with 
> your
> user name and add your user to that group, Windows will probably let 
> you do
> that.  But that's not a convention for user accounts on Windows.
>
>


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Should the group of my user be None?
  2014-11-09  3:33     ` Theodore Si
@ 2014-11-09  3:36       ` Theodore Si
  0 siblings, 0 replies; 6+ messages in thread
From: Theodore Si @ 2014-11-09  3:36 UTC (permalink / raw)
  To: cygwin; +Cc: Larry Hall (Cygwin)

Thank you for your replies.

The permission of files under ~/.ssh can't be changed to 600 when their 
group owner is None. I have to chgrp -R Users (or Administrators, or any 
other group name other than None) ~/.ssh to make it possible to run 
chmod on them. I suppose this is a bug of cygwin on Windows 8/8.1 ?

I changed my GID in /etc/passwd from 513 to 544 to make my primary group 
Administrators. Now the group owner of the files are turned to ????? . 
Is it OK to do this?

在 11/9/2014 11:33 AM, Theodore Si 写道:
> Thank you for your replies.
>
> The permission of files under ~/.ssh can't be changed to 600 when 
> their group owner is None. I have to chgrp -R Users (or 
> Administrators, or any other group name other than None) ~/.ssh to 
> make it possible to run chmod on them. I suppose this is a bug of 
> cygwin on Windows 8/8.1 ?
>
> 在 11/9/2014 11:05 AM, Larry Hall (Cygwin) 写道:
>> On 11/08/2014 11:17 AM, Theodore Si wrote:
>>> Shouldn't I be in the group with the same name of my username, like 
>>> in Linux?
>>
>> No.  Windows isn't Linux.  Of course, if you want to make a group 
>> with your
>> user name and add your user to that group, Windows will probably let 
>> you do
>> that.  But that's not a convention for user accounts on Windows.
>>
>>
>


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-11-09  3:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-08 15:29 Should the group of my user be None? Theodore Si
2014-11-08 16:17 ` Theodore Si
2014-11-09  3:05   ` Larry Hall (Cygwin)
2014-11-09  3:33     ` Theodore Si
2014-11-09  3:36       ` Theodore Si
2014-11-09  3:03 ` Larry Hall (Cygwin)

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