在全新的 kubuntu 19.04 安装中,无法从 shell 挂载 samba 共享(来自 linux samba 服务器)
root@client:~# mount -t cifs -o user=myuser //myserver/myshare /home/user/myserver/myshare/
Password for myuser@//myserver/myshare: *****
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
但是共享、挂载点和用户(凭据)存在并且是正确的:
smbclient -L myserver -U mygroup\\myuser
Enter MYGROUP\MYUSER's password:
Sharename Type Comment
--------- ---- -------
myshare Disk
[...]
~# ls -al /home/user/myserver/myshare/
insgesamt 8
drwxrwxrwx 2 user user 4096 Jul 30 19:21 .
drwxrwxr-x 3 user user 4096 Jul 30 19:21 ..
我也可以使用smb://
协议打开共享,例如 dolphin 这曾经在以前的 ubuntu 版本中工作多年。
客户端系统:
~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
~# uname -a
Linux mypc 5.0.0-21-generic #22-Ubuntu SMP Tue Jul 2 13:27:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
已安装的软件包(来自 apt 日志):
install cifs-utils:amd64 <keine> 2:6.8-2
install keyutils:amd64 <keine> 1.6-6
install samba-common:all <none> 2:4.10.0+dfsg-0ubuntu2.2
install smbclient:amd64 <keine> 2:4.10.0+dfsg-0ubuntu2.2
服务器 samba 版本:
~# smbd --version
Version 3.6.25