1.安装smba    sudo apt-get install samba samba-common


2.编辑配置 vim  /etc/samba/smb.conf 

在文件中添加 security =user

搭建samba实现windows与linux文件共享

在文件末尾添加内容

搭建samba实现windows与linux文件共享

3.添加共享资源的用户并设置密码,liang  是已存在的用户

搭建samba实现windows与linux文件共享

4.在windows中(windows与要能ping通inux)输入linux的ip如图

搭建samba实现windows与linux文件共享

搭建samba实现windows与linux文件共享

相关文章: