首先安装samba, sudo apt-get install samba.
安装好Samba服务器之后,win10访问会拒绝访问。
解决办法:vi /etc/samba/smb.conf,按i进行输入。
将 ==========Share Definition=======下面的所有代码注释,并添加设置
[share]
comment = samba home directory
path = /home/share
public = yes
browseable = yes
public = yes
read only = no
writable = yes
#valid users = user
create mask = 0777
directory mask = 0777
#force user = nobody
#force group =nogroup
available = yes
security = share
然后esc,输入:wq 回车
重启samba服务器 /etc/init.d/sambd restart
即可无密码在win10下查看文件