How can I grant permissions to a user on a directory (Read, Write, Modify) using the Windows command line?
相关问题
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
- I want to trace logs using a Macro multi parameter
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- CosmosDB emulator can't start since port is al
- How to print to stdout from Python script with .py
- Determine if an executable (or library) is 32 -or
XCACLS.VBS is a very powerful script that will change/edit ACL info. c:\windows\system32\cscript.exe xcacls.vbs help returns all switches and options.
You can get official distribution from Microsoft Support Page
I am Administrator and some script placed "Deny" permission on my name on all files and subfolders in a directory. Executing the
icacls "D:\test" /grant John:(OI)(CI)F /T
command did not work, because it seemed it did not remove the "Deny" right from my name from this list.The only thing that worked for me is resetting all permissions with the
icacls "D:\test" /reset /T
command.You can also use ICACLS.
To grant the Users group Full Control to a folder:
To grant Modify permission to IIS users for
C:\MyFolder
(if you need your IIS has ability to R/W files into specific folder):If you do ICACLS /? you will be able to see all available options.
Use
cacls
command. See information here.Just in case there is anyone else that stumbles on this page, if you want to string various permissions together in the one command, I used this:
Note the csv string for the various permissions.