delorie.com/archives/browse.cgi | search |
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; q=dns; s=default; b=Lq03bFb | |
Un1J+b8W/ABFczaoM3e4/vXnEPMkBwA4yD+6G62INAZwFd3RiraFIuPme8Qq3XUb | |
nOtedgQOkKiSt2XQi2cgvmZa4OFRGpF14ewkH2nXOWi4JIJFC8TTUDolmyQ9r7N9 | |
6OUqQdFwRSHtHYJhR4VidczOWLyuJFH6PI1g= | |
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; s=default; bh=hoFSBnwgzqBmb | |
u4Sucp7HkHVWQo=; b=F2O+9I93qIteCbn8yryzftwFy1xSGBoqcd9li94Dy7nD7 | |
sYAlRejAUsokST7i5bvDY0F21iQ3eCmjqkjaj49tD5VzlRuFVGhUQRX/4Fu1gP2M | |
xiSdtnt65+ZC3pIZJPTalRuFAGD0V1GUBwQ7exkv6bBKYuDBRKAnJhzPRWTx2Q= | |
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=-1.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-la0-f53.google.com |
X-Received: | by 10.112.234.199 with SMTP id ug7mr852232lbc.116.1443148254570; Thu, 24 Sep 2015 19:30:54 -0700 (PDT) |
MIME-Version: | 1.0 |
In-Reply-To: | <466149660.20150924213756@yandex.ru> |
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> <466149660 DOT 20150924213756 AT yandex DOT ru> |
From: | Greg Freemyer <greg DOT freemyer AT gmail DOT com> |
Date: | Thu, 24 Sep 2015 22:30:14 -0400 |
Message-ID: | <CAGpXXZ+RpyQ=1PeBNNAtEXTqWpP=JPPvfgrV=URqeEyoVyD95g@mail.gmail.com> |
Subject: | Re: cygwin potentially corrupting permissions? |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
On Thu, Sep 24, 2015 at 2:37 PM, Andrey Repin <anrdaemon AT yandex DOT ru> wrote: > 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. I'm using Linda' script that does that, but here's the raw getfacl output for 2 folders created in C:\ Note they have very different ACLs. Why? $ getfacl /cygdrive/c/Test-dir-created-in-cygwin/ # file: /cygdrive/c/Test-dir-created-in-cygwin/ # owner: GAF # group: None user::rwx group::r-x group:root:rwx group:Authenticated Users:rwx group:SYSTEM:rwx group:Users:r-x mask:rwx other:r-x default:user::rwx default:group::r-x default:group:root:rwx default:group:Authenticated Users:rwx default:group:SYSTEM:rwx default:group:Users:r-x default:mask:rwx default:other:r-x $ getfacl /cygdrive/c/Test-dir-created-in-file-explorer/ # file: /cygdrive/c/Test-dir-created-in-file-explorer/ # owner: GAF # group: None user::--- group::--- group:root:rwx group:Authenticated Users:rwx group:SYSTEM:rwx group:Users:r-x mask:rwx other:--- default:user::--- default:group::--- default:group:root:rwx default:group:Authenticated Users:rwx default:group:SYSTEM:rwx default:group:Users:r-x default:mask:rwx default:other:--- That last one with the directory created via file explorer has truly bizarre (to me) ACLs. Normal? If not, how do I fix it. Note I have 2 different Win 7 boxes showing this same behavior. > >> 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. hmm..... I think that is a "root" group, not a "root" user. I seriously doubt I created a root as a group. Are you sure that isn't standard with cygwin? note: I love using cygwin, but I'm not very knowledgeable about user and group management in cygwin. On the other hand, I'm pretty good at it in Linux. (I'm a 30+ year UNIX/Linux user) > Also, please avoid top posting as per list rules. If I did, I will try to avoid it in the future. This e-mail is interspersed. I assume that is desired. Greg -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |