delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/12/03/09:00:40

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: wrbach AT freenet DOT de
Subject: Can cygwin bypass windows file permissions?
X-Abuse: 304623294 / unknown, unknown
User-Agent: freenetMail
MIME-Version: 1.0
Message-Id: <E1IzBkc-0001ii-Nz@www11.emo.freenet-rz.de>
Date: Mon, 03 Dec 2007 14:54:22 +0100
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id lB3E0O17024837

Hello!

I have made a file test.txt in d:temp and removed all Windows permissions from it.
Consequently, I cannot access the file from Windows Explorer or cmd.exe.

However, if I try the following from a cygwin bash I get the contents of the file
$cat /cygdrive/d/temp/test.txt

How can cygwin bypass the windows file permissions, if I have even removed SYSTEM from the Acl:
$ ls -l test.txt
---------- 1 Administratoren SYSTEM 3058 May  4  2006 test.txt

$ getfacl.exe test.txt
# file: test.txt
# owner: Administratoren
# group: SYSTEM
user::---
group::---
mask:rwx
other:---

$ cacls test.txt
d:temptest.txt

Best regards,
Rainer










--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


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