delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/31/04:38:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47F0B0EC.5000702@wpkg.org>
Date: Mon, 31 Mar 2008 11:37:48 +0200
From: Tomasz Chmielewski <mangoo AT wpkg DOT org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061110 Mandriva/1.5.0.8-1mdv2007.1 (2007.1) Thunderbird/1.5.0.8 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: using Windows backup API?
X-IsSubscribed: yes
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

Traditionally, in UNIX, a root user can access any file in the system 
without doing anything special.

This contrasts with Windows, where even Administrator user can't read 
files for which he has not access permissions (i.e., a file with all 
permissions removed)[1].

To access such files in Windows, one needs to use a special Backup API.


However, ported UNIX tools, like rsync, are not aware of this API (and I 
doubt they ever will) - this results in that they can't access certain 
files, even if the tool is started by the Administrator user:

C:\rsyncd\rsync.exe 1.txt copy.txt
rsync: send_files failed to open "/cygdrive/c/test/1.txt": Permission 
denied (13)


Is it somehow possible to use this Windows Backup API transparently for 
applications using Cygwin dll?



[1] This is something else as files opened exclusively, like Windows 
registry files, which can be accessed by using shadow copy



-- 
Tomasz Chmielewski
http://wpkg.org

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