Samba 共享驱动器在启动时不会自动验证

发布于 2024-07-10 06:49:37 字数 376 浏览 5 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

两个选项:在 Samba 共享上设置登录名/密码,使其与您用于登录 Windows XP 的用户名/密码相同。 或者也可以将 XP Home 设置为手动存储凭据:

手动密钥通过以下方式创建:

  1. 启动“控制面板”中的“存储的用户名和密码”工具。
  2. 单击添加。
  3. 在框中键入适当的信息:

    • 服务器:使用主机名、FQDN、通配符等。
    • 用户名:域\用户名; 机器\用户名; UPN。
    • 密码:输入密码。

至于“WinXP Home 无法像 XP Pro 那样存储网络共享的登录凭据”。 这是不正确的:

动态密钥是通过以下方式创建的:

  1. 用户尝试连接到 \\server\share。
  2. 尝试使用用户的登录凭据。 如果这些无法访问,则会提示“存储的用户名和密码”。
  3. 成功连接后,或者在返回的错误消息上单击“取消”时,凭据将放入“存储的用户名和密码”中。

有关详细信息,请参阅:

存储的用户名和密码的行为 - 文章 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:

  1. Start the Stored User Names and Passwords tool in Control Panel.
  2. Click Add.
  3. Type the appropriate information in the boxes:

    • Server: Use the hostname, FQDN, wildcards, and so forth.
    • User Name: Domain\Username; Machine\Username; UPN.
    • Password: Type the password.

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:

  1. A user attempts to connect to \\server\share.
  2. The user's logon credentials are attempted. If these do not gain access, Stored User Names and Passwords prompts.
  3. Credentials are put in Stored User Names and Passwords after it successfully connects, or if Cancel is clicked on a returned error message.

For more information please see:

Behavior of stored user names and passwords - Article ID: 281660

新雨望断虹 2024-07-17 06:49:37

要在启动时强制进行身份验证,请运行“net use”(例如,将链接放入启动文件夹中)。 即:

NET USE \\computer\share "password" /USER:user

这将向 Samba 服务器验证您的身份并使其可以使用它,而无需先单击它。

To force authentication on startup, run "net use" (by putting a link in the startup folder for example). Ie:

NET USE \\computer\share "password" /USER:user

This will authenticate you to the Samba server and make it possible to use it, without clicking on it first.

み格子的夏天 2024-07-17 06:49:37

要让它在启动时映射,您可以将其放入批处理文件中,

@echo off
NET USE \\computer\share "password" /USER:user

将其隐藏在某处...我也找不到从网络使用字符串中获取文字凭据的方法..

然后进入“开始”->“运行 -> Regedit 并找到此键

\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

从那里,您可以添加对该批处理文件的调用,以便它在启动时运行...

右键单击所有值并选择

新 -> 字符串值

将其命名为非 -描述性的,然后通过右键单击它来修改它,然后只需将批处理文件的路径放入值数据字段中


我还设置了一个 samba 共享驱动器,通过将计算机上的登录凭据与计算机上使用的登录凭据相匹配,在启动时自动映射samba 共享......它可能是 Novell 特有的,但请尝试一下

to get it to map on startup, you can put this in a batch file

@echo off
NET USE \\computer\share "password" /USER:user

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

\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

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

寄离 2024-07-17 06:49:37

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文