Change the permissions and take ownership of your files and folders


When changing operating systems and migrating data, you might end up not being able to access some of your files or folders anymore. This can happen due to the fact that your user has lost ownership of those files & folders or it no longer has the required permissions. In this tutorial will try to address this type of issues and help our readers that reported having such problems.

Even though the procedure is a bit long, you will see that things are not very complicated.

If you cannot open, delete or change a folder from your disk, it means that you either need to take ownership of that folder or/and you need to change your user's access rights. To make this kind of change your user needs to be an administrator.

Both operations are done from the same menu. First, navigate to that specific folder, right click on it and select Properties.

Folder Properties

Taking Ownership

In the Properties window go to the Security tab and click on Advanced.

Folder Properties

Now go to the Owner tab. Here you will see the current owner of that folder. If your user is not the owner, click on Edit. If you have User Account Control enabled, press on OK.

Folder Properties

In the Owner window, click on Other users or groups.

Folder Properties

Now you need to type the user name or the group of users that will take ownership of the selected folder. If you type "Administrators" you will give ownership to all the users that are administrators on your PC. If you want to give ownership only to your user, then type your user name. After that, press on Check Names.

Folder Properties

If the user or group was found on your computer, you will see that the text you typed was changed to [Your PC Name]\[User] or [Your PC Name]\[Group]. If so, press on OK.

Folder Properties

If the user/group was not found you will receive a Name Not Found error window. Make the necessary corrections and try again.

Folder Properties

In the Owner window, select the user/group you just added, select Replace owner on subcontainers and objects and press OK.

Folder Properties

Now you will receive the confirmation that you have taken ownership of the folder. Press on OK and that's it.

Folder Properties

Changing Permissions

In the Properties window go to the Security tab and click on Edit.

Folder Properties

If you are not on the list of users or groups that have permissions defined, you should click on Add. If your user or group is on that list, select it, click on Allow Full Control and then press OK.

Folder Properties

Now you need to type the user name or the group of users for which you want to change the permissions. If you type "Administrators" you will give permissions to all the users that are administrators on your PC. If you want to give permissions only to your user, then type your user name. After that, press on Check Names and then on OK.

Folder Properties

If the user/group was not found you will receive a Name Not Found error window. Make the necessary corrections and try again.

In the Security window, select the user/group you just added and then click on Allow Full Control.

Folder Properties


Related articles:
Windows Vista Security Center
Manage User Accounts
Change Owner v1.0
Parental Controls



Comments

I'll bet the file is

I'll bet the file is encrypted, same thing happened to me with a passworded .rar file...I'm currently rebuilding the old machine in order to access it...I additionaly merged old folders with new folders and created a nightmare...so I ended up taking ownership of my whole drive and subfolders to correct. good luck

I assign permission to C drive

I deny the permission to C drive.
Noe i cannot Change Any Properties From Admin Also I cannot Even control Any thing from Admin User also please help me in Solving this problem

Vista File Permissions

I made the mistake of connecting my portable hard drive to a friends Vista computer. i copied some folders and files to the drive. later on my XP Machine i tried to rename the the volume but was denied. I have no permission. when i checked file permission i was the owner. I had full control of hard drive. I finaly fix it by reformatting the drive. stupied Vista permissions.

Thanks for your Overview

When you copy to another NTFS drive, or within the same drive, any old NTFS permissions assigned specifically to the original are stripped away, and it inherits NTFS permissions from the new location. In order to copy, you must have Write permission for the destination. The user doing the copying becomes the CREATOR OWNER of the copy.

Error Acess is senied (Vista)

An error occured while applying security infomation to
E:\documents\file.zip and (and all other files on the hard drive)
Acess is denied.
continue cancel
if i continue it goes to the next file saying its also denied and so on..

im running dual boot, with xp i might of changed something from there. and when i come back to vista boot acess is denied. is there a way to restore fulll controll to default settings?

Would you believe I still

Would you believe I still cant access the folder after all that? And I thought it would work too.

It's "documents and settings" in drive c (local disk)
It hates me, I swear!

post is very good

You may get a few windows asking essentially "Have you lost your mind" and "Really, are you sure your smart enough to own files", but just click threw the MS Big Brother nonsense. A few files open in the C:\Windows\System32 may be denyed because the file is in use, but other than that you should get access to all of the folders on YOUR COMPUTER!

Take Ownership Right-click option

Create a text file and add ".reg" at the end of it.
Cut and paste the following into it, save, right-click and merge.
This gives you right click context menu for ownership of anything.

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

No wonder people are switching to MACS

Followed your directions to a "T" - still can't get permission to copy music to my itunes folder (using Vista). Professionally, my firm owns shares of MSFT - I think I'm going in tomorrow and have us sell it all.

Only NTFS File System support

Only NTFS File System support this.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options


eXTReMe Tracker