The shared directory under the Linux mount AD domain

Source: Internet
Author: User

Note the contents of the red flag

Today, on a VM virtual machine, a shared directory is required to mount a host (a Windows host in the ad domain) . But it's not always mounted. As shown below

[Email protected] ~]# mount-t cifs-o username=xxx,password=123456//192.168.5.99/software/mnt/
Mount Error: Permission denied
Refer to the Mount.cifs (8) manual page (e.g. Mans mount.cifs)

Do you have a problem with your permission to report this error? Or what?

First of all, the file system shared by Linux is NFS, and the file system that is shared under Windows is the Cifs,mount command that supports both systems, but NFS is the default, and if you want to mount a directory under Windows you must specify that the mounted file system is CIFS

So using the-t option is not wrong.

Second, Selinux,iptables, the host's firewall, and so on I have to shut it down. The result is still.

Re-set the host's shared directory to confirm that there are no problems. The results still remain.

Think wrong ah, used to be on the machine of the mainframe, all can be, why this time not? Then think about whether it was username wrong? But the machine name is it, right? do you want to add the domain name ? Take a try attitude, command the following

[Email protected] ~]# mount-t cifs-o username= "dyyt/xxx", password=123456//192.168.5.99/software/mnt/

OK, this time. Mounted successfully. ....................................

It's been a long time ... and it's been a lot. Dizzy. is username error, be sure to add the full name of the computer user, that is, the computer in the login interface waiting for the user to enter the password, the above display of the user name .

This article is from "Linux rookie" blog, please be sure to keep this source http://ludihua.blog.51cto.com/4601284/1629894

The shared directory under the Linux mount AD domain

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.