一、安装Samba
apt-get install samba
二、配置
方案一、最大权限配置
任何用户可对共享文件夹读写
1、建立共享文件夹 mkdir /home/wangyx/share chmod 777 /home/wangyx/share
2、修改Samba配置
cp /etc/samba/smb.conf /etc/samba/smb.conf_bk
nano /etc/samba/smb.conf 在最后加入:
[share]path
=
/
home
/
shareavailable
=
yesbrowsealbe
=
yes
public
=
yeswritable
=
yes
3、测试
在windows下方为ubuntu服务器,可以看到共享文件夹。 UBUNTU服务器的IP地址或者服务器名称可通过《ubuntu常见问题总结》的第一点获取到。
转载于:https://www.cnblogs.com/ITGIS/articles/1822361.html