乐趣区

在linux上配置smb服务

  • 安装 smb 服务:
sudo yum install smb
  • 修改 /etc/samba/smb.conf:
[global]

workgroup = WORKGROUP
server string = Samba Server Version %v

security = user
passdb backend = tdbsam

[aqui]

path = /home/aqui
valid users = aqui
guest ok = no
writable = no
browsable = yes

中括号里的 aqui 是盘符

  • 设置开机自启和重启服务
sudo systemctl enable smb
sudo systemctl restart smb
退出移动版