本文记录笔者配置Samba的过程,供用于自用。
sudo pacman -S samba
这是不需要权限,直接访问的方法:
sudo vim /etc/samba/smb.conf 添加以下内容
[global]
workgroup=WORKGROUP
server string=Samba Server %v
netbios name=arch linux
security=user
map to guest=bad user
dns proxy=no
[Cong‘s shares]
path=/home/shares
browsable=yes
writable=yes
guest ok=yes
read only=no
sudo chmod 777 /home/shares
sudo systemctl restart smbd
sudo systemctl enable smbd