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 HDD and I kind of messed up the file permissions but when fixing it I thought it is ok bc with my username I can access the files perfectly fine. Now that I use this with two PC (actually ATM I don't have access to my other PC) I can't access these files.

The problem is this directory has hundreds of folders with no permission for "everyone". I would like to give it the default permissions including have all access for the user "everyone". How do I do that via command line for these hundreds of folders?

share|improve this question
Try TAKEOWN /A to give ownership to the Administrator group, and then ICACLS to modify the permissions. –  user3463 Nov 7 '11 at 6:10

2 Answers 2

up vote 12 down vote accepted

Use takeown to take ownership of the file

takeown /r /d y /f * 

^ Recursively takes ownership of all files without prompting "are you sure".

Follow it up with icacls set the access control list

icacls * /t  /grant Everyone:F

This will recursively grant Full access to user group "Everyone" to all files in the folder.

share|improve this answer

Try 'Sharing' the drive with "Everyone". Also, make sure you give read/write access if you want to change anything on another computer. This is how I was able to use my externals on several computers.

share|improve this answer
Sharing is different from permissions. Sharing changes how people can access the drive over the network, while permissions changes who can access the drive directly. –  nhinkle Nov 7 '11 at 7:21

Your Answer


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.