linux 访问windows 共享文件

用到的方法是 CIFS (Common Internet File System)windows自己的网络文件系统 操作系统: Linux为 debian. Windows 为 windows 8   Windows 上配置:

  1. 若原来关闭了windows共享服务,则首先开启该服务。

方法如下

  1. 打开 计算机->管理->服务和应用程序->服务和应用程序->服务
  2. Server 服务 右键-〉属性->启动类型->自动 并点击启动
  3. 打开 控制面板\网络和 Internet\网络和共享中心\高级共享设置.启用网络发现,启用文件和打印机共享
  4. 打开需要共享的文件夹,右键,属性,共享->高级共享->权限->添加->高级->立即查找->everyone 确定
  5. 右键,共享,共享,选择everyone,点击共享,

Linux 上配置

  1. 安装cifs

[code lang="shell"] sudo apt-get install cifs* [/code]

  1. 建立文件夹

[code lang="shell"]mkdir XX [/code]

  1. 挂载

[code lang="shell"]sudo mount –t cifs –o username=**   //192.168.xxx.xxx  XX[/code]

posted @ 2014-06-25 21:36  搬砖程序员带你飞  阅读(426)  评论(0编辑  收藏  举报