delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/24/14:50:39

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=QndSXiRRkmvlYxlQ
NkfNlIXe7QgLwk6X4zKrtEXaVBnWDkB8hLshhHRhBr6E2eM6016fEDS6pmONBh7v
sQGk8eQ2hye/dd8uLT4A4qFr/vtlqLaASR2CqDLA9FZHTuyazn11c2tfHESAZPLU
NO8d0989x1kjxXXgjLfdY6YizUU=
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=gt+JRYlKIZWVVSlq1DAynC
rFmMY=; b=SF0U3M6oEvWDdJ7xoUhtNyjr0w7fW/ia3Pxq0e4vcmc12XSEHX/Ztp
uZGTRXbFzTCci/zmhc6RYIBmM0ZH7M1LR/ZuRVWQ5ddezV4q85W+PLEk+8GzvfV4
7ySK7z7NAef04jdbUpuWpDb4e0KMK8uF/DLkAhGHIzY35kUBJlohw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=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
Date: Thu, 24 Sep 2015 21:37:56 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <466149660.20150924213756@yandex.ru>
To: Greg Freemyer <greg DOT freemyer AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: cygwin potentially corrupting permissions?
In-Reply-To: <CAGpXXZJeWs33BJi7qROduZEhTx1pXXXseTbfXu+QP8+cf_r5hQ@mail.gmail.com>
References: <CAGpXXZKUQtAbrQ80VDHZhy0aZtzG+5fDB7bcYz-kwQ3Kgx6ueQ AT mail DOT gmail DOT com> <560366EE DOT 5020207 AT tlinx DOT org> <CAGpXXZJeWs33BJi7qROduZEhTx1pXXXseTbfXu+QP8+cf_r5hQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019