1. install the package $ sudoyuminstallsambasamba-client2, turn off the firewall (otherwise, this service is not allowed to connect, unlike SSH default is allowed to connect, SAMBA for security reasons, the port is blocked .) $ Sudosystemctlstopfirewalld. service $ sudosetenforce0 & n
1. install the software package
$ Sudo yum install samba-client
2. disable the firewall (otherwise, this service cannot be connected, unlike SSH which allows connections by default. SAMBA is blocked due to security reasons .)
$ Sudo systemctl stop firewalld. service
$ Sudo setenforce 0
3. configuration
$ Sudo vim/etc/samba/smb. conf
Just open the configuration file. In this way, the user can log on to his/her Directory, which is completely writable, readable, and browsed.
[Homes]
Comment = Home Directories
Browseable = yes
Writable = yes
Valid users = % S
Valid users = MYDOMAIN \ % S
4. start the service
[Sdx @ localhost samba] $ sudo systemctl restart smb. service
[Sdx @ localhost samba] $ sudo systemctl restart nmb. service