Deploy the Samba server environment in ubuntu

Source: Internet
Author: User
A Ubuntu is installed in the virtual machine. It is very convenient to access resources using samba. samba was also installed in my Raspberry Pi 2. Note. I have mentioned how to deploy the Samba server environment in CentOS6.0. I will talk about the installation in Ubuntu today.

A Ubuntu is installed in the virtual machine. It is very convenient to access resources using samba. samba was also installed in my Raspberry Pi 2. Note.

  1. Install
    Sudo apt-get install samba

After the installation is complete, the samba configuration directory is under/etc/samba.

  1. Add User

    Add the current user with the root permission. My username is apache, so I will write it like this:

    Sudo smbpasswd-a apache

Set the password.

  1. Edit/etc/samba/smb. conf for the added user. I use it on my own virtual machine. I only need to add the following configuration at the end of smb. conf:

    [Apache] comment = Apache's Home path =/home/apache browseable = yes read only = no guest OK = no create mask = 0600
  2. Restart samba to complete the configuration.

    Sudo/etc/init. d/samba restart

Now, in Windows, press Win + R and enter \ ubuntu-ip \ apache to happily access the files in the apache user's home directory under ubuntu from windows Resource Manager :)


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.