2

我有一个树莓派,我试图在其上挂载一个远程 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

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版本问题?有没有办法使这项工作?

4

1 回答 1

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

它应该可以工作

于 2013-10-17T09:07:30.817 回答