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: MoveFileW succeeding with cygwin 1.7.1 where it failed with cygwin 1.5.25?

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                    
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:
Unsubscribe info:

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