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