我正在尝试使用 Samba 客户端从Windows 10 Home访问文件共享。但是会发生以下错误...
1# - smbclient
[root@eduardo-nb eduardo]# smbclient -L 192.168.0.5 -W WORKGROUP -U eduardo
Enter WORKGROUP\eduardo's password:
session setup failed: NT_STATUS_LOGON_FAILURE
2# - 海豚
注意:获得共享访问权限的唯一方法是按照此处描述的过程...
...包括允许访问“所有人”和“关闭密码保护共享”。
问题:我想与我现有的 Windows 10 家庭用户(具有管理特权)访问此共享...那么可能发生什么?
谢谢!=D
[参考:https : //askubuntu.com/q/47291/134723,https : //askubuntu.com/q/109507/134723,https: //answers.microsoft.com/en-us/windows/forum/全部/文件共享-不工作/e6df6ac5-bb5a-41b3-8253-bd59b49d94bd,https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/samba-client-and-windows- 10-home/a7502032-240a-4fc8-a756-132d46831adf?tm=1568998329476]
更新我:我的/etc/samba/smb.conf
...
@harrymc
[global]
workgroup = WORKGROUP
server string = Samba Server
allow insecure wide links = yes
printcap name = /etc/printcap
load printers = yes
log file = /var/log/samba/%m.log
max log size = 50
security = user
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[eduardo]
follow symlinks = yes
wide links = yes
comment = Manjaro Linux Samba share
path = /home/eduardo
available = yes
valid users = eduardo
read only = no
browseable = yes
public = no
writeable = yes
真正的问题:
正如你在这张图片中看到的......
...我的用户“eduardo”实际上是“alldocube”...如上面的打印所示,用户“eduardo”(“alldocube”)在系统中的方式引起了巨大的混乱!其实我无法理解它是怎么发生的...
解决方案:
因此,唯一需要做的就是为用户“alldocube”(在我的情况下)共享(属性>共享)驱动器“D”,并为用户“alldocube”在驱动器“D”上授予权限(属性>安全) ”。
要使用 Linux 访问共享,请打开文件浏览器(在我的例子中是 Dolphin)并在路径字段中输入
smb://WORKGROUP\<YOUR_USER>@<SERVER_IP>/<SHARE_NAME>
(smb://WORKGROUP\[email protected]/D
在我的例子中)。[参考:https ://answers.microsoft.com/en-us/windows/forum/windows_10-networking/samba-client-and-windows-10-home/a7502032-240a-4fc8-a756-132d46831adf?tm= 1568998388625&auth=1&page=2 ]
谢谢!=D