#smbclient //ballzdeep/torrents
Server not using user level security and no password supplied
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
这是否意味着我的驱动器需要用户名和密码? Windows 和 Ubuntu 通过它们的 GUI 连接到它,但我无法让 CentOS 6.3 这样做。
答案1
通常,您需要创建某种凭据文件并在挂载 cifs/samba 共享时使用它。这是使用 fstab 的示例
# insecure and common usage
//share/dir /mnt/myshare cifs username=user,password=pass
# more secure usage
Create a credentials file in /etc/ that has 0600 permissions for root.
Call it fileshare
//share/dir /mt/myshare cifs credentials=/etc/fileshare
cat /etc/fileshare
username=yourusername
password=youpass
如果您愿意,您可以手动安装它。
smbmount //share/dir /mnt/myshare -o credentials=/etc/fileshare