1、部署
sudo yum install -y samba samba-client
2、创建用户
sudo useradd -m <username>
sudo smbpasswd -a <username>
3、配置共享目录:举例共享目录为data 目录
[data] path = /home/data writable = yes guest ok = yes valid users = <username> read only = no create mask = 0777 directory mask = 0777
4、访问
sudo systemctl restart smb sudo systemctl restart nmb
标签:linux,yes,NAS,sudo,nas,Linux,共享,data,目录 From: https://www.cnblogs.com/libruce/p/17711861.html