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: "permission denied" issues when removing files/folders created by cygwin

On Sep  1 13:05, Michael Enright wrote:
> On Tue, Sep 1, 2015 at 12:48 PM, Roger Pack  wrote:
> > It appears the problem lies with creating a file named "NUL" windows
> > utilities just don't know how to deal with it (you can recreate it by
> > creating a folder, then from cygwin bash $ touch NUL) then try and
> > remove the folder with windows explorer.
> The utilities "know" how to deal with it, given their design:

And then there's

You can create and delete those files even in CMD, btw.  You just have
to use the long pathname prefix "\\?\", e.g.:

  bash$ cmd /c 'echo foo > \\?\c:\cygwin64\home\corinna\nul'
  bash$ ls -l nul
  -rwxr-xr-x 1 corinna vinschen 6 Sep  1 22:30 nul

delete with

  bash$ rm nul


  bash$ cmd /c 'del \\?\c:\cygwin64\home\corinna\nul'


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgplLSpMY55Hh.pgp
Description: PGP signature

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