美文网首页
smaba 服务搭建

smaba 服务搭建

作者: 十二找十三 | 来源:发表于2019-07-25 11:05 被阅读0次

虚拟机环境 CentOS Linux release 7.6.1810 (Core)

  1. CentOS系统包管理器安装samba服务
  yum -y install samba
  1. 关闭防火墙
  systemctl stop firewalld.service  ==> stop
  setenforce 0 ==> Permissive

3.创建用户并且创建相关发布目录

  groupadd samba
  useradd samba -g samba -s /sbin/nologin   
  smbpasswd -a samba

  创建samba发布文件夹
  mkdir -p /miao/docs
  mkdir -p /miao/share
  给docs和share文件夹相应的权限 (chmod 777 docs ;   chmod 777 share)
  1. 修改/etc/samba/smb.conf 配置文件
[global]
    workgroup = BIGCLOUD
    netbios name = ZZSRV2
    server string = Samba Server
    security = user
    map to guest = Bad User
[SHAREDOCS]
    path = /miao/docs/
    readonly = yes
    browseable = yes
    guest ok = yes
[SHARE]
    path = /miao/share/
    public = no
    writable = yes
    write list = @samba
    validusers = @samba
  1. 最后启动samba服务
  systemctl start smb   

相关文章

网友评论

      本文标题:smaba 服务搭建

      本文链接:https://www.haomeiwen.com/subject/niccrctx.html