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:reply-to:subject:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=dnP6RL9qNvdsBhdX KshHkwNjpLM7IhM6ObbXIp3fd3X9+ZmO7MtXHsiUCMve2nsBfo8eAP5AbG3surj0 AkOpdzA+lHrE8ARr9GrsqeTiJXSN+MJnMBG/hqy5xIiLuYBGXc8HSocDoOidax5R qWXG3wrFrrNIT+/ZzyXj5GCsBhk= 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:reply-to:subject:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=tsbOQppaaVfUKsiPEi7gYR pbGh8=; b=yqlNrHxqQxFTZz0BIZ73NOY0HxFm9Y/0mYIdm0uple27eAp8+Ay7EO wVFshJ2/nGLCXw3acZY71risagq/z2ckAxvPkkv3MHOdwGIV8x+dYkxWNFzw2aAh 1tBHieCMAdEEP/ls0yhNvoq13tZAl6g+5/xrd6z2aJOunfrA+VQSM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=creat, Moss!, moss!, Hx-languages-length:999 X-HELO: csmail.cs.umass.edu Reply-To: moss AT cs DOT umass DOT edu Subject: Re: Permissions change concern References: <5712F224 DOT 7070308 AT cs DOT umass DOT edu> <20160418101803 DOT GM24565 AT calimero DOT vinschen DOT de> <5714DDA9 DOT 3030002 AT cs DOT umass DOT edu> <1783109831 DOT 20160418165356 AT yandex DOT ru> To: cygwin AT cygwin DOT com From: Eliot Moss Message-ID: <5714FF94.7000009@cs.umass.edu> Date: Mon, 18 Apr 2016 11:39:00 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1783109831.20160418165356@yandex.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 4/18/2016 9:53 AM, Andrey Repin wrote: > Greetings, Eliot Moss! > >> 1) If a directory says: > >> default:users::rwx >> default:group::rwx >> default:other:r-x > >> and my umask is 022 > >> when I create a new file by "echo test > foo.bar", foo.bar's >> perms are 644, not the 755 I would expect. > > Why? I'm totally expecting 644 on a FILE. > +x never set by default for files. Ok, I concede this one, since it works as you describe on a RedHat Linux system. The mode used in the open/creat call reduces the permissions. >> 2) If the directory has g+s set (visible from -s- in the flags shown >> by getfacl), the directory's group is Cygwin, and my primary group is moss, >> then the file gets created with group moss, not group Cygwin (which is >> what g+s is supposed to mean, right?) > > If "Cygwin" group is part of your token, I would expect Cygwin too, in this > case. Yes, it is part of the token, and is listed by the 'groups' command. Regards -- EM -- 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