Samba 共享驱动器在启动时不会自动验证
我在 FreeBSD 机器上有一个 samba 网络共享,用于开发。
我已将其设置为我的 WinXP 机器上的共享驱动器,并且工作正常。
但是,如果我重新启动 xp 盒子,即使我已将其设置为使用正确的用户名和密码并在启动时连接,共享驱动器也将无法访问,直到我单击它并输入密码。
有谁知道可能是什么问题吗? 如有必要,我可以获取版本数据等,但想暂时将其挂在那里,看看这是否是一个常见的 samba 问题。
谢谢!
编辑:
很抱歉! 我以为我说过我有 XP Pro。 实际上,我将身份验证存储在映射驱动器中,其中显示“使用用户进行身份验证”。 我还使用与 xp 登录相同的 samba 共享用户名,但密码不同。
I have a samba network share on a FreeBSD box that I use for development.
I have it set up as a shared drive on my WinXP box, and it works fine.
However, if I reboot the xp box, the shared drive will not be accessible until I click on it and enter the password, even though I have set it to use the correct username and password and to connect at startup.
Does anyone know offhand what might be the issue? I can get version data, etc. if necessary, but wanted to hang this out there briefly to see if it might be a common samba issue.
Thanks!
EDIT:
So Sorry! I thought I had said I have XP Pro. I actually have the auth stored in the mapped drive, where it says "authenticate using user." I also use the same username for the samba share as the xp login, though not the same pw.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
两个选项:在 Samba 共享上设置登录名/密码,使其与您用于登录 Windows XP 的用户名/密码相同。 或者也可以将 XP Home 设置为手动存储凭据:
手动密钥通过以下方式创建:
在框中键入适当的信息:
至于“WinXP Home 无法像 XP Pro 那样存储网络共享的登录凭据”。 这是不正确的:
动态密钥是通过以下方式创建的:
有关详细信息,请参阅:
存储的用户名和密码的行为 - 文章 ID:281660
Two options: set the login/password on the Samba share so it is the same as the username/password you use to login to Windows XP. Or can also set your XP Home to store the credentials manually:
MANUAL Keys are created in the following way:
Type the appropriate information in the boxes:
As for "WinXP Home doesn't have the ability to store login credentials for network shares in the same way that XP Pro does." this is incorrect:
DYNAMIC keys are created in the following way:
For more information please see:
Behavior of stored user names and passwords - Article ID: 281660
要在启动时强制进行身份验证,请运行“net use”(例如,将链接放入启动文件夹中)。 即:
这将向 Samba 服务器验证您的身份并使其可以使用它,而无需先单击它。
To force authentication on startup, run "net use" (by putting a link in the startup folder for example). Ie:
This will authenticate you to the Samba server and make it possible to use it, without clicking on it first.
要让它在启动时映射,您可以将其放入批处理文件中,
将其隐藏在某处...我也找不到从网络使用字符串中获取文字凭据的方法..
然后进入“开始”->“运行 -> Regedit 并找到此键
从那里,您可以添加对该批处理文件的调用,以便它在启动时运行...
右键单击所有值并选择
新 -> 字符串值
将其命名为非 -描述性的,然后通过右键单击它来修改它,然后只需将批处理文件的路径放入值数据字段中
我还设置了一个 samba 共享驱动器,通过将计算机上的登录凭据与计算机上使用的登录凭据相匹配,在启动时自动映射samba 共享......它可能是 Novell 特有的,但请尝试一下
to get it to map on startup, you can put this in a batch file
hide it somewhere... I couldn't find a way to get the literal credentials out of the net use string either..
then go into Start->Run->Regedit and find this key
From there, you can add a call to that batch file so that it runs on startup....
right click under all the values and select
new->string value
name it something non-descriptive and then modify it by right clicking it and then just put the path to the batch file into the value data field
I also set up a samba share drive to be mapped automatically on startup by matching the login credentials on the computer to those used on the samba share...... it might be specific for Novell, but give it a shot
WinXP Home 无法像 XP Pro 那样存储网络共享的登录凭据。
根据 Cd-MaN 的响应 - 创建一个批处理文件,其中包含相关的 NET USE 命令,并在“启动”菜单项中放置该批处理文件的快捷方式。
WinXP Home doesn't have the ability to store login credentials for network shares in the same way that XP Pro does.
As per Cd-MaN's response - create a batch file with the relevant
NET USE
commands in it and put a shortcut to that batch file in your Startup menu items.