linux挂载windows共享目录报错,centos7 使用mount -t cifs 挂载windows共享目录方法与问题解决...

本文介绍了在CentOS 7中使用`mount -t cifs`命令挂载Windows共享目录时遇到的错误及解决方法,包括权限问题、密码过期问题和自动挂载配置。通过指定正确的域名格式、更新密码以及在`/etc/fstab`中配置,可以成功挂载并解决相关问题。
摘要由CSDN通过智能技术生成

参考文档

使用 域\账号 密码 访问 //10.100.xx/Android 的windows 共享

mount -t cifs -o domain=test.com,username=administrator,password=test123 //192.168.1.10/share /usr/local/b

mount -t cifs -o username=scj,password=xxxxx //10.100.xx/09.xx /usr/local/b

# 报错如下

[root@it519 ~]# mount -t cifs -o username="domain\xx",password="xx" //10.100.xx/Android /usr/local/a

mount: //10.100.xx/Android is write-protected, mounting read-only

mount: cannot mount //10.100.xx/Android read-only

# 需要安装cifs-utils

yum install cifs-utils.x86_64

安装完成后继续执行 报错如下

[root@it519 ~]# mount -t cifs -o username="domain\xx",password="xxx" //10.100.xx/Android /usr/local/a

mount error(13): Permission denied

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

# 原因:命令中关于域的格式不对,正确的是:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值