映射samba共享时来自网络使用的错误1312 [英] Error 1312 from net use when mapping samba share

查看:184
本文介绍了映射samba共享时来自网络使用的错误1312的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一项服务,该服务监视我的应用程序是否正在运行,如果未运行,则将其启动.结果,该应用程序以系统"用户身份运行-这就是我想要的方式.我有几个这样的安装工作正常.该应用程序应安装网络共享,在这种情况下,该共享可在linux samba服务器上使用.问题是在运行命令时:

I have written a service that monitors if my app is running and starts it if not. In result the app is run as a "system" user - which is the way I want it to be. I have several of those installations working properly. The app should mount a network share that is in this case available on a linux samba server. The problem is that when running the command:

net use X: \\IP\share_name/user:登录密码

显示错误:

发生系统错误1312.

System error 1312 has occured.

指定的登录会话不存在.可能已经终止.

A specified logon session does not exist. It may already have been terminated.

我进行了一些检查,结果发现本地系统中的 X: 驱动器可用,服务器在线,共享可用,凭据正常,此系统中没有其他网络使用会话在运行.我还发现了一个奇怪的行为:以标准用户身份运行相同的命令将获得正确的结果,并且驱动器已正确安装.您有什么建议,可能是什么问题以及如何解决?

I have run some checks and it turns out that the X: drive in local system is available, the server is online, the share is available, the credentials are OK, there are no other net use sessions running in this system. Also I have found out a strange behavior: running identical command as a standard user gives proper results and the drive is mounted properly. Do you have any suggestions what might be the problem and how to solve it?

此外,我不是域成员,并且显示错误的系统是Windows 7 Pro.我在同一网络中还有其他机器可以正常运行,而不会出现错误.

Additionally I am not a domain member, and the system that shows the error is Windows 7 Pro. I have other machines in the same network that do work properly without the error.

推荐答案

我前段时间也遇到过同样的问题.当我在登录前介绍一个域名(即使您不是域成员)时,它也很有帮助.我你的情况下尝试此命令: net use X:\\ IP \ share_name/user:whatEver \ login密码

I have had the same issue some time ago. It helped when I introduced a domain name (even if you are not a domain member) before the login. I your case try this command: net use X: \\IP\share_name /user:whatEver\login password

这篇关于映射samba共享时来自网络使用的错误1312的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆