How to take ownership of a file or folder in Windows XP?
When you access a file or a folder in your system, you may receive an error "Access Denied", which indicates that you don't have permissions to access that folder or the file. The error is seen is after you reinstall Windows XP and try to access your old profile. If you are an Administrator (or Administrator-level User account) and want to access the contents of the folder, you can take ownership of the folder or file.
You must be logged on to the computer with an account which has administrative privileges.
If you use XP Home Edition, start the computer in safe mode and log on with an account that has Administrative rights to have access to the Security tab.
For XP Professional, you need to disable Simple File Sharing in order to see the Security tab.
To disable simple file sharing:
Click Start, click My Computer.
On the Tools menu, click Folder Options, click the View tab.
In the Advanced Settings section, clear the Use simple file sharing (Recommended) check box. Click OK.
To take ownership of a folder:
Right click the folder you want to take ownership of, then click properties.
Click the Security tab and click OK on the security message, (if one appears).
Click Advanced, click the Owner tab.
In the Name list, click your user name, or click Administrator if you are logged in as Administrator, or click the Administrators group.
If you want to take ownership of the contents of that folder, select the Replace owner on sub containers and objects check box.
Click OK, then click Yes when you receive the following message:
You do not have permission to read the contents of directory folder name. Do you want to replace the directory permissions with permissions granting you Full Control?
All permissions will be replaced if you press Yes.
where folder name is the name of the folder that you want to take ownership of.
Click OK then reapply the permissions and security settings that you want for the folder and its contents.
To take ownership of a file:
Right click the file you want to take ownership of, then click Properties.
Click the Security tab, click OK on the Security message (if one appears).
Click Advanced, click the Owner tab.
In the Name list, click Administrator, or click the Administrators group, click OK.
The administrator or the Administrators group now owns the file.