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
test connectivity
2. Turn off the firewall and sandbox
3. Create directory is mounted disc
4. packages into the package, and screened Samba package, download and install the last
error, because of the lack of dependence installation package
5. related download and install dependencies
6. Start smb, filter and display the network connection mbd
7. Start nmb, filter and display nmb network connection
8. The filtering
9.testparm detect the correct file
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)
11. create user "a" and " b "and added to the samba user database server
added to the Samba server
12. restart samba server, and test client connectivity service network machine
13 to create a shared directory / share on the service machine; and give 777
14. The client can view the shared directory on the service machine
15. Verify whether the client is able to access the information inside the samba service machine
can be accessed but can not find the file you need to create a file inside the machine to serve a.txt file
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
finally see if the download is complete, whether there are
16 and then verify whether a user view a.txt to file
17. the re-created in the service machine inside a b.txt. file and view
17. delete a.txt client home directory, share or can view the shared document
18. the service machine a.txt written documents, the client was re-download the file and view file a.txt
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
to view the service machine in