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.