# 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