The Computer Oracle

How do I add permissions via command line for "everyone" on external HDD

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 How Do I Add Permissions Via Command Line For &Quot;Everyone&Quot; On External Hdd
00:49 Accepted Answer Score 41
01:19 Answer 2 Score 0
01:35 Thank you

--

Full question
https://superuser.com/questions/354638/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows7 #filepermissions

#avk47



ACCEPTED ANSWER

Score 41


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.




ANSWER 2

Score 0


This set owner of folder or file to group "Everyone" command works on windows 7 and above:

icacls "full path of file with file extension" /setowner "Everyone" /T /C