sudo apt update
sudo apt upgrade
sudo apt install -y samba
cd /etc/samba/
sudo cp -a smb.conf smb.conf.backup
sudo vim smb.conf
global中追加include
[global]
...
include=/etc/samba/smb.limingze.conf
编辑smb.limingze.conf
[home]
path = /home
available = yes
browseable = yes
writable = yes
设置用户名
smbpasswd -a username limingze
New SMB password:
Retype new SMB password:
评论区