Deploy and tune 1.7 Samba deployment and optimization-1

Source: Internet
Author: User
Tags ldap

Samba services can be implemented on Linux to share a directory that is accessed on Windows.

Installation

Yum Install-y Samba Samba-client

Configuration file in

Vim/etc/samba/smb.conf
[global=string = Samba Server Version%=/var/log/samba/log.%   = == raw
[Global] defines the global configuration
Workgroup used to define Workgroup
Information displayed by server string

Log file Journal location
Max log size of log sizes cut, Unit m
  security level has four types of share: Users do not need an account and password to log into the Samba server user: Need to enter an account and password to log on to the Samba server (default) server: Check the account and password work by another Windows or The Samba server is responsible for domain: Specifies the Windows domain control server to verify the user's account and password.
Passdb Backend (user backend), Samba has three user background smbpasswd: This is using the SMB tool to set a samba password to the system user (real user or virtual user) and the client accesses samba with this password Resources. SMBPASSWD in/etc/in Samba, it is sometimes necessary to create the file manually Tdbsam: Create a user database with a database file. The database file is called Passdb.tdb,/etc/in Samba. PASSDB.TDB user database can use SMBPASSWD-A Samba user is created and the samba user to be created must be the system user first. You can also use Pdbedit to create a Samba account. # Pdbedit-a username//Create a new Samba account. # pdbedit-x Username//Delete the Samba account. # pdbedit-l//lists the list of Samba users and reads the PASSDB.TDB database file. # PDBEDIT-LV//lists the Samba user list details. # pdbedit-c "[D]"-u username//suspend the Samba user account. # pdbedit-c "[]"-u username//Restore the Samba user account. Ldapsam: Authenticates the user based on the LDAP account management method. The first thing to do is to establish the LDAP service, set the Passdbbackend= Ldapsam:ldap://LDAP Server "
The Load printers and cups options two parameters are used to set up printer-related.
[Homes] This part of the content share the user's own home directory, that is, the normal user's home directory [printers] This part of the content set up printer Sharing

Deploy and tune 1.7 Samba deployment and optimization-1

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.