From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115379 invoked by alias); 24 Sep 2015 18:50:24 -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 115371 invoked by uid 89); 24 Sep 2015 18:50:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.2 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 Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 24 Sep 2015 18:50:23 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1ZfBaz-00086Y-VX ; Thu, 24 Sep 2015 21:50:18 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 24 Sep 2015 18:37:56 -0000 Date: Thu, 24 Sep 2015 18:50:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <466149660.20150924213756@yandex.ru> To: Greg Freemyer , cygwin@cygwin.com Subject: Re: cygwin potentially corrupting permissions? In-Reply-To: References: <560366EE.5020207@tlinx.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00426.txt.bz2 Greetings, Greg Freemyer! > We seem to travel the same mailing lists. This is my first time to cygwin's. > I saved your script as "lsacl.txt". Then I used "cp lsacl.txt it" to > make a copy. > The copy is permission denied for reading. Basic ls -l shows no > difference (as expected) > $ ls -l lsacl.sh it > ----rwx---+ 1 gaf None 1630 Sep 24 12:05 it > ----rwx---+ 1 gaf None 1630 Sep 24 12:00 lsacl.sh Notice the "+" at the end of basic POSIX access bits. And use getfacl (or native icacl(s)) to view real permissions. > But your script does show a difference: > $ ./lsacl.sh lsacl.sh it > [u::---,g::---,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/] lsacl.sh > [u::---,g::r-x,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/] it > My user id is "gaf". > fyi: I thought I knew how to read an ACL, but the above makes little > sense to me. Note I can cat out "lsacl.sh", but I can't cat out "it". Your system seems to be mangled. There should be no "root" user. Also, please avoid top posting as per list rules. -- With best regards, Andrey Repin Thursday, September 24, 2015 21:35:24 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