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