Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I recently re-installed Windows to fix some driver problems I have been having, and now the drive that I was storing all of my files on (A different drive not the one Windows is installed on) won't let me access any of the files with an Access Denied: Please contact the owner Error. so I ran

takeown /F Drive /R /D Y

on the drive and it ran without errors, however it is still giving me the error, so I have no Idea...

share|improve this question

Apparently owning a file in windows doesn't give one permission to do anything to it...

adding myself using icacls with full control:

icacls [drive]:\* /T /grant [username]:F

Worked out....

share|improve this answer

It seems you've figured it out yourself, but I'll provide a little more information on how NTFS access control lists (ACLs) work.

Local administrators have SeTakeOwnershipPrivilege, which allows them to forcibly make themselves (or a group they're in) the owner of a securable object. Read more about privileges at TechNet. Normal users can take ownership if they're granted the right via the object's ACL, but admins can blow through ACLs with that privilege.

The only special thing about being an object's owner is that you can always read and write its ACL, even in the presence of a deny entry for those permissions! (This is where the "discretionary" part of "Discretionary Access Control List" comes from - the owner is responsible for who can do what.)

You had initially taken ownership of the files, which then enabled you to write to their ACLs, which then restored the appropriate access.

Note that programs running as administrator can enable SeBackupPrivilege and SeRestorePrivilege to read and write anything (respectively), no matter what the ACLs say or who the owner is.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .