Access Denied
- 19
- Add a Comment
- No Related Post
Scenario: You have just reinstalled Windows XP Pro on your Boot partition. After everything is up and running, you go to open a text file on your data partition and get an error: Access Denied. How can this happen? Why can you not open your file anymore?
I get this question more than most on the support list that I belong to. Here is the solution:
When you reinstall Windows, The SID (Security Identifier) is changed and the access tokens for all users are changed.Therefore, the files you are trying to open are no longer owned by you.
To open the files again, you need to take ownership of the files.
First log on as the local administrator.
Make sure that Simple File Sharing is turned off: Open Windows Explorer - click on the Tools menu - select Folder Options - Click on the View tab - scroll all the way to the bottom and uncheck “Use Simple File Sharing (Recommended).”
Now navigate to the file or folder in question. Right click on the file and choose Properties. Click on the Security tab, then click on Advanced. Open the Owner Tab. In the Change owner to box is a list of users who have permissions to take ownership of the object. Select the user to take ownership and press the Apply Button.
Once you have taken ownership as administrator, the ownership of the file can be granted to the user of your choice. [John Seymour]

19 Comments
Brigitte Watts
December 16th, 2006
at 5:03am
I tried using Unlocker and Moveonboot to delete a file that was “access denied” but failed both times. I finally found the proper instrructions! Thanks John Seymour!
Paul Jungwirth
December 29th, 2006
at 6:31am
I’m another whom this little titbit has helped, in my circumstance I’ve found that on top of taking ownership I’ve also had to go further:
Following the same instructions to get to the “Advanced Security Settings ..” window I’ve then had to uncheck two check boxes when dealing with directories (and sometimes just to “break” the security lock on files within directories!) as well, the “Allow inheritable permissions from the parent to propagate to this object and all child objects. Include these with entries explicitly defined here.” on the Permissions tab and also the “Allow inheritable auditing entries from the parent to propagate to this object and all child objects. Include these with entries explicitly defined here.” on the Auditing tab.
For some reason “breaking” the security in this manner has overcome locks which remained even after ownership had been changed.
Cheers
Emily
December 29th, 2006
at 1:56pm
Thank you soo much! I’ve been trying to get at my brothers old files for years now (literally since march of 03′!!), and have only just now managed. Thanks a million!!!
Paul Sherman
January 17th, 2007
at 8:04pm
This advice has totally saved my bacon. I had a bunch of image files stuck on a computer, and the Microsoft support pages were very little help! Then I found this page. Awesome. I’m all set now!
Hector M
January 23rd, 2007
at 2:39pm
You guys are great!!!! i have been breaking my head for the pass 4 days trying to get my outlook pst file working, i wass messing around with windows vista, and i use my original XP HDD as a slave and from the master disc (vista on it) i access to my user account, and than i dint know what i did and i change the ownership from vista and my nightmares star from there, thanks to you guys, I’m back and running with my emails and cotacts database
You guys rock!!!!
Hector M.
Durham, NC
Rebecca
January 27th, 2007
at 7:29am
My husband did a system restore after our little one changed the screen to sideways and the first time it wouldn’t let him, then the second time it worked. Now here is the problem: we both had aministrator user accounts mine being the first. Now we cannot access my documents at all. I have lots of important info on there some of it is on disk. How can I restore it? please please help. I have clicked on my documents (right click) no security tab comes up anywhere. If I click on my documents it says access denied. Is there a way to fix it?????
Tim
March 4th, 2007
at 12:24pm
Try booting in Safe Mode and then the Security tab should appear.
Jason
March 10th, 2007
at 5:03pm
I’ve looked all day for help on this matter. Thank you so much, you’ve saved me a world of frustration
Roberto
March 18th, 2007
at 10:33am
My God! you guys rock!!!
Thank you SOOO MUCH for teaching us clueless wnen it comes to computing how to do stuff… I got MY FILES BACKK!!!
Killua
April 7th, 2007
at 1:42pm
More on the sideways screen Issue, If the screen is sideways the Video Card is probably an Intel, to reset that just hold down the buttons Ctrl+Alt+Up, down, left or right arrow keys
Rose
May 22nd, 2007
at 3:29am
Thank you so much for this help! All my image files restricted access, wouldn’t let me use them etc and were just sitting there looking messy. I was trying so hard not to reinstall Windows and you saved the day! Why don’t Microsoft have this info on their website or helpfiles?!
Debjit
June 24th, 2007
at 12:29pm
This suggestion was extremely helpful for me..I tried everything and went thru every possible website including MS’s for solution..and then this page came to me like a fairy..
I just dragged and dropped a few very important files to a newly created folder..but then could not open the files anymore. I took ownership in the way suggested by you and it WORKED!!!!
Windows XP is a piece of shit and full of bug, but you saved me 6 hours of rework.
A MILLION THANKS!!!!!!
Evan
October 5th, 2007
at 3:37am
hello jonh i try all your way of gettng into a “access denied” folder and still havent got into it . ive reinstalled windows and i cant get into my documents and ever time i go in C:\Documents and Settings/(my documents) it says Access denied heeellllpppppp please john
Torley
November 22nd, 2007
at 11:05am
RIGHT ON, other utilities I tried failed to unlock and delete the folder. Both Unlocker and MoveOnBoot didn’t work for me.
Well, THIS TIP DID! Thanks to you, I was able to rid myself of an annoying folder on my desktop that I’ve wanted to delete for weeks.
I’ll remember this page should I encounter this problem again, or if I hear of others who do.
Lorenzo
January 8th, 2008
at 1:42pm
This info is a godsend…Thanks a lot. I had to reinstall XP due to a virus attack. XP wouldn’t allow me to acess my previous private folders. This help worked great!
Herve
February 9th, 2008
at 2:33am
after HOURS/DAYS trying to fix the access denied problem for files located on my D drive (which I am the only user of), i found this page… I couldn’t exactly follow the procedures described above, but waht I’ve done is:
My Computer / Data D /Sharing /Network Sharing / check Share folder on the network.
Which would have made sense if there was more than one user on my PC or if it was networked… but oh well…. thanks for pointing me in the right direction!
Alex
March 10th, 2008
at 3:47pm
Awesome!! Thanks so much!
Rakesh
June 15th, 2008
at 12:52pm
thanks a lot man !!!! it works perfect …. cant tell how much am grateful to you ….. this tip is great …
Darcy
December 29th, 2008
at 3:45pm
Just FYI
Sadly, this did not help me. I am using Win XP and when I right click on the file and select Properties. The only thing that comes up is the General tab. There are no other tabs. There is only one account on my computer, the admin account.
I’m off to Google more advice.