This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can cygwin bypass windows file permissions?

On Dec  3 14:54, wrote:
> 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

Cygwin opens files with the FILE_OPEN_FOR_BACKUP_INTENT flag, so you get
root-like file access privileges if you're working under an admin account.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]