在linux上配置smb服务

38次阅读

共计 278 个字符,预计需要花费 1 分钟才能阅读完成。

  • 安装 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

正文完
 0