Mount -t cifs在一个版本的linux上有效,但在另一个版本上不可用 [英] Mount -t cifs works on one version of linux but not another

查看:962
本文介绍了Mount -t cifs在一个版本的linux上有效,但在另一个版本上不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个树莓派,我试图在上面安装远程samba共享,但是我被拒绝了权限.在另一个安装中,使用相同命令的相同共享起作用.

I have a raspberry pi that I am trying to mount a remote samba share on, but I get permission denied. On another mounting the same share with th same command works.

Raspberry pi:

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

Is this a kernel issue or a linux version issue? Is there a way to make this work?

推荐答案

在选项中使用sec=ntlm

内核版本post 3.8.x进行了更改,mount.cifs没有显式传递此参数,因此失败

Kernel versions post 3.8.x have this changed, and mount.cifs doesn't pass this argument, explicitly, Hence fails

引用: 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

它应该可以工作

这篇关于Mount -t cifs在一个版本的linux上有效,但在另一个版本上不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆