![]() |
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-09 00:15 |
47,811 topics / 349,895 posts / today 0 new / 48,253 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] How to repair the access permissions for all drives |
| Printable Version 650 / 6 |
| Floor1 wx | Posted 2008-06-02 20:35 |
| 新手上路 Posts 6 Credits 15 | |
|
Changed all drives' permissions to completely deny access
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do (echo.y|cacls %%i:\ /p everyone:n >nul) Help, how do I repair the access permissions for all drives |
|
| Floor2 pusofalse | Posted 2008-06-02 20:38 |
| 银牌会员 Posts 646 Credits 1,604 | |
|
I'm not familiar with the cacls command...
But looking at the code you gave, then to restore access permissions it should definitely be echo.y|cacls %%i:\ /p everyone:y >nul~ |
|
| Floor3 bat-zw | Posted 2008-06-02 23:40 |
| 金牌会员 Posts 1,276 Credits 3,105 | |
| Floor4 HAT | Posted 2008-06-02 23:43 |
| 版主 Posts 5,017 Credits 9,023 | |
| Floor5 bat-zw | Posted 2008-06-02 23:46 |
| 金牌会员 Posts 1,276 Credits 3,105 | |
Originally posted by HAT at 2008-6-2 23:43: Brother, this sets all users' permissions on all drives to full control, but that may not be what the OP means, right? He wants to restore the original permissions, like user A having full control, user B being read-only, user C being write... |
|
| Floor6 pusofalse | Posted 2008-06-02 23:52 |
| 银牌会员 Posts 646 Credits 1,604 | |
|
- -|||| I completely misunderstood it.... n is short for none, I thought it meant no
|
|
| Floor7 HAT | Posted 2008-06-03 00:10 |
| 版主 Posts 5,017 Credits 9,023 | |
Originally posted by zw19750516 at 2008-6-2 11:46 PM: Once the ACLs are gone, how can you restore the original permissions? You can only rely on memory and write a few more cacls commands, I guess. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |