Solved Restore drive permisson

shiku

New Member
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 Computer

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 Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
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 Computer

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 Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
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:

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
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 Computer

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 Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
Back
Top