X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4AACFBE6.10100@alice.it>
Date: Sun, 13 Sep 2009 16:04:22 +0200
From: Angelo Graziosi <angelo.graziosi@alice.it>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Cygwin <cygwin@cygwin.com>
Subject: Reading what should not!
Content-Type: text/plain; charset=ISO-8859-15; 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

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


Cheers,
Angelo.

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

