美文网首页
CentOS下配置Samba服务

CentOS下配置Samba服务

作者: sytuzhouyong | 来源:发表于2016-11-02 11:51 被阅读91次
  1. 安装samba,
    yum install samba
    
  2. 配置/etc/samba/smb.conf,在末尾追加内容:
    [root]
       comment = samba share
       path = /
       browseable = yes
       writeable = yes
       guest ok = no
       read only = no
       valid user = root
    
  3. 停止并禁用防火墙
    systemctl stop firewalld.service
    systemctl disable firewalld.service
    
  4. 修改配置
    vim /etc/selinux/config
    修改SELINUX=permissive
    reboot系统,重启生效
    
  5. 设置密码
    smbpasswd -a root
    
  6. 重启服务,并设置开机启动
    systemctl restart smb
    systemctl enable smb
    

相关文章

网友评论

      本文标题:CentOS下配置Samba服务

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