Saturday 19 December 2009

Changing folder rights and permissions in Vista

Recently I was confronted with a very peculiar problem. What actually happened was, I had set the permission of a certain folder to "Administrator" which was in D: drive. Later when I formatted my OS, I found that I practically did not own that folder, because it did not recognize the new "Administrator". So I was not able to work with any of the file within the folder. None of the video files opened, text files could not be modified, files could not be deleted or renamed, or in other words that folder had become useless.

Hence I tried a few things to change the permission of the folder as a whole, rather than an individual file, which is much easier, but really tedious to do. So I describe the process which was of particular help.

Before doing all this, its better that you disable UAC. Though the process given below can be done with UAC enabled. But it is recommended to turn UAC off so that you don't have to bear the pain of typing in the administrator password again and again.

Follow the following steps:
  • Right click on the folder you want to change the permission of.
  • Click on properties.
  • Click on Security tab.
  • Click on the "Advanced" button at the bottom right corner. "Advanced security Settings" opens up.
  • Click on the "Owner" tab.
  • Enter the name of the user, or even better will be "Administrator".
  • In case you cannot write in the space provided below "Current owner", Click on "Edit..." button.
  • Click on "Other users or groups...".
  • Now enter the user name, or "Administrator" in the space provided.
  • Click "OK".
  • Check the box which says, "Replace owner on sub-containers and objects".
  • Click "Apply".
  • Click "OK".
  • Click "OK" again in the present window.
  • You may be prompted with the message to continue, Click continue.
Even after doing all this, if you don't have control over your sub folders, it means that the rights of the sub folders are being inherited. So you need to change the "Auditing" for the particular folder.

To do so follow the following steps:
  • Right click on the folder.
  • Click on properties.
  • Click on Security tab.
  • Click on the "Advanced" button at the bottom right corner. "Advanced security Settings" opens up.
  • Click on the "Auditing" tab.
  • Click on "Continue".
  • Click on "Edit...". Another window opens up.
  • Click on "Add..." and enter the user name or "Administrator".
  • Click "OK".
  • Now, check the box saying, "Replace all existing inheritable auditing entries on all descendants with inheritable auditing entries from the object".
  • Click "Apply"->Click "OK".
  • Click "OK" again, and select continue if any pop up for permission comes in.

You have successfully changed the rights of the folder as well as the sub folders. In case you want to remove the garbage entries from the "Group or user names", simply open the "Security tab" and select them and click "Edit...", followed by "Remove".
That is it.

Enjoy!

2 comments:

Zave said...

Thank you.
Glad that it was able to help you.

Be Meo said...

i visited your site , it's very nice...wellcome to my blog ! thank you so much!
http://www.tech24h.us/

Post a Comment