You dont currently have permission to access this folder error
Solution 1:
This is a lot of conversation over a very simple process. I would give you command line options, but recursive junction points can be a problem. So, the most straight forward way to do this is with native Windows tools.
These are Windows 10 instructions. I have added Windows 7 notes.
- Open
File Explorer
and right-click the E: drive. ChooseProperties
- Click the
Security
tab and then click theAdvanced
button. - Next to where it shows the Owner click
Change
. (Windows 7: Click theOwner
tab, clickEdit
, then clickOther users or groups
.) - In the Select User or Group window, type
Administrator
and clickCheck Names
. If you did it correctly Administrator will be underlined. ClickOK
. - Check the box
Replace owner on subcontainers and objects
- Click
Apply
WAIT. WAIT. WAIT. WAIT some more. When done, click OK
and close the Advanced Security Settings for Local Disk E: window.
Now:
- Repeat steps 1 and 2 above.
- Under the Permission entries window, click the
Add
button. - Next to Principal click
Select a principal
. (Windows 7: ClickChange Permissions
, then clickAdd
.) - In the Select User or Group window type
Everyone
and clickCheck Names
. If you did it properly, Everyone will be underlined. ClickOK
. - In the Basic permissions area, check the box next to
Full control
and clickOK
. - Check the box next to
Replace all child object permission entries with inheritable permission entries from this object
- Click
Apply
.
WAIT. WAIT. WAIT. Wait some more. When it's done, click OK
to close the Advanced Security Settings for Local Disk (E:) window.
NOTE: If you receive any security warnings prompting asking you to allow changes, click Yes or Allow.
You now have full access of every file on the E: drive.
Solution 2:
Now I want to access my images / musics and videos
Open an elevated command prompt.
Assuming the drive in question is e:
To set any user as owner:
icacls "e:\" /setowner "user name" /T /C
To set administrators group as owner:
icacls "e:\" /setowner "Administrators" /T /C
Source Take Ownership of a File, Folder, Drive, or Registry Key in Windows 8
Solution 3:
The old disk was created by a user account that does not exist on the new computer. Therefore the disk files are owned by a user that for the new computer is non-existent and non-accessible.
You can follow the steps below:
Start a Command Prompt (cmd) as an administrator
-
Take ownership of the files by entering:
takeown /f E:\ /r
-
Give yourself full rights :
cacls E:\ /T /G username:F
The above commands have their origin in earlier versions of Windows.
The more modern utility is icacls
. Below are some examples:
icacls /?
icacls folder/file /setowner username /t /c /q
icacls folder/file /grant username:F /t
The switches that were used for the last example:
username:F = Full Control to user
/t = Apply recursively to existing files and sub-folders
One more option of interest if the folder contains junctions:
/l = Performs the operation on a symbolic link versus its destination.
References:
- Takeown command
- CACLS command
- icacls command
Solution 4:
Variation of problem I experienced:
I had windows 7 installed but it was giving me issues so i re installed the same windows (windows 7 ultimate) on top of the old and suddenly a whole drive was not allowing me access and when i was hit with all the prompts i was going through the security tabs to find out what was going on, it was coming up saying the owner of the file is unknown, i would then set my admin as owner and then i was able to get into the file but the movie inside was coming up saying it was again incorrect user.
Fix used:
First of all I right click on the hard drive itself then:
- properties
- Security
- in group or username I selected edit (if you already have a Everyone user skip to .6)
- add
- in enter the object name Type: Everyone then press check names then OK
- highlight the everyone user and tick the allow all box then apply
- reselect the user Everyone and select advanced
select owner tab at top
if yours is like mine it will say something like current owner is unknown (not a direct quote)select edit at the bottom
- select admin then select the tick box Replace Owner on sub containers and objects (very important you tick) select apply.
This will then go through all the files and sub files and change owner to yourself.