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: how to deny delete


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.

regards
pen

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:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/how-to-deny-delete-tp33732027p33738191.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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


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