Jump to content


Photo
* * * * * 1 votes

How to take ownership of a file or folder in Windows XP


  • Please log in to reply
No replies to this topic

#1 AdvancedSetup

AdvancedSetup

    Staff

  • Root Admin
  • PipPipPipPipPipPip
  • 41,038 posts
  • Gender:Male
  • Location:US

Posted 12 May 2008 - 02:36 AM

How to take ownership of a file or folder in Windows XP


This revised article describes how to take ownership of a file or a folder where you have been denied access.

Original thanks to Doug Knox - Gilles Pion - Microsoft KB article


INTRODUCTION
If you must access a file or a folder that you do not have access to, you must take ownership of that file or folder. When you do this, you replace the security permissions to have access.

If you are using Windows XP Professional, you must disable Simple File Sharing. By default, Windows XP Professional uses Simple File sharing when it is not joined to a domain.
If simple file sharing is enabled, you see the simple file sharing user interface appears instead of the Security and Sharing tabs.


To see hidden files:

  • On the Tools menu in Windows Explorer, click Folder Options.
  • Click the View tab.
  • Under Hidden files and folders, click Show hidden files and folders.
Note To access Windows Explorer, click Start, point to All Programs, and then click Windows Explorer.


How Do I see the Security Tab in XP Home?
If you are using Windows XP Home then download this Security Configuration Manager file from Microsoft. SCESP4I.EXE
Double click to run it and then type in C:\TEMP\SCM and press OK
Then using Explorer browse to the C:\TEMP\SCM folder and locate the file named: setup.inf then Right click on it and select Install
Once the installation is completed you need to restart your computer.

Further reading about the Configuration Manager Tool can be found here
Downloading and Using the Security Configuration Manager Tool


Note: To use Security settings your hard drive must use NTFS - (Further reading on NTFS from Wikipedia)

Note: To allow for specific users to access the share folder after the simple file sharing is disabled, you should configure both the NTFS permissions on the Security tab and the share permission on the Sharing tab of the share folder. NTFS permissions can only be set on a partition using NTFS file system. If you remove the Every Group from the NTFS permission, you cannot access the share folder over the network.

How to turn off simple file sharing
  • To disable simple file sharing, follow these steps:
  • Click Start, and then click My Computer.
  • On the Tools menu, click Folder Options, and then click the View tab.
  • In the Advanced Settings section, clear the Use simple file sharing (Recommended) check box.
  • Click OK.

How to take ownership of a folder
  • To take ownership of a folder, follow these steps:
  • Right-click the folder that you want to take ownership of, and then click Properties.
  • Click the Security tab, and then click OK on the Security message (if one appears).
  • Click Advanced, and then 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 subcontainers and objects check box.
  • Click OK, and 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.

    Note folder name is the name of the folder that you want to take ownership of.
  • Click OK, and then reapply the permissions and security settings that you want for the folder and its contents.

How to take ownership of a file
Note You must be logged on to the computer with an account that has administrative credentials.

  • To take ownership of a file, follow these steps:
  • Right-click the file that you want to take ownership of, and then click Properties.
  • Click the Security tab, and then click OK on the Security message (if one appears).
  • Click Advanced, and then click the Owner tab.
  • In the Name list, click Administrator, or click the Administrators group, and then click OK.

    The administrator or the Administrators group now owns the file. To change the permissions on the files and folders under this folder, go to step 5.
  • Click Add.
  • In the Enter the object names to select (examples) list, type the user or group account that you want to give access to the file. For example, type Administrator.
  • Click OK.
  • In the Group or user names list, click the account that you want, and then select the check boxes of the permissions that you want to assign that user.
  • When you are finished assigning permissions, click OK.

Please review the following articles for further information or troubleshooting
How to disable simplified sharing and set permissions on a shared folder in Windows XP
How to take ownership of a file or folder in Windows XP
Interaction of file and folder security on NTFS volumes



Here is an alternative method
For Windows XP Home Edition ONLY! - we need to add the Security Tab to Explorer

Download this Security Configuration Manager file from Microsoft. SCESP4I.EXE
Double click to run it and type in EXACTLY or copy / paste the following path to extract it to.
If it is not correct then this method will not work. C:\TEMP\SCM
Then click OK

NOTE! Close all open applications as you will need to restart the computer after the end of this routine

Copy this entry and click on START - RUN and paste it into the run box and click OK
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 C:\TEMP\SCM\setup.inf
This will start the installation of the Security Configuration Manager that you downloaded earlier.
It will then ask you to restart your computer. Please restart your computer now when asked.



.

Ron Lewis
Forum Community Manager

staff.png

Follow us: Twitter, Become a fan: Facebook





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users