public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Why does cl -l returns "Administrators" as owner?
@ 2015-04-03 14:03 Mirko Vukovic
  2015-04-03 14:35 ` Andrey Repin
  0 siblings, 1 reply; 2+ messages in thread
From: Mirko Vukovic @ 2015-04-03 14:03 UTC (permalink / raw)
  To: cygwin

This is not an only Cygwin question (I see it also in the output of
the Windows version of
Emacs's dired).

For some files in my directories, the output of ls -l gives the
"Administrators" as owner.

This is puzzling to me because:
- There is no Administrators user listed in the Windows accounts
- Under Explorer/Properties/Details, the user is my domain/my user id
which is what I expect

I looked in the FAQ, Documentation, Google (both cygwin and emacs).

This causes problems for remote activities via ssh.  I cannot operate
on these files, unless I
do a chown to my user id.  But this then changes some of the
permissions as well.  And this
can then lead to problems down the line if not done carefully - me and
my sysadmin I learned
the hard way :-)

Thanks,

Mirko

--
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] 2+ messages in thread

* Re: Why does cl -l returns "Administrators" as owner?
  2015-04-03 14:03 Why does cl -l returns "Administrators" as owner? Mirko Vukovic
@ 2015-04-03 14:35 ` Andrey Repin
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Repin @ 2015-04-03 14:35 UTC (permalink / raw)
  To: Mirko Vukovic, cygwin

Greetings, Mirko Vukovic!

> This is not an only Cygwin question (I see it also in the output of
> the Windows version of
> Emacs's dired).

> For some files in my directories, the output of ls -l gives the
> "Administrators" as owner.

> This is puzzling to me because:
> - There is no Administrators user listed in the Windows accounts
> - Under Explorer/Properties/Details, the user is my domain/my user id
> which is what I expect

I think I'll solve this puzzle for you.
In NT security model, there's no difference between users and groups.
Technically, at least. You can't make a user a member of other user directly,
but that is largely how SID history works. Your old SIDs are members of your
current primary SID.
And in NT security model, there can be only one "creator owner" of an object.
And it can be a user or a group. Cygwin derives the group permission bits from
ACL.
In your case, CREATOR OWNER of said file is the group Administrators.
For more information, you can try getfacl(Cygwin) and/or [i]cacls(native).

> I looked in the FAQ, Documentation, Google (both cygwin and emacs).

> This causes problems for remote activities via ssh.  I cannot operate
> on these files, unless I
> do a chown to my user id.  But this then changes some of the
> permissions as well.

If you mean cygwin SSH, you can try mounting the respective part of your system
with noacl flag, relinquishing access control back to the OS.

> And this can then lead to problems down the line if not done carefully - me
> and my sysadmin I learned the hard way :-)

Indeed.


-- 
With best regards,
Andrey Repin
Friday, April 3, 2015 17:22:10

Sorry for my terrible english...


--
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] 2+ messages in thread

end of thread, other threads:[~2015-04-03 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-03 14:03 Why does cl -l returns "Administrators" as owner? Mirko Vukovic
2015-04-03 14:35 ` Andrey Repin

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