Possible Duplicate:
How to grant permission to users for a directory using command line in Windows?
I want to grant all users of a system the permissions of read, write and modify for a folder. I think there would be a command line that I use to do that, but if there is nothing and I have to write a code for it please help me with it.
Main Problem is that I want to grant these permissions to all users, usually I don't care about UserNames and I want to put "*" instead of usernames, to apply new permissions for all users.
any idea? Thanks.
To preserve permissions when files and folders are copied or moved, use the Xcopy.exe utility with the /O or the /X switch. The object's original permissions will be added to inheritable permissions in the new location.
root user run the chmod -R 777 / command and all file permissions for the entire system have read/write/execute for every user.
There is a command line - CACLS.
For example, to add "Everyone" with "Full Control" to the folder c:\temp\test
you would use:
REM /t means "apply change recursively"
REM /e means "edit existing DACL".
REM Omitting this will overwrite the existing DACL.
cacls c:\temp\Test /t /e /g Everyone:f
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With