mount -t cifs适用于一个版本的linux而不是另一个版本

Den*_*isk 2 linux ubuntu mount cifs linux-kernel

我有一个覆盆子pi,我正在尝试安装远程samba共享,但我得到许可否认.在另一个安装上,使用相同命令的相同共享有效.

树莓派:

root@xbian:~# mount -t cifs //192.168.249.72/root /media/SS -o username=root,password=654321
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@xbian:~# uname -a
Linux xbian 3.9.8+ #2 PREEMPT Tue Jul 2 17:38:12 CEST 2013 armv6l GNU/Linux
Run Code Online (Sandbox Code Playgroud)

Ubuntu的:

root@dakLinux:~#  mount -t cifs //192.168.249.72/root /media/SS -o username=root,password=654321
root@dakLinux:~# uname -a
Linux dakLinux 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 i686 i686 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

这是内核问题还是Linux版本问题?有没有办法让这项工作?

S47*_*471 9

使用sec=ntlm的选项

内核版本post 3.8.x已更改,并且mount.cifs未明确传递此参数,因此失败

参考:https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id = 81bcd8b795229c70d7244898efe282846e3b14ce

mount -t cifs //192.168.249.72/root /media/SS -o username=root,password=654321,sec=ntlm
Run Code Online (Sandbox Code Playgroud)

它应该工作