CentOS7 安装 samba

发布时间:2022-06-09 01:56:32,浏览1751次

安装响应软件包

yum install samba samba-client samba-common -y

简单的进行配置一下

[root@demo samba]# vim /etc/samba/smb.conf
[global]
        workgroup = workgroup
        server string = Samba Server %v
        netbios name = demo
        security = user
        map to guest = bad user
        dns proxy = no
 
[public]
        comment = This is a directory of anonymous.
        path = /home/public
        browseable = yes
        writeable = yes
        guest ok = yes
        read only = no

启动Samba服务器

systemctl start smb  // 启动smb服务
systemctl start nmb  // 启动nmb服务

设置smb、nmb服务开机自启动

systemctl enable smb  // 启动smb服务
systemctl enable nmb  // 启动nmb服务

大功告成!

评论