Turn from: 52524732
Find a detailed description of smb.conf from the Internet:
- Service Name: SMB
- Configuration directory:/etc/sabma/
- Master configuration file:/etc/sabma/smb.conf
The global settings of the #============================== global Settings =============================[global]samba Server are valid for the entire server. WorkgroupSyntax: Workgtoup = < workgroup group >; presets: Workgroup = MyGroup Description: Set up a workgroup example for Samba Server: Workgroup = workgroup and win2000s set as a group, You can see sharing in your network Places. Server stringSyntax: Server string = < description >; Preset: Sarver string = Samba Server Description: Set note for Samba server other: Support variable t%-access time i%-client IP m%-client hostname m%-Guest Domain name s%-Client User Name Example: Server String = This is a Samba server setting up a Samba server comment that appears on a Windows network place is a samba serverhosts allo WSyntax: Hosts AOOLW = <ip address >; ... Presets:; Host Allow = 192.168.1. 192.168.2.127. Description: Restrict the machines that are allowed to connect to Samba Server, with multiple parameters separated by a space. Represents a method that can be a full IP address, such as a 192.168.0.1 network segment, such as 192.168.0. Example: Hosts Allow = 192.168.1. 192.168.0.1 means that the machine URL of the 192.168.1 network segment is allowed to connect to 192.168.0.1 's machine to its own samba Serverprintcap nameSyntax: printcap name = < Printer profile >; presets: printcap name =/etc/printcap Description: Set the sample configuration file for Samba Srever printer: printcap name =/etc/print The CAP sets the printer settings for the Samba srever reference/etc/printcap file. Load printersSyntax: Load printers = <yes/no>; presets: Load printers = yes Description: The printer is shared when Samba server is turned on. PrintingSyntax: printing = < printer type >; preset: printing = lprng Description: Sets the type used by the Samba server printer as the currently supported type. Guest AccountSyntax: Guert accounts = < account name >; presets: Guert client = pcguest Description: Sets the Guest account to access Samba server (that is, an account that is accessed without entering a user name and password), If set to Pcguest, the default is "nobody" user. Example: Guert account = Andy Setting the Guest account to access Samba server is logged in as an Andy user, and this login has all the rights of the Andy user. Log fileSyntax: Log file = < logfile >; Presets: Log file =/var/log/samba/%m.log Description: Sets the storage location and file name of the Samba server log file (%m on behalf of the client hostname) Max log sizeSyntax: max log size = <?? kb>; presets: max log size = 0 Description: Sets the maximum capacity of a day file, and the default value of 0 per KB here means no restrictions. SecuritySyntax: Security = < level >; Presets: secure = user note: There are four types of levels that are set to access Samba server: Share---Do not need to provide a user name and password. User----need to provide a username and password, and authentication is the responsibility of Samba server. server--requires a user name and password to designate another machine (WINNT/2000/XP) or another Samba server for authentication. domain--needs to provide a user name and password to specify the WINNT/2000/XP domain server for authentication. Password serverSyntax: Password Server = <IP address/hostname >; presets: Password Server = <NT-Server-Name>; Description: Specifies the password for a server, including Windows and Linux The password that was authenticated as the user logged on. Other: This parameter can only be set when the item needs to be in conjunction with security = Server. Password levelSyntax: password level = < number of digits >;username-level = < number >; Preset: password-bit = 8usernameUsername level = 8 Description: Sets the number of digits for the user name and password, which is preset to 8-bit characters. Encrypt passwordsSyntax: Encrypt passwords = <yes/no>; presets: Encrypt passwords = Yse Description: Sets whether to encrypt the password for samba. SMB passwd FileSyntax: SMB passwd file = < password files >; presets: smb passwd file =/etc/samba/smbpasswd Description: Set Samba password files. Local MasterSyntax: local master = <yes/no>; Presets: Local master = no Description: Sets whether Samba server will assume the LMB role (LMB is responsible for collecting the browse list resources for the local network), Usually no special reason is set to Noos levelSyntax: os level = < numbers >; presets: os level = 33 Description: Sets the OS level for Samba server. OS level from 0 to 255. Winnt OS level is WIN95/98 and OS level is 1. To take Samba server as a LMB or DMB, its OS level is at least 33 higher than NT. Domain MasterSyntax: Domain master = <yes/no>; presets: Domain master = yes Description: Sets whether Samba server will assume the DMB role (DMB will be responsible for collecting the browse list resources of the other subnets), Usually no special reason is set to nopreferred masterSyntax: Preferred master = <yes/no>; Presets: Preferred Master = Yes Description: Sets whether Samba server assumes the PDC role (the PDC is responsible for tracking all changes made to the network account), Usually no special reason is set to No, (there is no two PDC in the same network segment, they will seize the master control every 5 minutes) wins supportSyntax: WINS support = <yes/no>; presets: wins-support = Yes Description: Sets whether Samba server wants the network to provide WINS services, usually without a special reason set to No. Only one WINS server can be selected by other WINS support and WINS server unless there is no host on the network to provide WINS service and the WINS service is required for this Samba serverSyntax: WINS server = <ip address >; presets: WINS Server = w.x.y.z Description: Sets whether Samba server will use a WINS service provided by a different host, usually no special reason. Other WINS support and WINS server examples: WINS server = 192.168.0.1 for samba unless there is one host on the network that provides WINS service Server to use the WINS service provided by 192.168.0.1 #============================== Share definitions =============================[ Homes] Comment = home directories browseable = no writable = yes Valid users =%s user's own "home" directory when users log in to Samba server as a samba user , you will see your home directory under Samba server, and the directory name is the user's own account. [Printers] Comment = all printers Path =/var/spool/samba browseable = no guest OK = no writable = no printable = Yes set SA The properties of the shared resource are printed on the MBA server, and the Samba server can provide a print share in addition to file sharing. [Shared resource name]< directive 1>; = (parameters) < directive 2>; = (parameter) to provide shared resources, you must first share the resources to be shared with the [] symbol, the following usually with directives and parameters to indicate the setting and access rights of this resource, details as follows: Comment---------Note Description path------------the full path name of the shared resource , in addition to the correct path, the permissions of the directory should also be set to browseable------is yes/No no in the Browse resource display shared directory, if you must specify a shared path to access printable-------Yes yes/no no allow printing hide dot ftles--Yes yes/no no hide hidden file public----------is yes/no no publicly shared, if otherwise authenticated (only when security = Share this entry works) guest OK--------is yes/no public share, if it is otherwise authenticated (only when security = share) Read Only-------is yes/ No no no read-only sharing when conflict with writable is also writable writable--------is yes/no no not read-only sharing when conflicts with read only, ignoring read onlyvaild Users-----Set only the user in this list to access the shared resource (Deny priority) (user name/@ group name) Invalid users---Set only users in this list cannot access the shared resource (Deny priority) (user name/@ group name) read List-------Set the members of this list to read-only (user name/@ group name) write list------If set to read-only, only members of this set list can write actions (user name/@ group name) create Mask-----The permissions that are given when the file is created directory mask--the permissions given by the Force group-----Specify the access resources to be accessed by the group User (username/@ group name). User------Specifies that access to the resource must be entered in order to access it (username/@ Group name) allow hosts-----Set only users of this segment/IP to access shared resources ALLWO hosts = network segment except IPDeny Hosts------Set only this segment/IP user cannot access the shared resource Allow hosts= This segment specifies IP specified ipdeny hosts= Specify IP This segment specify I
Linux Samba Service main file smb.conf Chinese "go"