This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin potentially corrupting permissions?
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Greg Freemyer <greg dot freemyer at gmail dot com>, cygwin at cygwin dot com
- Date: Thu, 24 Sep 2015 21:37:56 +0300
- Subject: Re: cygwin potentially corrupting permissions?
- Authentication-results: sourceware.org; auth=none
- 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>
- Reply-to: cygwin at cygwin dot com
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