Installation and configuration notes of Samba in Linux source code

Source: Internet
Author: User
Article Title: Install Samba and configuration notes for Linux source code. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The younger brother finally succeeded in samba configuration through practice. He wrote down the configuration process and hoped that the expert could give more comments. In this article, I am sorry that my rpm installation of samba printer was successful, and the installation of printer with source code was not successful, it is a pity.

First, learn some basics.

The core of samba is the two daemon processes smbd and nmbd, which run continuously from the server to the stop. All configuration information used by Smbd and nmbd is stored in the smb. conf file. Smb. conf describes to the smbd and nmbd daemon what is output so that shared output is shared to and how to output. The role of the Smbd process is to process the incoming SMB software package and negotiate with Linux for resources using the software package. The nmbd process enables other hosts (or workstations) to browse Linux servers.

If you use rpm for installation, you do not need to use service smb start to start samba. You can also use service nmbd start and service smbd start.

In the smb. conf file, the Comment line starts with "#", and each Chinese and English letter is case-insensitive.

"\", Which can be divided into multiple rows. The line starting with ";" is a configuration that can be changed. When ";" is removed, this configuration will take effect.

[Global] (global parameter setting, which has a great impact on samba functions, is mainly used to set the overall system rules.

Workgroup = This is your domain in windows.

Server string = This is the explanation of samba in windows.

Netbios name = it is best to use your machine name. If you delete the sentence, the default name is your LINUX machine name. However, it is best to enter it by yourself.

Dos charset = cp936

Unix charset = cp936 can be correctly displayed with these two sentences.

Hosts allow allows you to log on to the linux-samba host list, which is provided by IP addresses. Multiple IP addresses are separated by spaces. hosts that are not in the list cannot obtain services provided by samba, this is also an aspect of network security.

Printcap name specifies the printcap file address, usually/etc/printcap, which contains the configuration information of the linux printer.

The default value of load printers is yes.

If the printer used by printing is non-standard, the printer system type should be specified.

Log file =/usr/local/samba/var/log. % m

Max log size = 0

The above two lines are definitions of Samba logs. The recorded file is stored in/var/log/samba/% m. log, the installation directory is different, the log can be different, the next one is to define the size of the log record file, unit is KB, if it is 0, it is not limited to size.

The guest acount guest Account indicates which Linux user is used as the target client connection and defines the Samba Default User Account. This account must be in/etc/passwd.

Security specifies the security mode. Most users use user-level security mode, and samba uses a local linux Password File for verification.

Security = security_level

Defines the security level of Samba, from low to high: share, user, server, domain. The verification methods are as follows:

Share: no security level. Any user can access resources on the server without a user name or password.

User: The default configuration of samba. Users must provide the user name and password for authentication before accessing shared resources.

Server: similar to the user security level, but the user name and password are submitted to another server for verification, for example, submitted to an NT server. If the submission fails, it is returned to the user security level.

Domain: This security level requires that a Windows primary domain controller exist on the network. samba submits the user name and password to it for verification.

The following three security levels require users to have system accounts on their linux machines. Otherwise, it cannot be accessed.

Smb passwd file =/etc/samba/smbpasswd (set the location of the smb password file)

Username map =/etc/smbusers

Encrypt passwords = no. Use the plaintext password for verification. If the password is encrypted, change it to yes.

[1] [2] [3] [4] [5] [6] Next page

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.