Linux Samba simplest settings

Source: Internet
Author: User

1. Install Samba: sudo apt-Get install samba

2. Open the firewall (if UFW is started ):

Sudo UFW allow137 138 139 445

3. Configure sudo VI/etc/samba/smb. conf

I want to configure it to allow each user to access their home directory: Find the Home segment and remove the following comments:

[Homes]
Comment = Home Directories
Browseable = yes # Here it is changed to yes, which can be viewed
Read Only = No
Create mask = 0700
Directory mask = 0700

In addition

Security = user

4. Change the User Password sudo smbpasswd-A Yulk

5. Restart the samba service:

Yulk ~ % Sudo service smbd restart
Smbd start/running, process 5201
Yulk ~ % Sudo service nmbd restart
Nmbd start/running, process 5216

6. Access: Windows key + r input: \ 54.1.48.154 \ Yulk enter the user and password as prompted

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.