Access files shared by Linux in windows

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.