CentOS mount Windows domain-controlled shared directory

Source: Internet
Author: User

An environment

Server:windows Server R2 DC domain control ip:192.168.1.11

Client:centos 6.5

Two Mount Mounts

Command:

Mount-t cifs-o username= ' test\testuser ', password= ' test ' "//192.168.1.11/server test/test"/mnt/test
Mount:block device//192.168.1.11/server Test/test is write-protected, mounting read-onlymount:cannot mount block device 192.168.1.11/server test/test read-only

Error: write-protected, mounting read-only

Need to install:

Yum Install cifs-utils.x86_64

After the installation is complete, you can continue execution.

Three-boot automatic mount

After Mount Mount is complete, the shutdown expires and you can add a line by modifying the/etc/fstab file to enable the boot mount:

"//192.168.1.11/server test/test"/mnt/test cifs auto,username= ' test\testuser ', password= ' test ' 0 0


Four other

-T CIFS (Common Internet File System) specifies the type of files

-o Specifies options for file mount when RO read-only RW read-write

Username and password are login user name and password, domain environment username need to add domain name

Shared directory address, if the directory name has spaces need to use double quotation marks ""

The shared directory of a server in a Linux mount domain requires the user's account to have read and write access to the shared file.

Five reference links

http://blog.chinaunix.net/uid-8810763-id-2453890.html Mount Command detailed

http://blog.csdn.net/jingxia2008/article/details/50218933 mount failure Password hash problem

http://blog.csdn.net/lanyou1900/article/details/39612585 Boot Auto Mount

This article from "Day Up" blog, please be sure to keep this source http://bshark.blog.51cto.com/10309374/1934609

CentOS mount Windows domain-controlled shared directory

Related Article

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.