共享文件夹:The user has not been granted the requested logon type at this computer

时间:2022-10-26 11:47:28

场景重现

今天做一个项目测试,要用到虚拟机,于是在虚拟机(XP 32)上新建了一个共享的文件夹。然后我在Win7 机器*问它得到如下的error 消息:

共享文件夹:The user has not been granted the requested logon type at this computer

后来查到MSDN 上网站上有一个信息:

MSDN 上的文章: The user has not been granted the requested logon type at this computer

总的MSDN上的文章是说下面的这个,在“Allow log on locally”中加入需要进行log的用户,但是我试了,单单只是这样设置没效果,还需要我下面的2个设置。

共享文件夹:The user has not been granted the requested logon type at this computer

后来我在Xp和Win7电脑中更改了另外安全设置就好了

一。Xp电脑(有共享文件夹)

①打开组策略

共享文件夹:The user has not been granted the requested logon type at this computer

②设置“拒绝从网络访问这台计算机”

共享文件夹:The user has not been granted the requested logon type at this computer

我们能看到一个Guest用户已经被禁用了!~好,我们把那Guest给删除。

共享文件夹:The user has not been granted the requested logon type at this computer

XP 这边就已经设置好了。

二。Win7 计算机方面

启用Guest用户,如下所示,

共享文件夹:The user has not been granted the requested logon type at this computer

三。访问成功

共享文件夹:The user has not been granted the requested logon type at this computer