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
阅读(6533) | 评论(0) | 转发(0) |