1.
sudo pacman -Sy samba
2
vi /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
security = user
# Work 为共享时的名字, path为共享目录, valid users为共享登录名
[Work]
path = /home/enzo/work
valid users = enzo
public = no
writable = yes
printable = no
create mask = 0644
3.添加samba密码 ,username为实际的用户名
smbpasswd -a username
4. 重启samba服务
systemctl enable smb nmb
systemctl start smb nmb
阅读(6646) | 评论(0) | 转发(0) |