Install Samba in Ubuntu to allow Windows to access your files

Source: Internet
Author: User
Whether you are a newbie or a master of Ubuntu and Windows, the best way to access Ubuntu files is to use Samba. Many third-party tools can be easily installed and managed. For new users or new users who want to learn how to quickly access Ubuntu files from Windows, this short article will tell you how to do it. Our goal is to help new users. We try to make this tutorial easy to understand, so that new users can understand it without too much difficulties. We will not pay too much attention here

Whether you are a newbie or a master of Ubuntu and Windows, the best way to access Ubuntu files is to use Samba. Many third-party tools can be easily installed and managed.

For new users or new users who want to learn how to quickly access Ubuntu files from Windows, this short article will tell you how to do it. Our goal is to help new users. We try to make this tutorial easy to understand, so that new users can understand it without too much difficulties.

Here we will not focus too much on understanding what Samba is or how to configure it to be added to the domain. What we need to do is to tell you how to install and set 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 in 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 earlier versions of Ubuntu, you may need to replace cifs-utils with smbfs. It would be better if the above command can be used.

Then, use gedit (or another tool) to open the main Samba configuration file and make the following changes. Run the following command to open the main configuration file:

Sudo gedit/etc/samba/smb. conf

After the file is opened, find the following line and uncomment it (delete the line ';'). It should be like this:

Security = user

Scroll down the file, find the following line, and cancel the first line comment.

[Homes]

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

\ 192.168.0.2 \ username

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

Sudo smbpasswd-a usernmame

Replace the preceding username with your username.

Create and confirm the password when prompted. Restart the Samba service or the computer.

When accessing a file through Windows, click Start> Run and enter the following content. Or open the resource manager and enter the following content ,.

\ Ubuntu_machine_IP \ username

Enjoy!

Samba details: Click here
Samba: Click here

Related reading:

Samba file sharing-implementing heterogeneous communication http://www.linuxidc.com/Linux/2013-03/81152.htm

VMWare Virtual Machine Ubuntu dual Nic samba access speed doubled http://www.linuxidc.com/Linux/2013-06/85445.htm

Samba File Sharing Server joining Windows Server 2003 domain http://www.linuxidc.com/Linux/2013-06/86391.htm

Samba installation configuration http://www.linuxidc.com/Linux/2013-06/86101.htm

Configuration http://www.linuxidc.com/Linux/2013-01/78390.htm for Samba services in CentOS 6.2

Graphic http://www.linuxidc.com/Linux/2013-01/78234.htm for building Win7 + VMware + Fedora18 Samba Server

Translator: SCUSJS Proofreader: wxy

This article was originally translated by LCTT and launched with the Linux honor in China

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

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.