mount -v -t cifs //<storageaccount>.file.core.windows.net/<sharename> <localfolder> -o username=<myuser>,password=<storageaccountkey>,dir_mode=0777,file_mode=0777,vers=3.0
如果我使用等效命令从Azure Ubuntu VM或我的Windows机器运行它,它的工作正常.
试图在我的Linux机器上运行相同的命令我收到以下错误:
mount error(13): Permission denied
这来自dmesg:
[ 9421.865985] Status code returned 0xc0000022 STATUS_ACCESS_DENIED
[ 9421.865994] CIFS VFS: Send error in SessSetup = -13
[ 9421.866098] CIFS VFS: cifs_mount failed w/return code = -13
我有与VM相同版本的CIFS:6.4.
我在我的内核(4.4.21-gentoo)中启用了SMB2-SMB3-SMB3.1.1(实验性).
我也安装了samba(并且它也不能与smbclient一起使用)但是我理解它们是无关的.
解决方法
The Linux SMB client doesn’t yet support encryption,so mounting a
file share from Linux still requires that the client be in the same
Azure region as the file share. However,encryption support for Linux
is on the roadmap of Linux developers responsible for SMB
functionality. Linux distributions that support encryption in the
future will be able to mount an Azure File share from anywhere as
well.
更多信息:
https://azure.microsoft.com/en-us/documentation/articles/storage-how-to-use-files-linux/#overview
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。