Disabling the Firewall
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl disable firewalld.service
Copy the code
Close the selinux
The installation
[root@localhost ]# yum install samba
Copy the code
Configure the service
After installation, the /etc/samba directory will be generated, masking [homes], and adding workspace
Add account
[root@localhost conf.d]# groupadd samba
[root@localhost conf.d]# useradd -m -s /sbin/nologin -g samba smbuser
[root@localhost conf.d]# smbpasswd -a smbuser
Copy the code
Check whether the account is successful
[root@localhost samba]# cat /etc/group
Copy the code
[root@localhost samba]# cat /etc/passwd
Copy the code
Start and view the SMB service
[root@localhost samba]# systemctl start smb
[root@localhost samba]# systemctl status smb
Copy the code