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?

link|improve this question

55% accept rate
Try TAKEOWN /A to give ownership to the Administrator group, and then ICACLS to modify the permissions. – Randolph West Nov 7 '11 at 6:10
feedback

2 Answers

up vote 3 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.

link|improve this answer
feedback

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.

link|improve this answer
1  
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
feedback

Your Answer

 
or
required, but never shown

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