Ubuntu18.04 安装samba
#1.使用apt-get的的安装
sudo apt-get install samba
#2.完成后查看版本,看是否真正安装好了
samba -V
#3.配置smb.conf
sudo vi /etc/samba/smb.conf
[jc] ##随便怎么命名但是不能有空格
comment = samba home directory
path = /JC ##要共享的文件夹
public = yes
browseable = yes
public = yes
writeable = yes
read only = no
valid users = jc ##Ubuntu账户是啥这是啥,root也行大概
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
available = yes
#设置密码
smbpasswd -a jc
#重启服务
service smbd restar