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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=H6XCFqrP1sfyrgob ogTkjmS6OYITIBVqR3t29v0bN3QJ0/3IPoC6pmRf4tcH3fz9H0XLhVpXjgufKVUP PMEzfoe2UIZwZmRp2080JMxmuIQrkT3tak79vBs8VWz+uwknAYhbpTC5ueQs7f0Q hewNSKz+DqXrpp5TIxjAkkTFKKc= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=7F7coz9/SaoAIKjGTsoKJO 2uCWk=; b=SrZl76aD/OfLPDeRci+zgC8rc9yGcemjRPYqlrul/TKO8kDOjJYnSA Yo9R6q0hg3ch1TjfMKD9IF21GIt4OyS9Wr4qwivlt6wcqDXIqRE1MDwYZis5Gm/0 9eWtvYJW7s/xt1TAuBixvnpksDNQUDfzlpVzVMX0Tj5uP5lsIeTos= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*M:yandex, H*F:D*yandex.ru X-HELO: forward3o.cmail.yandex.net Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0 Date: Tue, 5 Jul 2016 17:54:46 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <277009025.20160705175446@yandex.ru> To: Corinna Vinschen , cygwin AT cygwin DOT com Subject: Re: Repairing permissions after windows reinstall In-Reply-To: <20160704095501.GD13445@calimero.vinschen.de> References: <57291758 DOT 20160701090000 AT yandex DOT ru> <383093230 DOT 20160704062725 AT yandex DOT ru> <20160704095501 DOT GD13445 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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