Home  >  Article  >  Backend Development  >  怎样在centos7中挂载MACpro上的共享目录

怎样在centos7中挂载MACpro上的共享目录

WBOY
WBOYOriginal
2016-06-06 20:15:141381browse

环境:

  • 虚拟机:vmware fusion8

  • 虚拟机系统:centos7 最小安装

  • 本地机:macPro 系统:OS 10.11

我的试过的方法:

  • 按照这个帖子的方法设置https://segmentfault.com/a/1190000002548622。(MAC上的设置图我贴在后边儿)

  • 虚拟机用的是桥接模式

  • 执行帖子中的命令:

<code>mount -t cifs -o username=myname,password=mypwd,nounix,sec=ntlmssp //mac`s ip/shareDir/ /www/test/</code>

(已替换成自己的参数),提示:mount error(13): Permission denied

  • 查看centOS系统日志,提示如下:

<code>Mar 13 11:44:17 localhost kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Mar 13 11:44:17 localhost kernel: CIFS VFS: Send error in SessSetup = -13
Mar 13 11:44:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13</code>
  • 提示应该是指登录失败,但我确定我的用户名和密码都没错,因为我在别外一台windows电脑上的共享里可以看到我的mac点击连接提示输入用户名密码,输入后可以访问到我mac上共享的目录

  • 在centOS中用mount命令可以成功挂载windows中共享的目

  • 这篇帖子里的方法也试过了:http://zhidao.baidu.com/link?url=3E5wuAZlbJq_8lz5AdIO6Uhs5tE8Lz6jn4DS78CmTs9Ma77CL06zsNJeyc4BZFvMmDS20h_UXNXsnoxeDQ0V3hLKVwsE29qjH3bX3ZWf1p3

  • 通过man mount.cifs,我还试过以下几条命令:

<code>mount -t cifs -o username=myname,password=mypwd //mac`s ip/shareDir/ /www/test/

mount -t cifs -o username=myname,password=mypwd,nounix,sec=ntlmssp,netbiosname=ILIKESMACPRO,domain=WORKGROUP //mac`s ip/shareDir/ /www/test/

mount -t cifs -o username=myname,password=mypwd,netbiosname=NETBIOSNAME,domain=WORKGROUP //mac`s ip/shareDir/ /www/test/

mount -t cifs -o username=myname,password=mypwd,nounix,sec=ntlmssp,noperm,ro //mac`s ip/shareDir/ /www/test/</code>

netbiosname和domain我在mac上也有设置,手册中也说:sets the domain (workgroup) of the user。domain应该就是工作组。几个参数之间的各种组合我也度了下


【MAC上的设置】
怎样在centos7中挂载MACpro上的共享目录
怎样在centos7中挂载MACpro上的共享目录
怎样在centos7中挂载MACpro上的共享目录
怎样在centos7中挂载MACpro上的共享目录
整了好久了不成功,求大神解决方案

回复内容:

环境:

  • 虚拟机:vmware fusion8

  • 虚拟机系统:centos7 最小安装

  • 本地机:macPro 系统:OS 10.11

我的试过的方法:

  • 按照这个帖子的方法设置https://segmentfault.com/a/1190000002548622。(MAC上的设置图我贴在后边儿)

  • 虚拟机用的是桥接模式

  • 执行帖子中的命令:

<code>mount -t cifs -o username=myname,password=mypwd,nounix,sec=ntlmssp //mac`s ip/shareDir/ /www/test/</code>

(已替换成自己的参数),提示:mount error(13): Permission denied

  • 查看centOS系统日志,提示如下:

<code>Mar 13 11:44:17 localhost kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Mar 13 11:44:17 localhost kernel: CIFS VFS: Send error in SessSetup = -13
Mar 13 11:44:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13</code>
  • 提示应该是指登录失败,但我确定我的用户名和密码都没错,因为我在别外一台windows电脑上的共享里可以看到我的mac点击连接提示输入用户名密码,输入后可以访问到我mac上共享的目录

  • 在centOS中用mount命令可以成功挂载windows中共享的目

  • 这篇帖子里的方法也试过了:http://zhidao.baidu.com/link?url=3E5wuAZlbJq_8lz5AdIO6Uhs5tE8Lz6jn4DS78CmTs9Ma77CL06zsNJeyc4BZFvMmDS20h_UXNXsnoxeDQ0V3hLKVwsE29qjH3bX3ZWf1p3

  • 通过man mount.cifs,我还试过以下几条命令:

<code>mount -t cifs -o username=myname,password=mypwd //mac`s ip/shareDir/ /www/test/

mount -t cifs -o username=myname,password=mypwd,nounix,sec=ntlmssp,netbiosname=ILIKESMACPRO,domain=WORKGROUP //mac`s ip/shareDir/ /www/test/

mount -t cifs -o username=myname,password=mypwd,netbiosname=NETBIOSNAME,domain=WORKGROUP //mac`s ip/shareDir/ /www/test/

mount -t cifs -o username=myname,password=mypwd,nounix,sec=ntlmssp,noperm,ro //mac`s ip/shareDir/ /www/test/</code>

netbiosname和domain我在mac上也有设置,手册中也说:sets the domain (workgroup) of the user。domain应该就是工作组。几个参数之间的各种组合我也度了下


【MAC上的设置】
怎样在centos7中挂载MACpro上的共享目录
怎样在centos7中挂载MACpro上的共享目录
怎样在centos7中挂载MACpro上的共享目录
怎样在centos7中挂载MACpro上的共享目录
整了好久了不成功,求大神解决方案

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn