Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links


Prevent folder move and delete in 2003 Server

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 28-10-2009
cjg.groups
 
Posts: n/a
Prevent folder move and delete in 2003 Server

Sponsored Links
Hello. Can NTFS permissions prevent a user from moving or deleting a
folder in Windows 2003 Server? Please provide any adjustments to the
detailed example below.

My extensive testing has shown that:
When a user deletes a folder, the contents of that folder are deleted
first, THEN that folder's permissions are checked and obeyed. Giving
the user "deny Delete" permission on a folder prevents the folder from
being deleted AFTER its contents have been erased. A similar problem
happens when moving this folder.


Here is my test setup. I'm trying to prevent Subfolder B from being
deleted or moved. I'm allowing Users to create/delete/modify files
and folders within Subfolder B.

Parent folder A:
- Inheritance off
- Everyone has Deny Delete on "this folder and subfolders" with "Apply
to objects/containers within this container only" checked.
- Users have Allow "Read and Execute" on "this folder, subfolders,
files"

Subfolder B:
- Inheritance off
- Users have Deny Delete on "this folder only"
- Users have Allow "Read/Write/Execute" on "this folder only"
- Users have Allow Modify on "subfolders and files only"

"Parent folder A" is included because it contains many subfolders like
"Subfolder B" which need this protection. I see some inefficiency in
this which I'll try to fix.

When a user deletes Subfolder B, the files and folders it contains are
deleted, THEN the user is denied from deleting Subfolder B. How can
the folder AND its contents be protected from an attempt to delete the
folder, still allowing the user to modify the contents of the folder?
Thank you.

Reply With Quote
  #2  
Old 28-10-2009
cjg.groups
 
Posts: n/a
Re: Prevent folder move and delete in 2003 Server

On Oct 27, 4:54*pm, "cjg.groups" <cjg.gro...@gmail.com> wrote:
> Hello. *Can NTFS permissions prevent a user from moving or deleting a
> folder in Windows 2003 Server? *Please provide any adjustments to the
> detailed example below.
>
> My extensive testing has shown that:
> When a user deletes a folder, the contents of that folder are deleted
> first, THEN that folder's permissions are checked and obeyed. *Giving
> the user "deny Delete" permission on a folder prevents the folder from
> being deleted AFTER its contents have been erased. *A similar problem
> happens when moving this folder.
>
> Here is my test setup. *I'm trying to prevent Subfolder B from being
> deleted or moved. *I'm allowing Users to create/delete/modify files
> and folders within Subfolder B.
>
> Parent folder A:
> - Inheritance off
> - Everyone has Deny Delete on "this folder and subfolders" with "Apply
> to objects/containers within this container only" checked.
> - Users have Allow "Read and Execute" on "this folder, subfolders,
> files"
>
> Subfolder B:
> - Inheritance off
> - Users have Deny Delete on "this folder only"
> - Users have Allow "Read/Write/Execute" on "this folder only"
> - Users have Allow Modify on "subfolders and files only"
>
> "Parent folder A" is included because it contains many subfolders like
> "Subfolder B" which need this protection. *I see some inefficiency in
> this which I'll try to fix.
>
> When a user deletes Subfolder B, the files and folders it contains are
> deleted, THEN the user is denied from deleting Subfolder B. *How can
> the folder AND its contents be protected from an attempt to delete the
> folder, still allowing the user to modify the contents of the folder?
> Thank you.


I get the same result using the following, more clean permissions for
Subfolder B:
Subfolder B:
- Inheritance on
- Everyone has Deny Delete on "this folder only" (inherited)
- Users have Allow "Read and Execute" on "this folder, subfolders,
files" (inherited)
- Users have Allow Modify on "this folder, subfolders and files"

Since "Deny overrides Allow", the "Deny Delete this folder only"
overrides the "Allow Delete this folder only" given by Allow Modify.
The inherited "Allow Read and Execute" is redundant.

This should allow people to work within Subfolder B but not delete
Subfolder B. Actually, I can delete Subfolder B with no problem, even
though I have "Deny Delete" on it.
Reply With Quote
  #3  
Old 29-10-2009
cjg.groups
 
Posts: n/a
Re: Prevent folder move and delete in 2003 Server

On Oct 27, 4:54*pm, "cjg.groups" <cjg.gro...@gmail.com> wrote:
> Hello. *Can NTFS permissions prevent a user from moving or deleting a
> folder in Windows 2003 Server? *Please provide any adjustments to the
> detailed example below.
>
> My extensive testing has shown that:
> When a user deletes a folder, the contents of that folder are deleted
> first, THEN that folder's permissions are checked and obeyed. *Giving
> the user "deny Delete" permission on a folder prevents the folder from
> being deleted AFTER its contents have been erased. *A similar problem
> happens when moving this folder.
>
> Here is my test setup. *I'm trying to prevent Subfolder B from being
> deleted or moved. *I'm allowing Users to create/delete/modify files
> and folders within Subfolder B.
>
> Parent folder A:
> - Inheritance off
> - Everyone has Deny Delete on "this folder and subfolders" with "Apply
> to objects/containers within this container only" checked.
> - Users have Allow "Read and Execute" on "this folder, subfolders,
> files"
>
> Subfolder B:
> - Inheritance off
> - Users have Deny Delete on "this folder only"
> - Users have Allow "Read/Write/Execute" on "this folder only"
> - Users have Allow Modify on "subfolders and files only"
>
> "Parent folder A" is included because it contains many subfolders like
> "Subfolder B" which need this protection. *I see some inefficiency in
> this which I'll try to fix.
>
> When a user deletes Subfolder B, the files and folders it contains are
> deleted, THEN the user is denied from deleting Subfolder B. *How can
> the folder AND its contents be protected from an attempt to delete the
> folder, still allowing the user to modify the contents of the folder?
> Thank you.


I challenge anyone to at least set this up and test it. Am I doing
something wrong, or are Deny permissions being mostly ignored?
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Prevent folder move and delete in 2003 Server"
Thread Thread Starter Forum Replies Last Post
Proper way to add move Exchange 2003 to a new server kermit4karate Windows Software 2 21-01-2009 09:14 AM
Prevent users from adding computer to domain in Server 2003 Jasper Recto Active Directory 5 15-01-2009 01:21 AM
how to move WINS from server 2003 to server 2008 Imran Windows Server Help 1 09-10-2008 07:19 PM
Multihomed Windows 2003 DC server - prevent DNS registration of one network card Håkan Windows Server Help 18 08-06-2008 05:30 AM
move/delete/rename folder: you need permission to perform this act Erik Nettekoven Vista Help 9 20-03-2008 08:44 PM


All times are GMT +5.5. The time now is 08:08 PM.