I'm trying to delete a folder as an administrator, but I get the message "You require permission from UserAdam to delete folder". The problem is, I am logged on as UserAdam! I've tried changing the owner to Administrator to no avail also.
I ran into the same problem: tried to delete a folder (as admin), but got an error message "You need permissions from MYCOMPUTER\Admin
..." Somehow this worked:
I just went into the folder and deleted everything inside. Now when I try to delete the folder, it works fine.
Not sure why, but it seems like you found a similar solution. However, there's no need to use FileAssassin, just simply highlight the folder contents and delete like normal.
To add some additional detail, in the case of needing permission from yourself, It's likely that you currently have an application that is using a file/ has a lock on that folder/files inside that will throw an error.
Closing relevant applications may remedy this, if not a restart will clear all the file locks which might free it.
If neither of those things work then the ACL permissions on the folder are probably malformed and corrupted somehow
I had the same problem, and I found a fairly simple fix that hasn't been mentioned yet and probably has the best chance of working.
Simply give full access to "Everyone" in the file's properties, then delete it right after.
To change the file's access, as administrator: open the context menu and go Properties -> Security -> Advanced
. This should bring up a new window that lists multiple users and their access to the file/folder, specifically Everyone
. Select Everyone
and click edit
. In the following menu, select Full Control
, then click OK
.
The file should now be accessible to everyone- including you- allowing it to be deleted.
This worked for me:
- Open
command prompt
as administrator - Execute
rd /S /Q "P:\Ath\To\Directory"
I got no error and my folder was succesfully deleted.
If you have the project open in Visual Studios, close out of it and then delete the file.
Had this problem today and didnt see this answer anywhere
File in use
, not You require permission from "Myself"
–
Despotic One important "fix" for this issue which must be mentioned:
Try rebooting your machine first!
In some cases this is capable of fixing user control issues, where a file belongs to the current user, yet the current user is unable to change access or remove the file, due to "Access denied".
I had the same issue and I had to enable inheritance.
From the comments: you can run this in an elevated cmd prompt: icacls "path/to/folder/*" /inheritance:e /t, where /inheritance:e enables inheritance and /t does so recursively.
icacls "path/to/folder/*" /inheritance:e /t
, where /inheritance:e
enables inheritance and /t
does so recursively. –
Tipton I think its a bug or something. When the file is in use (It's open in sublime text or maybe some other text editors) it won't say file in use. Instead, it will say you don't have permission. If you don't know what it's open in, logout and it should be deletable. (At least that's what happened to me)
If you tried changing the permissions to 'everyone' for the folder through the security tab and it still asks for "myself"'s permission, then there must be files or folders inside this folder whose permissions need to be changed too. I just found out this, changed the permissions and now happily deleted the troublesome folder.
© 2022 - 2024 — McMap. All rights reserved.