Samba set up (installed configuration)

First, what is Samba?

   Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件,由服务器及客户端程序构成。SMB(Server Messages Block,信息服务块)是一种在局域网上共享文件和打印机的一种通信协议,它为局域网内的不同计算机之间提供文件及打印机等资源的共享服务。SMB协议是客户机/服务器型协议,客户机通过该协议可以访问服务器上的共享文件系统、打印机及其他资源。通过设置“NetBIOS over TCP/IP”使得Samba不但能与局域网络主机分享资源,还能与全世界的电脑分享资源。

English name
samba
Full Name
Server Messages Block

Two, Samba installation configuration

1. Configure servers and client IP and test connectivity
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
test connectivity
Here Insert Picture Description
Here Insert Picture Description

2. Turn off the firewall and sandbox
Here Insert Picture Description
3. Create directory is mounted disc
Here Insert Picture Description
4. packages into the package, and screened Samba package, download and install the last
Here Insert Picture Description
error, because of the lack of dependence installation package
5. related download and install dependencies
Here Insert Picture Description

6. Start smb, filter and display the network connection mbd
Here Insert Picture Description

7. Start nmb, filter and display nmb network connection
Here Insert Picture Description
8. The filtering
Here Insert Picture Description
9.testparm detect the correct file
Here Insert Picture Description
10 written in the shared directory samba main configuration file; Create shared directory name: share comment (statement) = share directory; path :( specify the path) / share; public (anonymous user) = no; read (read-only permission) = yes open; valid (list of database users); write list (write access to user)
Here Insert Picture Description
11. create user "a" and " b "and added to the samba user database server
Here Insert Picture Description
added to the Samba server
Here Insert Picture Description
Here Insert Picture Description
12. restart samba server, and test client connectivity service network machine
Here Insert Picture Description
13 to create a shared directory / share on the service machine; and give 777
Here Insert Picture Description

14. The client can view the shared directory on the service machine
Here Insert Picture Description
15. Verify whether the client is able to access the information inside the samba service machine
Here Insert Picture Description
can be accessed but can not find the file you need to create a file inside the machine to serve a.txt file
Here Insert Picture Description
can then be checked to; b same user also, but this time the user has successfully found b a.txt file and download the file to the client a.txt
Here Insert Picture Description
finally see if the download is complete, whether there are
Here Insert Picture Description
16 and then verify whether a user view a.txt to file
Here Insert Picture Description
17. the re-created in the service machine inside a b.txt. file and view
Here Insert Picture Description
Here Insert Picture Description
17. delete a.txt client home directory, share or can view the shared document
Here Insert Picture Description
18. the service machine a.txt written documents, the client was re-download the file and view file a.txt
Here Insert Picture Description
Here Insert Picture Description
19. create a client directory adir, the service machines share the shared directory to mount the file you just created folder and look at the machine in service
Here Insert Picture Description
to view the service machine in
Here Insert Picture DescriptionHere Insert Picture Description

Released nine original articles · won praise 3 · Views 431

Guess you like

Origin blog.csdn.net/xxx0028/article/details/104414177