icacls * /reset /t /c /q
I was looking for an equivalent to chmod and this seems to be it. The old DOS command attrib does not exist anymore. Neither does chattr (I think that one was QNX from the late 80s/early 90s).
This was the only way I could find to claim ownership on some files I had written in linux but needed access to in Windows.
Hope this helps someone else!
/t | Performs the operation on all specified files in the current directory and its subdirectories. |
---|---|
/c | Continues the operation despite any file errors. Error messages will still be displayed. |
/q | Suppresses success messages. |
For more information, be sure to check out the icacls documentation on Technet.
Note: To take effect you may need to run this as Administrator in order to change permissions on some files
