Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use batch file to give a folder permission to the Everyone group

Im trying to add the group Everyone and give it modify permissions on a folder. Im using a batch file to try this. so for I have icacls "C:\Program Files (x86)\Program File" /grant:r Everyone:M But when I go and look at the permissions on the folder nothing has been changed.

like image 476
rangerr Avatar asked May 07 '14 19:05

rangerr


People also ask

What is the command to set the execute permissions to all the files?

To modify the permission flags on existing files and directories, use the chmod command ("change mode"). It can be used for individual files or it can be run recursively with the -R option to change permissions for all of the subdirectories and files within a directory.

Which command is used to change the file permission to read only for all users?

The chmod command enables you to change the permissions on a file. You must be superuser or the owner of a file or directory to change its permissions.


1 Answers

No need to put :r after /grant. Check the examples by typing icacls /?

Do like this:

icacls "C:\Program Files (x86)\Program File" /grant Everyone:M
like image 122
Sunny Avatar answered Nov 16 '22 01:11

Sunny