You require permission from s-1-5-21

I updated my laptop"s OS from Windows XP to Windows 7. Tbelow are some leftover records from Windows XP on the computer system now. If I try deleting them I gain the following error:

You require permission to percreate this action.

You watching: You require permission from s-1-5-21

You require permission from S-1-.... to make changes to this folder.

What"s weird is that I am logged in through the only user account on this machine and also I have actually administrator privileges. I tried turning UAC off, however I still can not delete the papers.

How deserve to I force removal of these files?


*

*

It"s possible that by upgrading, the old XP user was not converted well to Windows 7 - therefore these files are owned by a phantom user. You deserve to follow the procedures below:

Take ownership of the files. Start a Command also Prompt (cmd) as an administrator, and also enter:

takeown /f filetakeown /f catalog /rGive yourself complete civil liberties on the file:

cacls file /G username:Fcacls brochure /T /G username:Fcacls have the right to be provided with wildcards and catalog traversal. See also:Security from the command also line via CACLSCACLS command

For a much more developed Visual Basic manuscript see: Xcacls.vbs to modify NTFS perobjectives.


Share
Follow
edited Aug 20 "15 at 4:50
*

Community♦
1
answered Oct 26 "09 at 7:11
*

harrymcharrymc
354k2222 gold badges397397 silver badges742742 bronze badges
8
| Sexactly how 3 more comments
30
The command line debates for taking ownership have to be in this order

takevery own /f /r/f filename or catalog name pattern/r recurseNOTE: cacls is currently deprecated, please useicacls

icacls /provide :f /t f full access/t recurse
Share
Follow
edited Jan 12 "14 at 23:04

*

Steven Penny
8,7821919 gold badges103103 silver badges148148 bronze badges
answered Jun 29 "11 at 6:41
Lessan VaeziLessan Vaezi
41355 silver badges66 bronze badges
Add a comment |
6
In my case taking ownership was not sufficient in Windows 7 for my specific circumstances (my Windows 7 installation was made using Symantec Back-up Exec from one more machine and also the folder was under source control).

I had actually to perdevelop two better steps:

Right click the folder containing the documents you desire to delete and select "Properties" -> "Security" -> "Advanced" -> select your user -> "Change permission" -> Check "Replace all son object perobjectives through inheritable pergoals from this object"

Delete the papers in the folders manually from the innermany to the root. Delete the folders when they are empty, i.e. if you have actually "folder1->folder2" initially you delete the contents of folder2, then delete folder2 and so on.

See more: Download Snapchat For Nokia Lumia, Snapchat Download For Nokia Lumia

If the various other solutions are not enough, you deserve to try these better procedures.


Share
Follow
edited May 31 "11 at 9:30
Gaff
17.4k1414 gold badges5454 silver badges6767 bronze badges
answered Jan 14 "11 at 17:39
Durden81Durden81
19911 silver badge33 bronze badges
Add a comment |
1
That S-1-... is a GUID left over from the previous install. Obviously NEWSYSTEMAdministrator isn"t part of the OLDSYSTEMAdministrators group.

You must take ownership of the drive, let the transforms propagate, then you should have the ability to delete the files.


Share
Follow
edited May 31 "11 at 9:26
Gaff
17.4k1414 gold badges5454 silver badges6767 bronze badges
answered Oct 26 "09 at 7:01
tsilbtsilb
2,49244 gold badges2121 silver badges3131 bronze badges
Add a comment |
1
Normally takeown and (i)cacls perform the job.

Alternatively,you have the right to usage Unlocker to delete it (most likely it will need reboot),or usage Sysinternals" PsExec to acquire SYSTEM user privileges and delete those records (this one will work on some files, may fail on others).

But if that folder has many papers, it will certainly take the majority of time to takevery own privileges (it took me around 20 minutes, counts on HDD speed). So in this situation any kind of LiveCD/DVD/USB is much faster, as they don"t need any kind of privileges to delete the folder.

See more: Outlook Search Results May Be Incomplete Because Items Are Still Being Indexed


Share
Follow
edited Jul 22 "14 at 18:55
answered Jul 29 "13 at 10:52
JetJet
2,3482222 silver badges3535 bronze badges
Add a comment |
Highly active question. Earn 10 reputation in order to answer this question. The reputation necessity helps protect this question from spam and also non-answer activity.

Not the answer you're looking for? Browse other questions tagged windows-7 perobjectives or ask your very own question.


The Overcirculation Blog
Featured on Meta
Linked
3
Can't delete some directories as Admin
6
Windows 7 shows “you need permission to perdevelop this action” (deleting file)
0
Operating System on SSD however can't accessibility documents on HDD
0
Unable to delete a file
0
Administrator user get Access Denied and Need Permission
0
Deleting 'review just file'
0
How to delete backed up windows documents on drive
0
Don't have actually permission to delete folder
0
Can't remove Windows 8 user account documents to totally free up space
281
Conclusively soptimal wake timers from waking Windows 10 desktop
See more attached inquiries
Related
6
Can't rename a record in Windows 7
62
File I can't take ownership of
7
Silently Skip Windows 7 UAC Prompts?
8
How to gain perobjectives to copy or delete papers in Windows 8.1?
3
Can't delete device papers from System32/motorists. Need permission
17
Can't delete a folder
Hot Network Questions more hot inquiries
Question feed
Subscribe to RSS
Concern feed To subscribe to this RSS feed, copy and paste this URL right into your RSS reader.


Super User
Company type of
Stack Exchange Netoccupational
site architecture / logo design © 2021 Stack Exadjust Inc; user contributions licensed under cc by-sa. rev2021.3.30.38940


Super User works best with JavaScript allowed
*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exadjust have the right to save cookies on your tool and also disclose indevelopment in accordance through our Cookie Policy.