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 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Cygwin Subject: Reading what should not! Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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