Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an external hard drive and I did something which I shouldn't have done, and I am annoyed that many files are prompting me about Administrator permissions to move a folder. They are regular files.

How do I reset all the permission on the external hard drive?

share|improve this question
    
Do you just want to set all file permissions to something specific? When you say 'reset', I think of 'revert' - which I'm not sure is exactly what you want..? –  Doc Aug 9 '11 at 20:15
    
    
What would be considered not a regular file? –  joeqwerty Aug 9 '11 at 21:06
    
joeqwerty: thing that the OS depends on being there. Such as files in program/ or windows/. This is a extern HD for data files (audios, videos, backed up code, etc).@Doc: I do mean revert. I want any user to add/remove/move files like it was originally –  acidzombie24 Aug 9 '11 at 21:29

2 Answers 2

Run this command to navigate to the drive letter, example is D

D:

To reset all permissions, run this command

icacls * /reset /t /c /q

More info

/reset
    replaces ACLs with default inherited ACLs for all matching files.

/t indicates that this operation is performed on all matching
    files/directories below the directories specified in the name.

/c indicates that this operation will continue on all file errors.
    Error messages will still be displayed.

/q indicates that icacls should supress success messages.

Resetting NTFS files security and permission in Windows 7

share|improve this answer

As answered in comments of this being a duplicate, use cacls with the subdirectory option to go through subfolders as well, with /G:Everyone. So the final command would be: CACLS x:\*.* /G:Everyone /T

share|improve this answer
3  
cacls is being deprecated, for vista or newer you should be using icacls. It adds new features like folder inheritance permissions. –  Scott Chamberlain Oct 26 '12 at 13:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.