Setting up Samba server for file sharing

Source: Internet
Author: User

# I. Introduction to SAMBA

1、Samba是再Linux和unix系统上实现SMB协议的一个免费软件,由服务器及客户端构成。2、SMB(Server Messages Block,信息服务块)是一种在局域网上共享文件和打印机的一种通信协议。3、Samba最大的功能就是用于Linux与windows系统直接的文件共享和打印共享

Ii. installation and configuration of samba (anonymous access)
1. Install Samba application

2. Open the main profile of the Samba service
Vi/etc/samba/smb.conf
3. Implement Anonymous Access

Configuring Shared Files

Note: Write directly at the end of the configuration file, and also use chmod 777/opt/share to set permissions for the folder
4, with WIN10 real machine verification
Systemctl Start SMB Start service
Win+r Enter the address of the server//192.168.80.100

Iii. installation and configuration of Samba (account password access)
Installation steps on the same
1. Modify the configuration file (/etc/samba/smb.conf)

2. Create a user to join the Samba database and become a samba user

3. Verify that jack user is logged in


Create test file to verify write permissions

3. Verify that Tom user is logged in
Before Tom user logs in, win10 cmd command input net USE/D clears the login list and restarts the Samba server, otherwise the jack user is logged on by default.


Tom user does not have permission to write

Additional:
To increase the access control list:
Hosts Deny = 192.168.80.11
Hosts allow = 192.168.80. Allow a network segment
Note: Can not be used at the same time, can only select one *

Setting up Samba server for file sharing

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.