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


The problem i have is - no new user be created but i'm also administrator.
I want to restrict some folders from being moved(or even touched).
appreciate your hints help.

regards
pen


pen wrote:
> 
> How about locking the vnode or inode of directory? i did not find any such
> reference but i believe it must be doable.
> 
> 
> Larry Hall (Cygwin-X) wrote:
>> 
>> On 4/24/2012 1:01 PM, Corinna Vinschen wrote:
>>> On Apr 24 12:57, Larry Hall (Cygwin) wrote:
>>>> On 4/24/2012 4:24 AM, pen wrote:
>>>>>
>>>>> 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.
>>>>
>>>> Windows will allow you to manage just the delete permission.  If you
>>>> need
>>>> that level of control, check out 'icacls'.  Something like the
>>>> following
>>>> may work for you:
>>>>
>>>>    icacls<filename>  /deny<user or SID>:D
>>>
>>> Doesn't help in Cygwin if the user is admin.  Think SE_BACKUP_PRIVILEGE.
>> 
>> Ah yes.  And the OP said dropping this privilege for the user was a
>> non-starter for some reason.  OK, I'm out of ideas.
>> 
>> -- 
>> Larry
>> 
>> _____________________________________________________________________
>> 
>> 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:       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-tp33732027p33763249.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]