how to deny delete

Corinna Vinschen
Mon Apr 23 11:52:00 GMT 2012

On Apr 23 02:23, pen wrote:
> I've noticed that on windows 7, even if we protect a folder by selecting
> "delete - Deny" in permissions, cygwin doesn't care and it allows to
> continue with rm. I think this is not good. I can think of other ways like
> creating a lock file in my scripts but that wont be a clean way. Isn't there
> any way that i can set some level of protection in NTFS without too much of
> fuss. I need to write to files and folder underneath but only want to deny
> delete permission on that top folder.

If the user is neither the owner of the dir, nor an admin, and if the
permissions are set to 0700, the user won't be able to delete the


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

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list