如何解决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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值