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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; q=dns; s=default; b=yHv6CPNkwXzXwEf2Db4T8WGXJ9V3wYixfZj4thaRtZP 8KBF/EG/yMFpbvHt76HWrTqPBwBK4/7ry7dJ2xDT1Gg7nW+cXApk53yHLks8gA5O 53BOKKJPxjlOy5nE8+GB0ro2ETqkbFnjaNzw16h9pDjkUFcBeF4UsFghGIJl+sDg = 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; s=default; bh=Wh0EcNhsqfjoPoadu4A0GyrBUtM=; b=Zbpi7GVw8OkZ1tyqS k/gBGUds86IrEwef380OIwzRbeDO5jL4S6AREEO0MgPAAuBFll6qf7+6vnAQf/BE hmbX6/hnvmHdvxwS5Mpzf1KqW0VddXPHMAMuVxCwehVF+/vAdPaOyI8si6zc11IR hDP3E87veyGfLjiqHZZKhDGWF8= 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=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f173.google.com X-Received: by 10.129.22.213 with SMTP id 204mr14218667yww.78.1446831055611; Fri, 06 Nov 2015 09:30:55 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20151106084841.GB23299@calimero.vinschen.de> References: <87pozpwrao DOT fsf AT Rainer DOT invalid> <87bnb9wk11 DOT fsf AT Rainer DOT invalid> <877flxwj6z DOT fsf AT Rainer DOT invalid> <20151105092448 DOT GC18221 AT calimero DOT vinschen DOT de> <20151105175546 DOT GB20857 AT calimero DOT vinschen DOT de> <20151105175844 DOT GC20857 AT calimero DOT vinschen DOT de> <87611gl0gk DOT fsf AT Rainer DOT invalid> <20151106084841 DOT GB23299 AT calimero DOT vinschen DOT de> From: Jan Bruun Andersen Date: Fri, 6 Nov 2015 18:30:16 +0100 Message-ID: Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.3.0-0.6 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tA6HV8XR031323 You were correct Corinna. It was indeed the administrators group that was the owner. Windows security is perplexing to an old Unix-hand like me. I guess something in the process of migrating and restoring my home directory from another PC made the admin group the owner instead of me. Luckily I have found this TAKEOWN utility which seems to fix the issue. On 6 November 2015 at 09:48, Corinna Vinschen wrote: > On Nov 6 01:27, Jan Bruun Andersen wrote: >> I am not sure if this DLL snapshot (cygwin1-20151105-dll) is supposed >> to fix stuff like this, but I think I remember something about >> ordering ACL's? > > It's explained in the announcement. > >> Anyway I have this 'bin' directory in my home which shows up with >> 'Administratörer' (Swedish for Administrators) as the owner. I had >> hoped it would should me as the owner. > > Well, that's not what the DLL is supposed to do. The idea of the ACL > code is not to fake wrong ownership, it tries to evaluate POSIX ACLs as > correctly as possible given the underlying Windows ACL. > > In your case the owner of the dir *is* the administrators group, > otherwise Cygwin wouldn't show that. If you want to be owner you have > to make yourself actually owner, either in the Windows file security > tab, or by using Cygwin's chown as Admin. > >> Some output: >> >> jabba AT Luap ~ >> $ ls -ld bin >> drwxrwx---+ 1 Administratörer jabba 0 Oct 29 15:42 bin >> >> jabba AT Luap ~ >> $ getfacl bin >> # file: bin >> # owner: Administratörer >> # group: jabba >> user::rwx >> group::rwx >> group:SYSTEM:rwx >> mask:rwx >> other:--- >> default:user::rwx >> default:group::rwx >> default:group:SYSTEM:rwx >> default:group:jabba:rwx >> default:mask:rwx >> default:other:--- >> >> >> jabba AT Luap ~ >> $ icacls bin >> bin NT instans\SYSTEM:(OI)(CI)(F) >> BUILTIN\Administrat▒rer:(OI)(CI)(F) >> LUAP\jabba:(OI)(CI)(F) > > Note that the output of icacls does not tell you anything about > ownership. The ACL does not contain this information. For all we know > from this icacls output, the owner of the above ACL could be the "Guest" > user. > > > Corinna > > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Maintainer cygwin AT cygwin DOT com > Red Hat -- 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