Permission denied even Admin

Discussion in 'Operating Systems' started by grandpatzer, Sep 5, 2011.

  1. grandpatzer

    grandpatzer Gawd

    Messages:
    640
    Joined:
    Feb 24, 2010
    A good time ago I followed this guide http://www.youtube.com/watch?v=EQstgQ4eJCM to share folders with media player WD LIVE, everything good and well until I realized following: I cant's transfer, create or delete files & folders..

    What to do?

    I shared a big folder on a RAID5 unit and it got loads of data on it (the locked folder)
     
  2. TheGamerZ

    TheGamerZ [H]ardness Supreme

    Messages:
    5,218
    Joined:
    Sep 18, 2003
    You're probably not the owner.

    Paste this in notepad and save it as a .reg file

    Code:
    Windows Registry Editor Version 5.00
    
    
    [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"
    
    Run that and now you'll have a "Take Ownership" option in the right-click menus. Take ownership of all of that.

    [​IMG]