Centos挂载windows域控共享目录

发布时间:2020-08-01 09:48:03 作者:yw天天向上
来源:网络 阅读:2221

一 环境

  SERVER:windows server 2012 R2 DC域控 IP:192.168.1.11

  CLIENT:Centos 6.5

二 mount挂载

  命令:

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-only
mount: cannot mount block device //192.168.1.11/server test/test read-only

  报错:write-protected, mounting read-only

  需要安装: 

yum install cifs-utils.x86_64

  安装完成之后 继续执行就可以。

三 开机自动挂载

 mount挂载完成之后,关机之后就失效了,可以通过修改/etc/fstab 文件实现开机挂载 添加一行:

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


四 其他

  -t cifs(common internet file system) 指定文件类型

  -o 指定文件挂载时的选项 ro 只读 rw 读写

  username和password是登录的用户名和密码,域环境下用户名需要加上域名

  共享的目录地址,如果目录名有空格需要用双引号""

  linux挂载域环境下服务器的共享目录需要用户的账号有对共享文件的读和写权限。

五 参考链接

  http://blog.chinaunix.net/uid-8810763-id-2453890.html mount命令详解

  http://blog.csdn.net/jingxia2008/article/details/50218933 mount失败密码hash问题

  http://blog.csdn.net/lanyou1900/article/details/39612585 开机自动挂载

推荐阅读:
  1. Windows Server 2019 安装DC域控
  2. Windows Server 2019 搭建DC域控

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

windows centos mount

上一篇:如何实现php伪静态

下一篇:mac运行mongodb的方法

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》