Took Ownership of File/Folder, but Still Couldn't Alter It

2

1

Received a "folder access denied" warning after wanting to delete a folder so I needed to change permissions on a folder. Changed it to - for example: "username (username-PC\username)". That was the "username" I was currently logged in as but strangely received the same exact "folder access denied" even though I had "permissions" on that folder.

Christopher Chipps

Posted 2012-01-01T06:57:11.053

Reputation: 752

2Some of these folders and files dont exist in that location, they are just links. Changing the permission doesnt do anything, and can actually cause very deep problems sometimes. Finding out where they actually put the stuff is probably what you need. – Psycogeek – 2012-01-01T07:07:51.760

Very interesting. I should look into that. It's more curiosity that's driven me to look into this. It's not like I'm starving for disc space or anything. I did get some warnings about ?file inconsistency? while trying to change permissions. – Christopher Chipps – 2012-01-10T06:58:27.863

I was just trying to toss up a lite warning. I dont have a handle on it myself. but I can screw up the system with an infinate loop :-) – Psycogeek – 2012-01-10T07:01:19.253

I've seen problems like this when the file system is corrupted. It might be worth trying a file system check/repair, but make sure you have a good backup first. The repair operation can sometimes turn a mostly-working file system into a not-working-at-all file system, particularly if there is an underlying hardware problem. – Harry Johnston – 2012-01-11T01:46:53.320

It could also be due to a rootkit, or your antivirus software might be locking the folder for some reason. – Harry Johnston – 2012-01-11T01:47:48.357

Answers

3

It can be some application that has a lock on the folder. Download and install Unlocker Right click on the folder and click the unlocker menu item. There is a delete file option on the main screen.

Else you can use SysInternals Process Explorer to see which application has locked the folder.

EDIT: I recently came to know that Unlocker sometimes does not detect locks on folders by applications. Instead try runs the commandline tool Handles from SysInternals. This tool will also allow you to closing an open handle. (Caution: Closing an open handle MAY cause a system crash in some cases.)

Ganesh R.

Posted 2012-01-01T06:57:11.053

Reputation: 4 869

Thanks for the recommendation. I downloaded Unlocker and tried deleting the file but it gave me the message that "it can't be deleted but try again at next reboot". So I agree but have yet to reboot. – Christopher Chipps – 2012-01-10T06:50:58.423

While reading your answer in addition to the above comments, it seems like I would do more harm than good in trying to get rid of this program (MS Internet Explorer). I use another browser and just wanted to free up space but I guess I'll deal with the fact that I've tried many things yet have been unable to delete the folder. If the folder was malicious or detrimental to my system, I would try harder to get rid of it but it seems that I may hurt my system in trying to do away with the folder so I'll allow taking up some space. – Christopher Chipps – 2012-01-15T21:21:08.363

@ChristopherChipps Can you mention the folder name (check on google if its a system folder) and try handles to see if it can help you out here? Also if you just want to empty the folder, can you try deleting its contents instead of delete the whole folder? – Ganesh R. – 2012-01-16T09:11:16.980

1

You say you took ownership of the folder; did you also change the permissions? Being the owner does not in and of itself allow access to a file or folder, although it does allow you to read and set the permissions.

(Note that under some but not all circumstances the GUI will change permissions automatically when you take ownership of a file/folder.)

Harry Johnston

Posted 2012-01-01T06:57:11.053

Reputation: 5 054

I took ownership and changed the permissions. Interestingly enough, while trying the above comment's suggestion and finding no "Deny permissions", I gave the user "Full Control" permissions which seems to cause some havoc. It gave some sort of warning about file inconsistency or something or other. After clicking ok, it gave me the option to delete file (finally!) but after clicking "ok" it sent me back that I needed permissions from the user who is me. – Christopher Chipps – 2012-01-10T06:56:51.703