Detailed analysis of LinuxSambaServer configuration method

Source: Internet
Author: User
Article Title: detailed analysis of LinuxSambaServer configuration method. 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.

Host allow = 192.168.1. 192.168.2. 127.->>>>> this item is very important to security. It strictly limits the scope of Samba accessible. By default, all IP addresses are allowed to access Samba ..

Printcap name =/etc/printcap >>>>>>>>>>>>>> set the printer configuration file path

Load printers = yes >>>>>>>>>>>>>>> whether to share the printer

Printing = cups> printer type. Do not change it if the printer type is linux Standard.

Guest account = pcguest >>>> if you want the user 'pcguest 'to log in as an anonymous user...; remove the preceding comment. Make sure the user is in/etc/passwd. The pcguest can be changed to a local user set by the user as needed.

Loginfile =/var/log/samba/% m. log >>>>>>>>>>> log creates different log files for each logged-in user (Samba user) in this directory.

Passwd Server = >>>>>>>>> Password server. When you use linux Through Samba in Windows. Automatically transmits the username and password used to log on to windows to Samba. Samba then verifies the two information items with windows server. If it is incorrect, a dialog box is displayed, asking the user to re-enter the user name and password. The password SERVER can be an NT Server (usually a primary domain controller) or another Samba SERVER. Therefore, if Security = share, delete the line about the password server.

Password Level-= 8 >>>>>>>>>>>>> Password Level settings

Encrypt password = yes >>>>>>>>>>>>>> the user password must be encrypted. Because 98/NT currently uses an encrypted password. Therefore, you must use an unencrypted password.

Smb Passwd file =/etc/samba/smbpasswd >>> when you set the password server to Samba server, you must use this line to specify the password file to be verified, the most important thing is the path set for the password file.

Uin passwd sync = yes

Passwd program =/usr/bin/passwd % u >>>>>>> the next two rows are set to allow the Windows Password to change and then update the linux system password, make sure that the 'encrypt password' and 'smb passwd file' items are enabled.

Pam password change = yes >>>>>>>> when you want to change the password, use PAM. No local password Program/user/bin/passwd required

Username map =/etc/samba/smbusers >>>>>>>> set the corresponding user name in this file, for example, root = administrator admin, if every windows user has an account on the samba server, you can leave it unspecified,

Include =/etc/samba/smb. conf % m >>>>>>> this line allows you to customize the basic configuration file for each computer. % M indicates the name of the computer that NETBIOS is connecting.

Obey pam restrictions = yew >>>>>>>>>> user authentication is subject to PAM management restrictions.

Socket options = TCP_NODELAY SO_RCVBUF = 8192 SO_SNDBUF = 8192 >>>> set the Socket option for the session between the server and the customer. This setting will optimize the transmission speed.

Interfaces = 192.168.12.2/24 192.168.13.2/24 >>>>> multi-network interface must be listed here.

Remote browse sync = 192.168.3.25 192.168.2.255 >>>> this row and the next row are Remote Browsing settings

Remote announce = 192.168.1.255 192.168.2.44

# Browser Control Options

Local master = no

Oslevel = 33

Domain master = yes

Preferred master = yes

Domain logons = yes

Logon script = % M. bat >>>>>>>>>>>>> set the login script for the current row and next line

Logon script = % U. bat

Wins support = yes >>>>>>>>>>> wins server support

Wins server = w. x. y. z >>>>>>>>>>> wins client settings

Wins proxy = yes >>>>>>>>>>> wins proxy settings

Dns proxy = no >>>>>> dns proxy settings. By default, DNS queries are not performed on clients.

[Homes] >>>>>>>>>> user access to their own directory settings

Browseable = no >>>>>>>>>> user private directory, do not need to browse for others

Writeable = yes >>>>>>>>>> permission for users to write data to their own directories

[Netlogon]

Guest OK = yes

Share modes = no

[Profiles] >>>>>>>>> default profiles settings

[Printer] >>>>>>>>> printer settings

Path =/var/spool/samba >>>>>>>> printer pool (spool) users must create a directory

Browseable = no >>>>>>>>> this row stores temporary printer files

Set public = yes to allow user 'guest prinr >>>> if set, allow the guest user to use the printer

Printable = yes >>>>>>>>>>>>>> whether the user can print

[Temp]

Read only = no >>>>>>>>>>>>>> read-only or writable

Public = yes >>>>>>>>>>>>>> share

[1] [2] [3] 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.