Board logo

标题: 请阅读需求,谢谢 [打印本页]

作者: a11a11a11     时间: 2007-6-5 00:09    标题: 请阅读需求,谢谢

批处理或VBS 完成F盘共享权限设置为完全控制 (WIN2000。FAT32格式。ADMIN登录)
谢谢!~
作者: a11a11a11     时间: 2007-6-5 09:31    标题: 很难吗?

很难吗?
作者: a11a11a11     时间: 2007-6-5 10:36    标题: 斑竹99999999999我啊

斑竹99999999999我啊
作者: HAT     时间: 2007-6-5 10:44
没有FAT32测试环境
CODE:  [Copy to clipboard]
@echo off
rem 共享F盘
net share test=F:\
rem 对everyone用户添加full contorl权限
cacls F:\ /g everyone:f /e

作者: a11a11a11     时间: 2007-6-5 10:51    标题: 谢谢

非常感谢我试试
作者: a11a11a11     时间: 2007-6-5 10:54    标题: 很好用啊 ,谢谢

忠心谢谢HAT
另外能不能给我解释一下最后一条语句的意思,包括参数
作者: HAT     时间: 2007-6-5 11:12
//另外能不能给我解释一下最后一条语句的意思,包括参数

  Quote:
C:\>cacls /?
Displays or modifies access control lists (ACLs) of files

CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]]
               [/P user:perm [...]] [/D user [...]]
   filename      Displays ACLs.
   /T            Changes ACLs of specified files in
                 the current directory and all subdirectories.
   /E            Edit ACL instead of replacing it.
   /C            Continue on access denied errors.
   /G user:perm  Grant specified user access rights.
                 Perm can be: R  Read
                              W  Write
                              C  Change (write)
                              F  Full control
   /R user       Revoke specified user's access rights (only valid with /E).
   /P user:perm  Replace specified user's access rights.
                 Perm can be: N  None
                              R  Read
                              W  Write
                              C  Change (write)
                              F  Full control
   /D user       Deny specified user access.
Wildcards can be used to specify more that one file in a command.
You can specify more than one user in a command.

Abbreviations:
   CI - Container Inherit.
        The ACE will be inherited by directories.
   OI - Object Inherit.
        The ACE will be inherited by files.
   IO - Inherit Only.
        The ACE does not apply to the current file/directory.


作者: a11a11a11     时间: 2007-6-5 11:25    标题: 出了点问题

我F原来的共享权限为只读,现在改为完全控制,该怎么做?
作者: HAT     时间: 2007-6-5 13:01
//我F原来的共享权限为只读,现在改为完全控制,该怎么做?
CODE:  [Copy to clipboard]
@echo off
rem 删除原来的共享
net share F:\ /delete
rem 共享F盘
net share test=F:\
rem 对everyone用户添加full contorl权限
cacls F:\ /g everyone:f /e

作者: a11a11a11     时间: 2007-6-5 14:09    标题: thanks

T Y




欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) Powered by Discuz! 2.5