[root@test home]# mount -o username=administrator,password=test\$1234 //192.168.76.134/ver_release /home/release
注意:
1)如果密码里有特殊字符,比如“$”,需要通过反斜杠屏蔽特殊含义;
2)如果写入/etc/fstab文件中时,密码的特殊字符却又不需要转义:
//192.168.76.134/ver_release /home/release cifs defaults,auto,username=administrator,password=test$1234 0 0
阅读(845) | 评论(0) | 转发(0) |