CentOS Build Samba server
Samba is a free software that implements the SMB protocol on Linux and UNIX systems, consisting of servers and client programs. SMB (Server Messages block, information service blocks) is a kind of communication protocol for sharing files and printers on LAN, which provides shared services of files and printers among different computers in LAN. The SMB protocol is a client/server protocol that allows clients to access shared file systems, printers, and other resources on the server. By setting up "NetBIOS over TCP/IP", Samba will not only share resources with local network hosts, but also share resources with computers around the world.
I. Samba Deployment and optimization
1. Installing Samba Services
When the experiment is configured, turn off the firewall and SELinux
Service Iptables Stop
Yum Install-y Samba
2. Edit the configuration file
Vim/etc/samba/smb.conf
Security = Share
[Bob]
Comment = Share all
Path =/HOME/XCB
Public = yes
writable = yes
printable = no
3. Create a shared directory and permissions.
Mkdir/home/xcb
Chwon-r NOBODY.NOBODY/HOME/XCB
chmod 755/HOME/XCB
4. Start the service
Service SMB Start
The simple samba is built.
5. How to access
Windosn access to Samba
Run---\\192.168.0.12 to
Linux access to Samba
Samba client is required to install Samba under Linux
Yum Install-y samba-client
Smbclient//192.168.0.12/bob
In Linux, it is easy to access samba, which is hanging in the directory, direct access can be, below we see how to implement
Yum install-y cifs-utils need to install this plugin
Mount-t CIFS//192.168.0.12/BOB/VAR/AAA
Two. User Level experiment
View configuration Files
Vim/etc/samba/smb.conf
Workgroup = MyGroup Workgroup
Server string = information displayed by Samba server version &v
Log file =/var/log/samba/log.%m log files
max Log size = 50 logs cut Max
Security = user safety level
user username and password verification
Share can log in without requiring validation
Domain controller to verify
Passdb backend = Tdbsam How the user name and password are stored
This article is from the "It po" blog, please be sure to keep this source http://907832555.blog.51cto.com/4033334/1836913
CentOS Build Samba Server