public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Greg Freemyer <greg.freemyer@gmail.com>
To: Linda Walsh <cygwin@tlinx.org>
Cc: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: cygwin potentially corrupting permissions?
Date: Fri, 25 Sep 2015 02:18:00 -0000	[thread overview]
Message-ID: <CAGpXXZLO_1MQFj3mNO6RubqHLLnh=9G2RDV=PQB0rM2aQP2GqA@mail.gmail.com> (raw)
In-Reply-To: <56044EBD.8090904@tlinx.org>

On Thu, Sep 24, 2015 at 3:27 PM, Linda Walsh <cygwin@tlinx.org> wrote:
> Greg Freemyer wrote:
>>
>>
>> Totally logical, but not accurate. )
>
> ---
>         What does it say if you do an 'lsacl' on "." (the parent directory).

$ ./lsacl.sh .
[u::---,g::---,g:root:rwx,g:Authenticated
Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/u::---,g::---,g:root:rwx,g:Authenticated
Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---] .

But maybe this is interesting.  I just created 2 folders in C:\   .  I
did it at the C:\ level because I can't imagine I ever modified the
ACLs on C:\.

Anyway, one directory was created via "mkdir" in cygwin.  The other
via the file explorer.  Look at how different the ACLs are:

$ mkdir /cygdrive/c/Test-dir-created-in-cygwin

$ ./lsacl.sh /cygdrive/c/Test-dir-created-in-cygwin/
[u::rwx,g::r-x,g:root:rwx,g:Authenticated
Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:r-x/u::rwx,g::r-x,g:root:rwx,g:Authenticated
Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:r-x]
/cygdrive/c/Test-dir-created-in-cygwin/

$ ./lsacl.sh /cygdrive/c/Test-dir-created-in-file-explorer/
[u::---,g::---,g:root:rwx,g:Authenticated
Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/u::---,g::---,g:root:rwx,g:Authenticated
Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---]
/cygdrive/c/Test-dir-created-in-file-explorer/

What's that about?  Again I'm not expert at ACLs, but the ACLs on the
directory created via File Explorer look really strange to me.

>         This is a local file system?  NTFS?

Yes, C: drive. It's my local system drive on both computers and NTFS
on both machines.

> Do you have process hacker?  Maybe the writing process has a different
> integrity label or such.

No, but let me know if you still want me to pursue that.  For now I'm
thinking the ACLs on folders created via File Explorer are somehow
getting screwed up.

Thanks
Greg

> Process hacker lets you see what the integrity labels are on files,
> but to see what they are on files you'd have to d/l another util.
> (chml/regil
>
>>
>> - cygwin is not properly maintaining the permissions when it manipulates a
>> file
>
> ----
>         May not be able to ... Windows trumps cygwin.
> MS-regularly screws w/windows, .. it's like switching to a new
> init system every month... ok.. maybe not quite that bad...
>
>>
>> Either way, I would really like a solution that doesn't involve a
>> manual chmod for every file I create via the normal Windows interface
>> and which I want to work with it in cygwin.
>
> ===
>         I can understand that -- that's sorta why I haven't upgraded
> my cygwin lately -- She spent alot of time solving a problem that didn't
> really appear on my system, so changing the whole security system -- well
> I already know that cygwin doesn't respect existing standards or sources.
> (overwrite windows mount points created -- and is shipping a login that
> zeros your environment -- even when passed switch to not do so --
> effectively
> wipes your windows session -- forcing users to copy sessions from static
> files to get around the problem.
>

--
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

  reply	other threads:[~2015-09-25  2:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23 22:58 Greg Freemyer
2015-09-24  2:59 ` Linda Walsh
2015-09-24 16:13   ` Greg Freemyer
2015-09-24 18:06     ` Linda Walsh
2015-09-24 18:53       ` Greg Freemyer
2015-09-24 19:22         ` Ken Brown
2015-09-25  2:39           ` Greg Freemyer
2015-09-24 19:28         ` Linda Walsh
2015-09-25  2:18           ` Greg Freemyer [this message]
2015-09-25  3:06             ` Linda Walsh
2015-09-24 18:50     ` Andrey Repin
2015-09-24 19:26       ` Linda Walsh
2015-09-25  1:50         ` Andrey Repin
2015-09-25  2:45           ` Greg Freemyer
2015-09-25  2:56           ` Linda Walsh
2015-09-25  8:35             ` Andrey Repin
2015-09-25  8:48               ` Linda Walsh
2015-09-25  2:31       ` Greg Freemyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGpXXZLO_1MQFj3mNO6RubqHLLnh=9G2RDV=PQB0rM2aQP2GqA@mail.gmail.com' \
    --to=greg.freemyer@gmail.com \
    --cc=cygwin@cygwin.com \
    --cc=cygwin@tlinx.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).