在Ubuntu18.04上安装samba服务
打开终端,使用下面指令安装samba服务。
$ sudo apt install samba
$ sudo apt install smbclient
在Ubuntu18.04上配置samba服务
编辑samba的配置文件
$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
$ sudo vim /etc/samba/smb.conf
末尾添加如下:
[share]
comment = Shared Folder with username and password
path = /home/你的用户名/S