Repairing permissions after windows reinstall

Andrey Repin anrdaemon@yandex.ru
Tue Jul 5 15:05:00 GMT 2016


Greetings, Corinna Vinschen!

> On Jul  4 06:27, Andrey Repin wrote:
>> Greetings, Henry S. Thompson!
>> 
>> > Andrey Repin writes:
>> 
>> >> Greetings, Henry S. Thompson!
>> >>
>> >>> Good news: My cygwin file tree survived a Windows (10) reinstall
>> >>> Not-so-good news: I have a new SID, so not only do I not own those files
>> >>> any more (that's easily fixed), but I don't have the permissions I
>> >>> should, because they are now held by some miscellaneous old SID.
>> >>
>> >> So, what? Go to top directory properties, Advanced, Owner tab, Change, and
>> >> change the owner to what is desired.
>> 
>> > Much to glib an answer.  Changing the owner is the _last_ thing you want
>> > to do after (programmatically) changing a bunch of ACLs.
>> 
>> Much like in POSIX, ACL and ownership are not directly dependent one on
>> another in Windows.

> Bzz.  POSIX ACLs maintain the concept of owner ACE and group ACE.  They
> *are* distinguished from the ACEs of other users and groups in an ACL.
> The fact that Windows ACLs don't do that is a real downside.  Not a bug
> per se, but ugly.

Yes, it's not a bug, it's a design decision. Windows permissions are explicit.
You can have a file owner with no associated permissions, it means that you
can change file permissions. You will not have access to the file, until you
do that. Even being the owner.
Though, Windows ACL do have concept of "owner" and "group" permissions, but
they are either inherited directory attributes, or immediately translated to
the current file owner upon commit.
And I like this approach much more, than POSIX implicit permissions.


-- 
With best regards,
Andrey Repin
Tuesday, July 5, 2016 17:37:44

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



More information about the Cygwin mailing list