版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ZENGZISUZI/article/details/81064280
错误
rhel在挂载windows共享时出现以下错误,但是明明用户名和密码都是正确的。
#mount -t cifs -o username=administrator,password=abc123 //111.110.14.123/abc/ /work/src/
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
解决方案
将用户名和密码使用括号将其括起来即可
#mount -t cifs -o username="administrator",password="abc123 " //111.110.14.123/abc/ /work/src/
#echo $?
0