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 个回答guangshi007的回答

guangshi007guangshi007  技术经理 , 某城商行IT人

shell运行环境配置的问题吧,检查一下当前.profile文件配置吧,看看脚本执行环境与命令行执行环境的差异

银行 · 2019-10-10
浏览5550

回答者

guangshi007
技术经理某城商行IT人
擅长领域: 服务器系统运维灾备

guangshi007 最近回答过的问题

回答状态

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