Ubuntu14.04 sharing home directory with Samba server

Source: Internet
Author: User

Let's take a look at Ubuntu 14.04, for example.

1. Install the Samba server.

sudo apt-get install Samba

2. Modify the configuration file

sudo vim/etc/samba/smb.conf

Then find the part of the home directory share, about 190-214 lines, remove the previous comment, as follows:

# un-comment The following (and tweak the other settings below to suit) # To enable the default home directory shares. This would share each# user ' s home directory as \\server\username[homes] comment = home directories browseable = yes# B Y default, the home directories is exported read-only.   Change the# next parameter to ' no ' if your want to is able to write to them. Read Only = no# File creation mask are set to 0700 for security reasons.   If you want to# the Create files with GROUP=RW permissions, set next parameter to 0775. Create mask = 0666# Directory creation mask is set to 0700 for security reasons.   If you want to# create dirs. With GROUP=RW permissions, set next parameter to 0775. Directory mask = 0755# By default, \\server\username shares can is connected to by anyone# with access to the Samba server  . # un-comment The following parameter to make sure so only ' username ' # can connect to \\server\username# this might need Tweaking when using external authentication schemes VALid users =%s 

I made a slight change to the mask here.

3. Modify the Samba user password.

For example, my username is wing, so I need to create a corresponding password for samba sharing, which is different from the system account.

sudo smbpasswd-a wing

Then restart the Samba service

sudo service smbd restart

4. In Windows Explorer open \\192.168.1.6\homes (here my IP is 192.168.1.6), enter the user name and password (note that the Samba user password you just set), you can see the setup success.

If you don't feel comfortable, you can map this address to a folder or to a virtual disk.

Ubuntu14.04 sharing home directory with Samba server

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.