delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/07/04:03:36

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=eHGktPFA9zDg6JIvr63W9fW5Ye0HmrSJP7FSM52IvXl
KCiVgUuO9auNmIbGi7CgkGRjDy0eSwoJ1OL4d/yQnkTPHwUT5PoWy2Ti4WoIEad0
RmZnlZliXfuGqVc8Bk+2UUAprxG+J45QASzfpoKiSyDdsFB6k7JgoySNoToeE2Fw
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=xDUltN6QN0iGnHeiZRFjQZ5octk=; b=Yj9F6gQeSF3xnwX2R
92w8jGvX9UNhB0jB5QAIqndx5uY0/uNauKcD5lbUhmd2rQ6so/Fc5b/Rjkerf+hg
pxzWpLeBoxvzP0/K8RlpAa/bci+XWEI4DIli2WIOQrIFrfKMoWUmJh2FYP/qPK4/
r9r7fey5gOPc55Fscf8tn/h5/M=
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=0.8 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: mout.kundenserver.de
Message-ID: <54FABECF.3070701@towo.net>
Date: Sat, 07 Mar 2015 10:03:11 +0100
From: Thomas Wolff <towo AT towo DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 1.7.35-1
References: <announce DOT 20150304112636 DOT GI3213 AT calimero DOT vinschen DOT de> <loom DOT 20150306T134526-167 AT post DOT gmane DOT org>
In-Reply-To: <loom.20150306T134526-167@post.gmane.org>
X-TagToolbar-Keys: D20150307100311458
X-UI-Out-Filterresults: notjunk:1;
X-IsSubscribed: yes

Am 06.03.2015 um 13:51 schrieb Achim Gratz:
> Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
>> - Change handling of group permissions if owner SID == group SID.  Now the
>>    group permissions don't mirror the user permissions anymore, thus leading
>>    to less hassle with security-conscious applications.
> There's another tricky situation that is not yet handled:
>
> If the file is owned by myself and I'm in a group that allows full access
> (but not ACL modifications), Cygwin will show that file as having mode
> "---rwx---+".  Applications that follow POSIX semantics will interpret that
> file as unreadable by the owner (==current user) and skip checking the group
> permissions, while NTFS will still happily grant that access.
This may happen on Linux as well. Just tested on a NAS runnig Debian, in 
a "share" partition:
echo bla > x
chmod -rw x
ls -l x
---------- 1 towo share 4 Mar  7 09:59 x
cat x
bla

The same file mounted on Windows and handled by cygwin is also readable.

> So in that situation the group permissions need to be promoted to the owner permissions.
I see no need to be more posixly here than other POSIX systems.
------
Thomas

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