https://www.howtoforge.com/samba-server-installation-and-configuration-on-centos-7

yum install samba samba-client samba-common

vi /etc/samba/smb.conf

[global]

        workgroup = WORKGROUP
        server string = CNX5 Samba Server %v
        netbios name = CNX5
        security = user
        map to guest = bad user
        dns proxy = no

[IBM]
        path = /opt/IBM
        valid users = root
        browsable =yes
        writable = yes
        guest ok = no

smbpasswd -a root

systemctl enable smb.service
systemctl enable nmb.service
systemctl restart smb.service
systemctl restart nmb.service

testparm

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *