今天为将CentOS
下mysql数据库备份至windows共享目录,挂载windows共享目录的时候总是报错,经过一翻百度之后,终于解决。
[root@www ~]# mount -t cifs -o
username=domain\administrator,password=Test123 //192.168.1.10/share
/databackup
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man
mount.cifs)
原因:命令中关于域的格式不对,正确的是:
mount -t cifs -o
domain=test.com,username=administrator,password=test123
//192.168.1.10/share/databackup
或
mount -t cifs -o
username=domain/administrator,password=test123 //192.168.1.10/share /databackup
/var/log/messages内容:
Sep 26 09:50:40 www kernel: Status code
returned 0xc000006d NT_STATUS_LOGON_FAILURE
Sep 26 09:50:40 www kernel: CIFS VFS: Send error in SessSetup =
-13
Sep 26 09:50:40 www kernel: CIF