China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-10 22:00
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Need a batch file to change folder audit permissions View 1,277 Replies 7
Original Poster Posted 2007-02-07 00:46 ·  中国 广东 佛山 电信
初级用户
Credits 66
Posts 26
Joined 2007-02-03 11:11
19-year member
UID 78522
Gender Male
Status Offline
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
Floor 2 Posted 2007-02-07 22:14 ·  中国 广东 佛山 禅城区 电信
初级用户
Credits 66
Posts 26
Joined 2007-02-03 11:11
19-year member
UID 78522
Gender Male
Status Offline
Bump again
Floor 3 Posted 2007-02-07 23:14 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Wrong section. Bumping it again is no use.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 4 Posted 2008-12-15 07:40 ·  中国 上海 杨浦区 电信
管理员
★★
Credits 389
Posts 198
Joined 2008-09-23 12:00
17-year member
UID 126405
Gender Male
Status Offline

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.
Floor 5 Posted 2008-12-15 08:08 ·  中国 湖北 武汉 联通
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
DOSroot, grave-digging? You dug up a thread that's almost two years old, heh...
Floor 6 Posted 2008-12-15 08:48 ·  中国 上海 杨浦区 电信
管理员
★★
Credits 389
Posts 198
Joined 2008-09-23 12:00
17-year member
UID 126405
Gender Male
Status Offline
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
Floor 7 Posted 2008-12-15 10:04 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
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.
Floor 8 Posted 2008-12-15 10:54 ·  中国 上海 虹口区 电信
管理员
★★
Credits 389
Posts 198
Joined 2008-09-23 12:00
17-year member
UID 126405
Gender Male
Status Offline
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.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
wangff +1 2008-12-15 14:18
Forum Jump: