CentOS Build Samba Server

Source: Internet
Author: User

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

Related Article

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.