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

时间:2013-10-16 19:58:28

标签: linux ubuntu linux-kernel mount cifs

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

Raspberry pi:

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

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

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

1 个答案:

答案 0 :(得分: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

它应该有效

相关问题