delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/10/05/00:41:45

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=ClhuNKRbeaBF9gkp
E1rJ51sLwowAPMJeDtAls8WjoV9fuKrhfpz5E0rNL+JJXEHaEhlOk5fHzEgei8lZ
UEIzwNdWDcNN3k5sjLVI+N/DULIpc0Z8UMppROJIeX9PGHt8ETaSz2d0zmVj7ygE
grRNA1p2LY0ldaAOzzYecsxskkM=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=bT4c++jDUHNeJKDhoBcBRd
OTrXQ=; b=uXS3ZBNmErGcgvlnHMBVF7fbYS8GAyLv0Ovv5RkWmYQHZZB0SpZ2Mv
5EjZ8mJ+URfcxEffJdLHrhZQ+Ak0+RAa0yle9XtPpFSBHd2HG55cAiMPkFshLpAR
kteiMVbNoHayf5wKpnCgmlVJOv2wokjqy0SlrmaI8/zuPqFWr6Eqs=
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.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Mitch, Deoudes, deoudes, H*f:sk:57F4822
X-HELO: mail-wm0-f54.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=yOVDPrLZEHMUK+hQpjqer1YuNAKxHlzXnmUkAPWveRk=; b=dEhEKtzX2DrVU+D5yyM+u4f63URqJGpzQoJ5i0dpNuuLB17c1m52Trspu1jMNKt+qZ mIzFbTzhBw0go4GRdwsNW+0WzMvR4UJXjUQKGVEjozaoh7ttL1EXMd2KDrTABzgNpoPL nwE174/zEw0sGtrIDYf11l0KNVkyUDH3be3K4H3NCkIpUhmijAYJ+4Qeo0M4fBM0Mg/j oGFu2Qi3tBcPEcwocYto4pP1hNzNLqh2kh53f7YyeX8N+q572qqzUE5Tx/Atn7p1snzX rG5/PFqKg3YGF0KQC6yP01+KiimElyWI8/wDw1Zuxq/VQaxEy6RfkGKW6l50k3M/B79R p+6A==
X-Gm-Message-State: AA6/9Rm9jYMvHYsBHu6S9NFRhWeQZKf2jmnQH6EwqWW2l53Jhzb54HfSk5lQNtsqaVQIKg==
X-Received: by 10.194.120.37 with SMTP id kz5mr5620012wjb.196.1475642439557; Tue, 04 Oct 2016 21:40:39 -0700 (PDT)
Subject: Re: crazy default permissions
To: cygwin AT cygwin DOT com
References: <57F48222 DOT 1030605 AT houseofpain DOT org>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <3ead440c-089b-f83c-3ebf-9a4c37c09290@gmail.com>
Date: Wed, 5 Oct 2016 06:40:24 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
MIME-Version: 1.0
In-Reply-To: <57F48222.1030605@houseofpain.org>
X-IsSubscribed: yes

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 AT calculonjr ~/src/etc/rsync
> $ umask
> 0022
>
> mitch AT calculonjr ~/src/etc/rsync
> $ mkdir baz
>
> mitch AT 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 AT calculonjr ~/src/etc/rsync
> $ mkdir baz/bob
>
> mitch AT 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 AT calculonjr ~/src/etc/rsync
> $ mkdir baz/bob/foo
>
> mitch AT 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 AT 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

- Raw text -


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