linux 中 shell脚本中执行命令:mount -t cifs 就报错is write-protected, mounting read-only 命令行不报?

linux 中 shell脚本中执行命令:mount -t cifs  就报错is write-protected, mounting read-only 命令输入相同命令就不报错怎么回事?报错:mount: //172.17.21.30/test is write-protected, mounting read-onlymount: cannot mount //172.17.21.30/test read-only命令:mount -...显示全部

linux 中 shell脚本中执行命令:mount -t cifs  就报错is write-protected, mounting read-only 命令输入相同命令就不报错怎么回事?

报错:mount: //172.17.21.30/test is write-protected, mounting read-only
mount: cannot mount //172.17.21.30/test read-only

命令:mount -t cifs //172.17.21.30/test /tmp//172.17.21.30/test -o username=topsec -o password=topsec

收起
参与8

查看其它 1 个回答achlice的回答

achliceachlice系统工程师h3c

没太看明白问题描述, " linux 中 shell脚本中执行命令:mount -t cifs 就报错is write-protected, mounting read-only 命令输入相同命令就不报错怎么回事? "  这句没看明白是什么意思.

把执行报错的,以及执行没报错的语句分别 贴一下?

IT其它 · 2019-10-12
浏览6170

回答者

achlice
系统工程师h3c
擅长领域: 服务器LinuxCentOS

achlice 最近回答过的问题

回答状态

  • 发布时间:2019-10-12
  • 关注会员:3 人
  • 回答浏览:6170
  • X社区推广