delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/09/00:01:05

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.6 required=5.0 tests=AWL,BAYES_00,BOTNET
X-Spam-Check-By: sourceware.org
Message-id: <4B70EBDE.3070703@cygwin.com>
Date: Tue, 09 Feb 2010 00:00:14 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: MoveFileW succeeding with cygwin 1.7.1 where it failed with cygwin 1.5.25?
References: <8DC676DEED33454A9B5D962E4CB26638 AT pleaset> <D092A0E060814446B4665EB0A6FBEDC3 AT pleaset>
In-reply-to: <D092A0E060814446B4665EB0A6FBEDC3@pleaset>
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

On 02/08/2010 11:48 PM, David Byron wrote:
> On 8-feb-10 David Byron wrote:
>
>> I've found a difference in behavior between cygwin 1.5.25
>> and cygwin 1.7.1 that I don't understand.  Renaming a file
>> using MoveFileW fails with access denied under cygwin
>> 1.5.25 as expected, but it works under 1.7.
>
> I figured out the difference.  My executable that calls MoveFileW spawned by
> the version of bash I've got in my cygwin 1.7.1 installation has
> SeDebugPrivilege and SeBackupPrivilege enabled.  With the version of bash
> I've got in my cygwin 1.5.25 installation those privileges are disabled.

So your user must be part of the administrators group then.  Adminstrators
have access even when permissions are set to deny them, just like on
Linux.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

- Raw text -


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