How to mount a shared directory on MacPro in CENTOS7

Source: Internet
Author: User

Environment:

    • Virtual machines: VMware Fusion8

    • Virtual machine system: CENTOS7 Minimum Installation

    • Local machine: MacPro system: OS 10.11

My tried-and-tested approach:

    • Follow the instructions in this post to set up https://segmentfault.com/a/1190000002548622. (The settings diagram on Mac I put on the back)

    • The virtual machine uses a bridging mode

    • To execute a command in a post:

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

(has been replaced with its own parameters), Tip: Mount Error: Permission denied

    • To view the CentOS system log, you are prompted as follows:

Mar 13 11:44:17 localhost kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILUREMar 13 11:44:17 localhost kernel: CIFS VFS: Send error in SessSetup = -13Mar 13 11:44:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13
    • The hint should be login failure, but I'm sure my username and password are correct, because I can see my Mac Click the Connect prompt to enter the username and password when I am in a share on a Windows PC, and I can access the shared directory on my Mac when I enter it.

    • Using the Mount command in CentOS, you can successfully mount a shared item in Windows

    • The methods in this post have also been tried: http://zhidao.baidu.com/link?url=3E5wuAZlbJq_ 8lz5adio6uhs5te8lz6jn4ds78cmts9ma77cl06zsnjeyc4bzfvmmds20h_uxnxsnoxedq0v3hlkvwse29qjh3bx3zwf1p3

    • Through man mount.cifs, I also tried the following commands:

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/

NetBIOSname and domain I also have settings on my Mac, which also says: Sets the domain (workgroup) of the user. Domain should be a workgroup. A variety of combinations between several parameters I also have a degree.

"Settings on Mac"




It's been a long time. unsuccessful, ask God for solutions

Reply content:

Environment:

    • Virtual machines: VMware Fusion8

    • Virtual machine system: CENTOS7 Minimum Installation

    • Local machine: MacPro system: OS 10.11

My tried-and-tested approach:

    • Follow the instructions in this post to set up https://segmentfault.com/a/1190000002548622. (The settings diagram on Mac I put on the back)

    • The virtual machine uses a bridging mode

    • To execute a command in a post:

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

(has been replaced with its own parameters), Tip: Mount Error: Permission denied

    • To view the CentOS system log, you are prompted as follows:

Mar 13 11:44:17 localhost kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILUREMar 13 11:44:17 localhost kernel: CIFS VFS: Send error in SessSetup = -13Mar 13 11:44:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13
    • The hint should be login failure, but I'm sure my username and password are correct, because I can see my Mac Click the Connect prompt to enter the username and password when I am in a share on a Windows PC, and I can access the shared directory on my Mac when I enter it.

    • Using the Mount command in CentOS, you can successfully mount a shared item in Windows

    • The methods in this post have also been tried: http://zhidao.baidu.com/link?url=3E5wuAZlbJq_ 8lz5adio6uhs5te8lz6jn4ds78cmts9ma77cl06zsnjeyc4bzfvmmds20h_uxnxsnoxedq0v3hlkvwse29qjh3bx3zwf1p3

    • Through man mount.cifs, I also tried the following commands:

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/

NetBIOSname and domain I also have settings on my Mac, which also says: Sets the domain (workgroup) of the user. Domain should be a workgroup. A variety of combinations between several parameters I also have a degree.

"Settings on Mac"




It's been a long time. unsuccessful, ask God for solutions

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.