delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/13/19:11:06

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT 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 AT cygwin DOT com
Subject: Re: Reading what should not!
References: <4AACFBE6 DOT 10100 AT alice DOT it>
In-Reply-To: <4AACFBE6.10100@alice.it>
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019