From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31917 invoked by alias); 6 Nov 2015 17:30:59 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 31898 invoked by uid 89); 6 Nov 2015 17:30:58 -0000 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 Received: from mail-yk0-f173.google.com (HELO mail-yk0-f173.google.com) (209.85.160.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 06 Nov 2015 17:30:57 +0000 Received: by ykdr3 with SMTP id r3so191230723ykd.1 for ; Fri, 06 Nov 2015 09:30:55 -0800 (PST) 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 Received: by 10.129.123.131 with HTTP; Fri, 6 Nov 2015 09:30:16 -0800 (PST) In-Reply-To: <20151106084841.GB23299@calimero.vinschen.de> References: <87pozpwrao.fsf@Rainer.invalid> <87bnb9wk11.fsf@Rainer.invalid> <877flxwj6z.fsf@Rainer.invalid> <20151105092448.GC18221@calimero.vinschen.de> <20151105175546.GB20857@calimero.vinschen.de> <20151105175844.GC20857@calimero.vinschen.de> <87611gl0gk.fsf@Rainer.invalid> <20151106084841.GB23299@calimero.vinschen.de> From: Jan Bruun Andersen Date: Fri, 06 Nov 2015 17:30:00 -0000 Message-ID: Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.3.0-0.6 To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-11/txt/msg00132.txt.bz2 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 w= rote: > 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=C3=B6rer' (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@Luap ~ >> $ ls -ld bin >> drwxrwx---+ 1 Administrat=C3=B6rer jabba 0 Oct 29 15:42 bin >> >> jabba@Luap ~ >> $ getfacl bin >> # file: bin >> # owner: Administrat=C3=B6rer >> # 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@Luap ~ >> $ icacls bin >> bin NT instans\SYSTEM:(OI)(CI)(F) >> BUILTIN\Administrat=E2=96=92rer:(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