Permission on subfolders.

kpaxtrol

Distinguished
May 27, 2014
17
0
18,510
Hello .

I have a weird problem with W7 and giving permissions and taking ownership of folders. I've googled and read a lot about it but I have the issue of having a folder filled with 100 more inside. When I use the option "Replace all child object permissions..." All the subfolders' files give me "access denied". When I do them separately it works. It's worth noting that it still gives me the error "access denied" when I click all the necessary things to set it up, but it works in the end. The problem is I don't want to have to click this like hundreds of times for all the folders that are containted in the main one, just to be able to read my lectures. I am just baffled as to why this occurs. I have never had a problem before. I have another big folder filled with folders inside and it worked for it flawlessly. It's also from the same source/rar file.

Here are the actions / feedback I do /get as I give permission to a subfolder.

I click properties on the Folder named Education -> I go to security and advanced -> On the Permissions tabs it says "You do not have the permission to view or edit this object's permissions -> I click on owner, Current owner is "Unable to display current owner." . I click edit , I have Administrators (Alex-PC\Administrators) and Alex(Alex-PC\Alex) I click the latter , tick "Replace owner on subcontainers and objects" and click apply / ok. -> I get "Error applying Security" box saying " An error occured while applying security information to: File1.mp3 Access is denied." I have to click OK for every file the folder has and then I get a warning "You do not have permission to read the content of Directory D:\MainFolder\Subfolder\Education Do you want to replace the directory permissions with permissions granting you full access? All permissions will be replaced if you click yes" I click yes I get -> "If you have just taken ownership of this object you will need to close and reopen..." Ok. -> I reopen the properties to the same advanced tab /Permissions . Then click change permissions. There is only one user name there "Alex (Alex-PC\Alex) I tick both unticked boxes, for child and parents. I click apply , and it works. I have to repeat this over 100 times in order to get the whole thing sorted.

Quick Edit: Now I realized that if I were ever to delete these folders, it would take me HOURS of HOURS of tweaking security issues with them in order to do so. A format of the whole drive would be a wiser choice. AH THAT MAKES ME SO FRUSTRATED !

My question is , is there another way ?
Thx for the feedback in advance !
 
Solution
It seems like you're doing everything right.

EDIT: Be sure to "Disable Inheritance" (button) at the root of the directory you wish to take ownership of. When prompted, copy the existing permissions. Then take ownership of that directory and flag the option to propagate changes to child objects.

As a network admin myself, I've run into this issue before when setting ACL permissions to folders. In most cases, it's because the file is open and locked with an OpLock thread by another user on the network. As such, even as a domain administrator, I'd get an access denied too when taking ownership of a directory and then propagating that to the child objects inside. That's by design BTW (can't pull the rug out from the remote user this...
It seems like you're doing everything right.

EDIT: Be sure to "Disable Inheritance" (button) at the root of the directory you wish to take ownership of. When prompted, copy the existing permissions. Then take ownership of that directory and flag the option to propagate changes to child objects.

As a network admin myself, I've run into this issue before when setting ACL permissions to folders. In most cases, it's because the file is open and locked with an OpLock thread by another user on the network. As such, even as a domain administrator, I'd get an access denied too when taking ownership of a directory and then propagating that to the child objects inside. That's by design BTW (can't pull the rug out from the remote user this way).

Try rebooting the computer. Also, if it's shared out, make sure there are no open files or sessions attached to resources within that directory. Just execute the mmc.exe command and add the snap-in "Shared Folders". Now expand and you will find Session and Open Files.

Also worth noting - Make sure your total directory length doesn't exceed 254 characters in length.

 
Solution