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-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

2同行回答

guangshi007guangshi007  技术经理 , 某城商行IT人
shell运行环境配置的问题吧,检查一下当前.profile文件配置吧,看看脚本执行环境与命令行执行环境的差异显示全部

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

收起
银行 · 2019-10-10
浏览5554
achliceachlice  系统工程师 , h3c
没太看明白问题描述, " linux 中 shell脚本中执行命令:mount -t cifs 就报错is write-protected, mounting read-only 命令输入相同命令就不报错怎么回事? "  这句没看明白是什么意思.把执行报错的,以及执行没报错的语句分别 贴一下?...显示全部

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

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

收起
IT其它 · 2019-10-12
浏览6104

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2019-10-09
  • 关注会员:3 人
  • 问题浏览:8261
  • 最近回答:2019-10-12
  • X社区推广