how to deny delete

Tue Apr 24 08:24:00 GMT 2012

unfortunately, the options u pointed and what andrey pointed arent possible.
In line with the locking file or directory any commands or API are
available? Any tips on implementing it would be helpful.


Corinna Vinschen-2 wrote:
> 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
> folder.
> Corinna
> -- 
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader          cygwin AT cygwin DOT com
> Red Hat
> --
> Problem reports:
> FAQ:         
> Documentation:
> Unsubscribe info:

View this message in context:
Sent from the Cygwin list mailing list archive at

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list