1  Windows访问Linux

安装相关软件和服务
sudo apt-get install samba
sudo apt-get install smbfs

修改配置文件 sudo vim /etc/samba/smb.conf

[root]
   comment = root
   browseable = yes
   path = /home/fei
   writable = yes
   valid users=fei

sudo smbpasswd -a fei

sudo /etc/init.d/samba restart

chmod 777 /home/fei -R       (-R 表示整个目录下的所有文件都修改)

\\ip地址  来访问

2.  Linux访问Windows

通过:位置---〉网络 可以查看到Windows的共享文件夹