X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4AAD7BAB.7060301@cygwin.com>
Date: Sun, 13 Sep 2009 19:09:31 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Reading what should not!
References: <4AACFBE6.10100@alice.it>
In-Reply-To: <4AACFBE6.10100@alice.it>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 09/13/2009 10:04 AM, Angelo Graziosi wrote:
> Just a curiosity... (I have seen th following on Cygwin-1.7, but perhaps
> it happens also on 1.5)
>
> Suppose that there are two users: the administrator (root) and a simple
> user (pippo). Suppose that 'pippo' has a file 'foo.txt' with permissions:
>
> rw-------
>
> Why 'root' can read 'foo.txt'? For example with
>
> root@PC~
> $ less /home/pippo/foo.txt
>
> On GNU/Linux, the same command (or with 'sudo') asks for pippo's
> password! (Which looks right to me)
>
> Trying to read the same file as 'root', but with Windows applications
> (Notepad, for example), fails: one gets 'Access denied' (also if foo.txt
> is copied in the 'root' HOME or /tmp, as pippo's file rw-------). Even
> this looks right to me...

We've been through this before as recently as the last couple of weeks.
This is new behavior with 1.7 and it's there to mimic what one sees in
Linux.  I can't reproduce your reported results in Fedora 8.  For me, if I
am 'root', I can see the contents of 'foo.txt' just fine with the permissions
you have set on it.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

