The simplest way to build a samba server in centos7

Step 1: Install samba

                yum install samba

Step 2: Open the service
                systemctl start smb

Step 3: Configure Samba service
                vim /etc/samba/smb.conf

                Add at the end of the file

                [repos]
        comment = repos Directories
        path = /repos
       public = yes
        writable = yes
        write list = root
        valid user = root
        create mask = 0750
        directory mask = 0750

Step 4: Restart the samba service
                systemctl restart smb

Step 5: Create user password. Set a password that meets the complexity requirements
                smbpasswd -a root

If you cannot access reality or the password is incorrect, come here.

centos7 samba password is incorrect

Guess you like

Origin blog.csdn.net/m0_65487180/article/details/126837950