sudo apt install samba
sudo vim /etc/samba/smb.conf
[公共]
path = /home/l/公共
available = yes
read only = no
writeable = yes
browseable = yes
valid users = l
sudo systemctl start smbd
sudo systemctl enable smbd
su root
smbpasswd -a l
从另外一台设备访问
网络
smb://192.168.65.130/公共
用户名l
密码:设置的密码