Linux host shared directories can be implemented with Samba
First of all, look at the encyclopedia on the introduction of samba:
Samba is a free software that implements the SMB protocol on Linux and UNIX systems, consisting of servers and client programs. SMB (Server Messages block, information service blocks) is a kind of communication protocol for sharing files and printers on LAN, which provides shared services of files and printers among different computers in LAN. The SMB protocol is a client/server protocol that allows clients to access shared file systems, printers, and other resources on the server. By setting up "NetBIOS over TCP/IP", Samba will not only share resources with local network hosts, but also share resources with computers around the world.
How to share, and look down:
To access a directory shared by a Linux host on a Windows host, if the two hosts are on the same network segment, you can ping each other.
Then do the following on the Linux host:
(1) Update smb.conf files in/ect/samba directory in Linux host, edit files, add content
[Share]
Path=/home
Available=yes
Public=yes
Guest Ok=no
Valid User=root
Directory mask=0777
(2) Set password, can be customized
linux:/etc/samba# smbpasswd-a
linux:/etc/samba# smbpasswd-a Root
(3) Restarting the SMB service
linux:/etc/samba# Service SMB restart
Now, in the Windows host open the Start button, enter the IP address of the \\Linux host, enter the user name password in the box, you can access to the directory on the Linux host.
Also, if the Windows host shares a folder, how to view the share on the Linux host:
Method: Open the Linux host File Explorer Nautilus, enter the IP address of the Smb://windows host, enter the user name password in the box to access the shared Windows host.
How Linux hosts share directories to Windows hosts