public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: crazy default permissions
Date: Wed, 05 Oct 2016 05:26:00 -0000	[thread overview]
Message-ID: <3ead440c-089b-f83c-3ebf-9a4c37c09290@gmail.com> (raw)
In-Reply-To: <57F48222.1030605@houseofpain.org>

On 05/10/2016 06:31, Mitch Deoudes wrote:
> mkdir has suddenly started creating directories with strange
> permissions.  As far as I can tell, it's related to making directories
> nested inside other directories that were also created within cygwin.
> As you create deeper and deeper nestings, the perms get more and more
> screwed up.  It starts at the second level deep, with the setuid flag,
> and eventually gets to the point where you're making directories that
> don't even have user read/write.
>
> I tried this on a brand new installation of the latest cygwin64, with no
> modifications, as of just now:
>
> mitch@calculonjr ~/src/etc/rsync
> $ umask
> 0022
>
> mitch@calculonjr ~/src/etc/rsync
> $ mkdir baz
>
> mitch@calculonjr ~/src/etc/rsync
> $ ls -ld baz
> drwxrwxr-x+ 1 mitch None 0 Oct  5 00:11 baz    <--- first dir looks
> reasonable (but doesn't match umask)
>
> mitch@calculonjr ~/src/etc/rsync
> $ mkdir baz/bob
>
> mitch@calculonjr ~/src/etc/rsync
> $ ls -l baz
> total 0
> drwsrwsr-t+ 1 mitch None 0 Oct  5 00:11 bob    <--- second dir is weird
>
> mitch@calculonjr ~/src/etc/rsync
> $ mkdir baz/bob/foo
>
> mitch@calculonjr ~/src/etc/rsync
> $ ls -l baz/bob/
> total 0
> d--Srws--T+ 1 mitch None 0 Oct  5 00:12 foo   <--- third dir doesn't
> even have user read/write
>
> mitch@calculonjr ~/src/etc/rsync
> $ mkdir baz/bob/foo/blob
> mkdir: cannot create directory `baz/bob/foo/blob': Permission denied
>
>
> Any guesses what might be causing this?  I'm pretty sure this was
> working as of my last update, which was probably several months ago.
>
> mitch
>
>

where is your home ?

$ cygpath -u ~
/home/marco

and what are its ACLS ?

$ cacls $(cygpath -w ~)
E:\cygwin64\home\marco MATZERI\marco:F
                        BUILTIN\Administrators:R
                        Everyone:R
                        CREATOR OWNER:(OI)(CI)(IO)F
                        CREATOR GROUP:(OI)(CI)(IO)R
                        Everyone:(OI)(CI)(IO)R



--
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:[~2016-10-05  4:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-05  4:41 Mitch Deoudes
2016-10-05  5:26 ` Marco Atzeri [this message]
2016-10-05  9:57   ` Mitch Deoudes

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=3ead440c-089b-f83c-3ebf-9a4c37c09290@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    /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).