Linux通过mount挂载Windows共享目录.

    首先安装cifs协议.

    apt-get install cifs-utils

     CIFS (Common Internet File System) : 通用Internet文件系统,在windows主机之间进行网络文件共享是通过使用微软公司自己的CIFS服务实现的。

    mount -t cifs -o username=Administrator,password="" //192.168.5.83/Testcode /mnt
mount error(5): Input/output error

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

    添加域名(工作组),修改后:

    mount -t cifs -o username=WorkGroup/Administrator,password="" //192.168.5.83/Testcode /mnt
mount error(13): Permission denied

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

    最后随便添加了个密码,修改格式为如下:

  成功挂载上.

 

 

---------------------------------------------------------------------------------------------------------------------------------

今天又碰到了 

 

mount error(13): Permission denied

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

和上次一样的格式为什么又报权限问题 。 

 

后来 发现在 其他windows电脑 上也无法 访问 我的共享目录 。 账号密码明明都对。

后面 关闭 高级共享里面的密码保护 解决。。

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值