Windows Vista Forums

Restore drive permisson
  1. #1



    Newbie
    Join Date : Jun 2009
    Posts : 3
    Vista Home Premium 64bit
    Local Time: 05:36 AM

    Restore drive permisson

    Hi, I changed the permissions on my D driver (partition) to DENY EVERYONE. I did not realize that Administrator account was part of EVERYONE.

    Now I cannot access the drive - period. The security tab is not an option anymore. I am logged in as the "real" administrator.

    I also tried takeown and CACLS - No luck. Every thing says "Access Denied"

    I am sure many users have this issue. Anyone figure out how to fix this?



    Thanks,

    Sri

      My System SpecsSystem Spec

  2. #2



    Banned

    Join Date : Dec 2009
    Posts : 3,375
    Vista Home Premium x86 SP2
    Local Time: 10:36 AM
    uk european union

     

    Re: Restore drive permisson

    Hello,

    I assume this D:\ drive is not your System partition, just a data drive or your Recovery drive. There are two solutions, the easy way is Safe Mode. Boot into Safe Mode and change it back. If this does not work, I will send you a way to corrupt all permissions on that drive, a violent but only solution.

    Richard

      My System SpecsSystem Spec

  3. #3



    Newbie
    Join Date : Jun 2009
    Posts : 3
    Vista Home Premium 64bit
    Local Time: 05:36 AM


      Thread Starter

    Re: Restore drive permisson

    Richard - you da man!

    Your solution worked. I logged in as Administrator in Safe Mode - which is the key.

    I knew there had to be a way. I appreciate your help.

    Out of curiosity what is the other more violent method to corrupt permissions? I ask because I feel I am going run into this type of problem again.

    Thanks a ton!

    Shiku

      My System SpecsSystem Spec

  4. #4



    Banned

    Join Date : Dec 2009
    Posts : 3,375
    Vista Home Premium x86 SP2
    Local Time: 10:36 AM
    uk european union

     

    Re: Restore drive permisson

    Hello,

    This can be classed as hacking, so do not run it on anyone but your own computer. On my iPhone now so will send the full instructions off a computer in a few hours. Basically, there is a small program that you run giving the directory from the Command Prompt, and all the permissions are corrupted for that folder, so you them have to put them back on, in a carful manor so as not to block System. Remember, this is corruption, not deletion. Glad you are off the ground now.

    Richard

      My System SpecsSystem Spec

  5. #5



    Banned

    Join Date : Dec 2009
    Posts : 3,375
    Vista Home Premium x86 SP2
    Local Time: 10:36 AM
    uk european union

     

    Re: Restore drive permisson

    Hello,

    Here is my general help for this program. I am on a work machine, and so I cannot upload the .zip or .exe files, so I have had to link to them instead. This should not pose a problem. Also, I have just noticed that in your first post you said you used cacls, it has now been replaced by the new icacls. This would not have solved the problem, just for your interest. Remember, this is a last resort method.

    Hi,

    Try it from Safe Mode, often you can then access files, even if you have locked yourself out of them. You could also try System Restore. Don't worry yet, it is EXTREMLY unlikely that we cannot unlock your files.

    Here is how to take ownership of a file and then change its permissions from Command Prompt. I have used the C:\Users\ folder as an example. Do not change %username% to your actual User Name, leave it as it is.

    takeown /f C:\Users\*
    icacls C:\Users\* /grant:r %userprofile%:f


    If this does not work, download the small program attched to this post (the .exe is the same as the .exe in the .zip file - someone else had a problem with it) This program will remove all permissions from the folder or drive specified, so make sure you add SYSTEM and yourself back at the very least. DO NOT MISUSE THIS PROGRAM! DO NOT USE IT ON ANY COMPUTERS OTHER THAN YOUR OWN!
    • Download the small program and put it on your desktop.
    • Start Command Prompt (Windows Key + R, type "cmd" without the quotes and press enter).
    • Navigate to your desktop ("cd C:\Users\%userprofile%\Desktop" (without the quotes) and press enter)
    • Type "Takeown.exe D:\" and press enter. Everything is without the quotes.
    • Right click on your D:\ drive and give full access to SYSTEM and yourself and then CAREFULLY re-assign your permissions. If this does not work, you can try this program from Safe Mode. You can specify any file, folder or drive.

    To specify a drive:
    Takeown.exe D:\
    If this does not work, try: Takeown.exe D:\*
    To specify a folder with all contents included:
    Takeown.exe D:\folder\*
    To specify a file:
    Takeown.exe D:\folder\file.exe
    To specify all files with extension .bat:
    Takeown.exe D:\folder\*.bat
    To specify all files with name Test:
    Takeown.exe D:\folder\Test.*


    If this does not work,
    • Make sure you exchange "{Account Name}" with your actual account name such as "Richard". Sounds obvious, but it has been done.
    • Make sure you included the ".exe" after "takeown" i.e. "takeown.exe". In theory it should not matter, but it is best to do it.
    • Make sure there is a space between "takeown.exe" and "C:\" i.e. "takeown.exe C:\
    • Double click on the exe from the desktop to see if you can make out "Must specify a file name:" to check the .exe works
    • Here is my sample command:

    "cd C:\Users\Richard\Desktop"
    "takeown.exe C:\"


    If this does not work, try another tack:
    • Create a shortcut to the .exe on your desktop.
    • Open the shortcut's property page.
    • Under the Shortcut tab,
    • In the target box, Add a space and then C:\ after the last quote.
    • i.e.: "C:\Users\Richard\Desktop\takeown.exe" C:\
    • Then double click the shortcut.

    READ ME!!: On the C:\ drive, give full control to SYSTEM, Autenticated Users, Administrators and Users.

    Hope this helps, if not, post back.

    Richard
    .zip: www.vistax64.com/attachments/system-security/18276d1265552539-no-permission-vista-stuck-takeown.zip

    .exe: www.vistax64.com/attachments/system-security/18275d1265552539-no-permission-vista-stuck-takeown.exe

    Last edited by niemiro; 29 Apr 2010 at 11:21 AM. Reason: Correct mistake
      My System SpecsSystem Spec

  6. #6



    Newbie
    Join Date : Jun 2009
    Posts : 3
    Vista Home Premium 64bit
    Local Time: 05:36 AM


      Thread Starter

    Re: Restore drive permisson

    Good evening Richard, thanks for taking the time to post the work around.

    I am moving from Vista to Windows 7, so hopefully I never have to go through this again. However, this is very useful to know.

    Thank you sir!

    Shiku

      My System SpecsSystem Spec

  7. #7



    Banned

    Join Date : Dec 2009
    Posts : 3,375
    Vista Home Premium x86 SP2
    Local Time: 10:36 AM
    uk european union

     

    Re: Restore drive permisson

    Quote Originally Posted by shiku View Post
    Good evening Richard, thanks for taking the time to post the work around.

    I am moving from Vista to Windows 7, so hopefully I never have to go through this again. However, this is very useful to know.

    Thank you sir!

    Shiku
    You are most welcome Shiku. Anytime!

    Richard

      My System SpecsSystem Spec

Restore drive permisson problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Complete Restore to backup drive with Vista, but not drive with XP. Michael Kilgore Vista performance & maintenance 4 16 Aug 2008
Windows renamed my G: drive to H: drive...how restore? Dustin Vista hardware & devices 2 27 Apr 2008
Backup & restore D drive pop98 Vista General 1 05 Feb 2008
restore drive backup toywill Vista General 1 19 Aug 2007
Restore Drive Mike G Vista performance & maintenance 0 07 Nov 2006