1 路径:
\\192.168.56.101
2 安装&重启:
sudo apt install samba
sudo smbpasswd -a hzf
sudo vi /etc/samba/smb.conf
sudo /etc/init.d/smbd restart
systemctl start smb #启动smb
systemctl start nmb #启动nmb
systemctl enable smb #开机自启smb
systemctl enable nmb #开机自启nmb
3 配置/etc/samba/smb.conf
[share]
comment = Cyberspace
path=/
read only = no
create mask=0777
directory mask=0777
guest ok = yes
writable = yes
browseable=yes