www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 DOT graziosi AT alice DOT it> |
User-Agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
MIME-Version: | 1.0 |
To: | Cygwin <cygwin AT cygwin DOT com> |
Subject: | Reading what should not! |
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 |
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... 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |