本文主要是介绍如何解决linux mount cifs 挂window 网盘问题?,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在centos mount cifs 挂window 网盘容易出现问题如下:
在进行挂载时候,一直提示报错:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
这个和挂载时候是否在用户位置加引号并没有关系,需要查找日志查看打印的情况,samba 客户端内核版本:
3.10.0-123.el7.x86_64
需要查看对应日志,如果发现改报错可以在服务端执行pdbedit -x 用户 删除用户重新添加并手动输入密码,再次mount -a 就可以了,挂载时候我直接编辑的/etc/fstab, 因此直接mount -a 可以检查,当然也可以使用原文章中的命令挂载都是可以的。
一、挂载时,用户/密码错误
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
对应/var/log/message记录
Oct 12 16:20:01 localhost kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Oct 12 16:20:01 localhost kernel: CIFS VFS: Send error in SessSetup = -13
Oct 12 16:20:01 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13
二、没有分享目录
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
对应/var/log/message记录
Oct 12 16:20:06 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -6
Oct 12 16:20:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -6
Oct 12 16:20:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -6
目前遇到的问题就是这些
补充一句,格式一定要写正确:mount -t cifs -o username=administrator,password=**** //192.168.1.1/分享目录 /linux/share
出处 http://www.apoyl.com/?p=1432
这篇关于如何解决linux mount cifs 挂window 网盘问题?的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!