The installation service
yum install -y samba
configures the Samba configuration file /etc/samba/smb.conf.
① Modify the content in [global] as follows (find and modify the fields in the configuration file, disable spoolss = yes is
new):
disable spoolss = yes
At the end of the configuration file, add the following content:
[share]
path = /opt/share
browseable = yes
public = yes
writable = yes
Start the service:
systemctl start smb&& systemctl enable smb
Create a shared directory and set permissions
mkdir -p /opt/share
chmod 777 /opt/share
Create smb user
The user name here must be the user
smbpasswd -a root that exists in the system, and then the password can be different from the root password
Restart the service
systemctl restart smb
Finally windows access share
\ip address
If win10 can't access, just go directly to
https://jingyan.baidu.com/article/48a420579dbcf0e825250411.html
Don't forget to restart the computer at the end