可以将用户添加到现有共享文件夹吗?

时间:2014-07-24 18:09:04

标签: directory share account

我正在尝试使用psexec将用户帐户添加到共享文件夹。我试过这个:

net share myshare=c:\myfolder /grant:"domain\bob",FULL

但它返回“名称已被共享”。但是,如果我删除共享,然后重新创建它:

net share myshare/delete
net share myshare=c:\myfolder /grant:"domain\bob",FULL /grant:"jane",FULL /grant:"everyone",READ /grant:"sue",FULL

它有效。但是,有没有办法只是在现有的份额中添加一个用途?感谢

1 个答案:

答案 0 :(得分:2)

我可以使用subinacl设置权限:

 http://www.microsoft.com/en-us/download/details.aspx?id=23510

一些文档/用法:

 http://myousufali.wordpress.com/2012/02/17/edit-permissions-with-subinacl/

 http://ss64.com/nt/subinacl.html

这是我使用的命令:

 subinacl /verbose=1 /share \\<ip>\<sharename> /grant=<username>=f