The easiest way to get Windows to access Linux files __linux

Source: Internet
Author: User

Whether you're a novice or a master of Ubuntu and Windows Daniel, the best way to get Windows to access Ubuntu files is to use Samba. It is easy to install and manage through many third-party tools.

For new users or novices who want to learn how to quickly access Ubuntu files from Windows, this passage will tell you what to do. Our goal is to help new users. We try to make this tutorial as easy as possible so that the novice can understand it without encountering too much difficulty.

Here we don't pay much attention to the details of what samba is or how it is configured to join the domain. All we have to do is tell you how to install and set up samba in Ubuntu so that Windows can access Ubuntu files.

If you want to learn more about Samba, I suggest you Google it or query Wikipedia. First open your terminal under Ubuntu and then run the following command to install Samba and other related tools.

sudo apt-get install samba cifs-utils

The above command will install Samba and other related tools. In older versions of Ubuntu, you might want to use SMBFS instead of cifs-utils. It would be better if the above commands were used.

Then, open the Samba master configuration file with Gedit (or other tools) and make the following changes. You can open the main configuration file by using the following command:

sudo gedit/etc/samba/smb.conf

When the file is open, look for the following line and uncomment it (delete the ";" at the beginning). )。 It's supposed to be like this:

Security = User

Then, scroll down the file, locate the line below, and cancel the beginning of the comment.

[Homes]

This will allow users to access folders and files in the home directory. For example, if you uncomment [homes], the user can access the home directory by typing the server name plus the username.

\\192.168.0.2\username

Then, run the following command to add your account information to the Samba database. This allows you to access shared files using Samba.

sudo smbpasswd-a username

Replace the above username with your own username.

When prompted to create a password, create and confirm it. Finally, restart the Samba service or reboot the computer.

When accessing a file through Windows, click Start –> Run and enter the following. or Open Explorer to enter the following, as shown in the figure.

\\ubuntu_machine_IP\username

enjoy!

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.