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=m5RoVtKPMpqZWjNR t/Dr0FyhIZr9t7lQoTW44KHQEBQVpauD89TxQhGwdWS11GWBXhKoeMJPXK97xd5m 0EdrL+HSaialOVz2FeGyS84PSOK2c9YbCTeBV9x/I3wyDyqInJV5vMZ6W0HyvZPL +ZKi0wV/IYRvVCstynhffrdmfYo= 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=2pT+hctcdrCpXCjKZh1kV4 YPX6E=; b=FBp/u5zv+ndar0wKglGcJZhAEh/v5QtBpYwU7ybnr+eAg0cQeUcOjY HYmF7Vw6/ECXQtPigiqbKtrTLrP6tuDHT4sXVKOvFXvARrYhp5JFj6Mbf560NdEH pgnaF/BX1hu/GmKIv3UH6b4SfY3OXiLbp2k1PaLF2YA7zZY2r17Is= 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=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Fri, 3 Apr 2015 17:32:33 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1141484715.20150403173233@yandex.ru> To: Mirko Vukovic , cygwin AT cygwin DOT com Subject: Re: Why does cl -l returns "Administrators" as owner? In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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