中国DOS联盟论坛

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-10 23:05
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help] Need a batch file to change folder audit permissions
Printable Version  1,279 / 7
Floor1 angel144 Posted 2007-02-07 00:46
初级用户 Posts 26 Credits 66
Recently some machines got infected, and the folder permissions on drive E were changed. The CACLS command is totally useless,
it says "Access is denied". Then I checked the folder, and there wasn't a single user left. Looking again, there wasn't even a single owner left. After clicking Replace owner on subcontainers and objects, then I could use the CACLS command to change it back.
Now the problem is, I want to ask, can any expert teach me how to change the owner back under DOS? How should this command be written?
I want to write a batch file, changing them one machine at a time is too troublesome. .
Thanks
Floor2 angel144 Posted 2007-02-07 22:14
初级用户 Posts 26 Credits 66
Bump again
Floor3 Wengier Posted 2007-02-07 23:14
系统支持 Posts 10,521 Credits 27,736
Wrong section. Bumping it again is no use.
Floor4 DOSroot Posted 2008-12-15 07:40
管理员 Posts 198 Credits 389

Moved from DOS Troubleshooting & Problem Discussion (Help Room)


This thread is very good, keep it for educational purposes. I'll move it over anyway, others can continue replying to the topic.
Floor5 lxmxn Posted 2008-12-15 08:08
版主 Posts 4,938 Credits 11,386
DOSroot, grave-digging? You dug up a thread that's almost two years old, heh...
Floor6 DOSroot Posted 2008-12-15 08:48
管理员 Posts 198 Credits 389
I've been sorting out the forum threads bit by bit, all of them.

As I've said before, unresolved problems can continue to be replied to, or if there's a better solution it can also be posted. As for truly meaningless replies, whether old or new, they're all subject to deletion.

http://www.cn-dos.net/forum/viewthread.php?tid=44597
Floor7 HAT Posted 2008-12-15 10:04
版主 Posts 5,017 Credits 9,023
Even if someone gives a solution, who knows where the OP has gone? How can we get him/her to confirm whether the problem was solved?
This thread is locked.
Floor8 DOSroot Posted 2008-12-15 10:54
管理员 Posts 198 Credits 389
Although a given problem is raised by one particular person, it actually represents a large group of people with similar problems. If earlier people ran into this problem, later people will run into the same problem too, unless they learn the solution beforehand. Therefore, answering and discussing problems is actually about the "matter," not the "person". The poster may ignore their own thread for various reasons, but the problem they raised and the solutions proposed by everyone are still worth learning from and using as reference for those who come later. The original poster's problem may still not have been solved, and others may have the same problem too. If replies are uniformly forbidden, it will inevitably cause repeated posting. It is precisely because we don't want to waste the forum's resources that people are encouraged to search first and then ask questions; for still-unsolved problems, we hope that someone who knows will see them and come help solve them.
A forum, especially a technical forum, is not an entertainment news forum with such strong timeliness. A forum is not a running logbook, but a resource library, a resource library for solving all kinds of problems. Many problems do not have any timeliness at all. So when it comes to replies, it depends on what kind of reply it is; whether it is meaningful should not be divided by time. Some newly posted topics also get replies consisting of just the word "bump"—what is there to "bump" about?

Of course, that isn't my purpose in replying to this thread; the reason was already stated in #4.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023