Access files shared by Linux in windows
We often encounter this situation when working on some projects. We have written some code in windows and need to test it in Linux. Of course, you will say that we can continue testing in Linux, but this may not be too troublesome. We all know that there are network drives or shared folders in windows, which can help us share files between windows platforms. How can I share files between windows and Linux?
Next we will use samba to implement the functions we need.
We only need to configure samba on the Linux platform. First. Check that samba is installed in Linux.
Rpm-qa | grep samba
If not, run the following command.
Yum install samba
After the installation is complete, we need to configure samba so that windows users can access it.
Open the/etc/samba/smb. conf file
Add the following statement at the end of the file. The Administrator account will be used to log on to the Linux shared folder./indicates the folder path. root indicates the name of the shared file name. Write Permission.
After saving the configuration, restart samba.
At this time, we need to go to the windows platform to access the shared folder. Note that the windows system we use must be in the same network segment as the Linux system.
Here, the Linux address is 192.168.0.3.
Open \ 192.168.0.3 and we will see that Let's enter the account. You can enter the root account root in Linux to view the root shared folder below.
Open the root shared folder. You can see the files in Linux.