首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >超VVM(迷航版本1.8.4) *许可被拒绝*

超VVM(迷航版本1.8.4) *许可被拒绝*
EN

Stack Overflow用户
提问于 2016-06-23 21:26:33
回答 1查看 462关注 0票数 1

我有一个用Vagrant1.8.4构造的Hyper,我正在尝试使用“流浪者powershell”命令来启动一个脚本(使用木偶)到VM上。有些目录很容易访问,比如C:\user\迷走眼。我完全控制了这个文件夹和所有后续目录。每当我尝试启动脚本,甚至使用'dir‘命令访问某些文件夹时,我都会得到一个错误,该错误声明“拒绝权限”。

下面是一个简单的“迷航powershell -c 'C:\provision\shell'”命令的输出:

代码语言:javascript
复制
vagrant : The following WinRM command responded with a non-zero exit status.
    + CategoryInfo          : NotSpecified: (The following W...ro exit status.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

Vagrant assumes that this means the command failed!
dir 'C:\provision\shell'
Stdout from the command:
Stderr from the command:
#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><S S="Error">dir : Access to the 
path 'C:\provision\shell' is denied._x000D__x000A_</S><S S="Error">At line:1 char:40_x000D__x000A_</S><S 
S="Error">+ $ProgressPreference='SilentlyContinue';dir 'C:\provision\shell'_x000D__x000A_</S><S S="Error">+         
                               ~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : 
PermissionDenied: (C:\provision\shell:String) [Get-ChildItem], UnauthorizedAccessExcepti _x000D__x000A_</S><S 
S="Error">   on_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : 
DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand_x000D__x000A_</S><S S="Error"> 
_x000D__x000A_</S></Objs>

如果有人能帮我弄清楚为什么我会得到这些“许可被拒绝”的错误,那就太好了!

如能提供任何协助,将不胜感激。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-07-07 20:59:57

这个问题在于,在远程pssession中,我试图使用“流浪汉powershell”连接到VM。Windows没有传递我的凭据,因为我被远程访问并试图将SMB文件夹访问回VM主机,这不是我的本地机器。SMB共享文件夹是一个“符号链接”,这是发生跳闸的地方。如果我有一个委托令牌(例如,使用CredSSP),可能会授予访问权限。

正如我在评论中所指出的那样,我的能够通过配置的PowerShell脚本复制共享文件夹的内容。很丑,但很管用。

感谢码凯曾帮助我制定了一个回应(在信用到期的信用)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38002144

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档