![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-05 11:21 |
48,038 topics / 350,123 posts / today 1 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » Modify folder access permissions using CMD??? |
| Printable Version 2,457 / 7 |
| Floor1 utem999 | Posted 2006-10-08 02:08 |
| 初级用户 Posts 54 Credits 135 | |
|
If a file like 1.exe, 2.exe, 3.exe is created in the system, how to use CMD to make these folders inaccessible, including the super user
[ Last edited by utem999 on 2006-10-8 at 06:20 ] |
|
| Floor2 lxmxn | Posted 2006-10-08 04:54 |
| 版主 Posts 4,938 Credits 11,386 | |
Originally posted by utem999 at 2006-10-8 02:08: “There are files like 1.exe, 2.exe, 3.exe created in the system” is contradictory to “use CMD to make these folders inaccessible”. Please make the problem clearer, the LZ. In addition, the topic is relatively vague. It is recommended to modify the topic, such as: “Use CMD to modify folder access permissions” and so on... |
|
| Floor3 zerocq | Posted 2006-10-08 04:58 |
| 中级用户 Posts 196 Credits 458 | |
|
Permissions settings should probably use xcacls.
LZ, refer to this webpage and take a look, I haven't studied it. http://www.2mysite.net/blogview.asp?logID=648 |
|
| Floor4 utem999 | Posted 2006-10-08 06:22 |
| 初级用户 Posts 54 Credits 135 | |
Originally posted by utem999 at 2006-10-8 02:08: First create the file Then set the access permissions |
|
| Floor5 weilong888 | Posted 2006-10-08 06:49 |
| 银牌会员 Posts 548 Credits 1,270 | |
|
If it is an NTFS partition, only the system user can access it, and even the administrator account cannot access it.
|
|
| Floor6 utem999 | Posted 2006-10-08 07:43 |
| 初级用户 Posts 54 Credits 135 | |
Originally posted by utem999 at 2006-10-8 06:22: It is an NTFS partition |
|
| Floor7 payxl | Posted 2007-07-09 00:33 |
| 初级用户 Posts 14 Credits 26 | |
|
If it is 1.exe, you can use:
cacls 1.exe /e /t /r "Administrators" cacls 1.exe /e /t /r "Administrator" cacls 1.exe /e /t /r "users" cacls 1.exe /e /t /r "system" cacls 1.exe /e /t /r "everyone" If there are other users on your machine, you can also use the same method to add users who are not allowed to access |
|
| Floor8 zxlxsqzy | Posted 2007-07-28 15:42 |
| 初级用户 Posts 47 Credits 126 | |
|
Let's see, the original text is in Chinese but the content after is a batch command. The translated text would be:
See if this works echo y|cacls "path\1.exe" /d everyone echo y|cacls "path\2.exe" /d everyone echo y|cacls "path\3.exe" /d everyone |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |