From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101859 invoked by alias); 5 Oct 2016 04:31:49 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 101837 invoked by uid 89); 5 Oct 2016 04:31:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=mitch, guesses, brand, Hx-spam-relays-external:ESMTPA X-HELO: bumble.birch.relay.mailchannels.net Received: from bumble.birch.relay.mailchannels.net (HELO bumble.birch.relay.mailchannels.net) (23.83.209.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Oct 2016 04:31:46 +0000 X-Sender-Id: wwwh|x-authuser|mitch@houseofpain.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2C7AA1BC225 for ; Wed, 5 Oct 2016 04:31:39 +0000 (UTC) Received: from uscentral400.accountservergroup.com (ip-10-107-69-155.us-west-2.compute.internal [10.107.69.155]) by relay.mailchannels.net (Postfix) with ESMTPA id 40AF91BC0B6 for ; Wed, 5 Oct 2016 04:31:38 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|mitch@houseofpain.org Received: from uscentral400.accountservergroup.com (uscentral400.accountservergroup.com [10.16.27.41]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.7.8); Wed, 05 Oct 2016 04:31:38 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|mitch@houseofpain.org X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1475641898451:1187411010 X-MC-Ingress-Time: 1475641898451 Received: from ool-2f141e68.dyn.optonline.net ([47.20.30.104]:5215 helo=[127.0.0.1]) by uscentral400.accountservergroup.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1brdrl-00016R-Dc for cygwin@cygwin.com; Wed, 05 Oct 2016 00:31:37 -0400 To: cygwin@cygwin.com From: Mitch Deoudes Subject: crazy default permissions Message-ID: <57F48222.1030605@houseofpain.org> Date: Wed, 05 Oct 2016 04:41:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-AuthUser: mitch@houseofpain.org X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00059.txt.bz2 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 -- 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