List of configuration commands involved in the samba service configuration file

Source: Internet
Author: User
Tags directory create root access
List of configuration commands involved in the samba service configuration file [reprinted]

--------------------------------------------------------------------------------

Coding System = #
Client code page = 936 # Set the character set used by Samba (default: 850,936 is simplified Chinese)
Code page Directory =/usr/share/samba/codepages #
Workgroup = ccgd. com # Set the samba workgroup;
NetBIOS name = ccgd. com # NetBIOS name;
NetBIOS aliases = # Set the alias of the samba Service (the alias of NetBIOS, which is used in the same way as NetBIOS in the network );
NetBIOS scope = #
Server String = Samba server # Samba server description;
Interfaces = 192.168.0.35/24 172.169.0.1/24 # network interface settings of the sabma server, that is, the IP address of the NIC;
Bind interfaces only = no #
Security = user # Set the sharing level;
Encrypt passwords = yes # use an encrypted password for Samba access;
Update encrypted = no #
Allow trusted domains = yes #
Hosts equiv = #
Min passwd length = 5 # set the minimum password length;
Map to guest = never #
Null passwords = No # whether to use an empty password;
Obey Pam restrictions = yes #
Password Server = # password verification server (this option is used when security = server/domain is used to set the server name)
SMB passwd file =/etc/samba/smbpasswd # location of the encrypted password verification file;
Root directory = # set the main directory for root access. By default, root access is not allowed;
Pam password change = yes #
Passwd program =/usr/bin/passwd % u #
Passwd chat = * New * password * % N \ n * retype * New * password * % N \ n * passwd: * All * authentication * tokens * Updated * successfully *#
Passwd chat DEBUG = no #
Username map =/etc/samba/smbusers # Samba user
Password level = 0 #
Username level = 0 #
Unix Password Sync = yes #
Restrict Anonymous = no #
LANMAN auth = yes #
Use rhosts = no #
Admin log = No # Whether to enable management record files;
Log Level = 0 #
Syslog = 1 #
Syslog only = No # Whether to only record system logs;
Log File =/var/log/samba/% m. log # log file storage path;
Max log size = 100 # log file size (KB)
Timestamp logs = yes #
Debug hires timestamp = no #
Debug pid = no #
Debug uid = no #
Protocol = nt1 #
Large readwrite = no #
Max protocol = nt1 #
Min protocol = core #
Read BMP x = no #
Read raw = yes #
Write raw = yes #
Nt smb support = yes #
NT pipe support = yes #
NT status support = yes #
Announce version = 4.5 #
Announce as = Nt #
Max MUX = 50 #
Max xmit = 65535 #
Name resolve order = LmHosts host wins bcast #
Max packet= 65535 #
Max TTL = 259200 #
Max wins TTL = 518400 #
Min wins TTL = 21600 #
Time Server = No # Set to Time Server
UNIX extensions = no #
Change timed y timeout = 60 #
Deadtime = 0 #
Getwd cache = yes #
Keepalive= 300 #
Lpq cache time = 10 #
Max smbd processes = 0 #
Max disk size = 0 #
Max open files = 10000 #
Read size = 16384 #
Socket Options = tcp_nodelay so_rcvbuf = 8192 so_sndbuf = 8192 #
Stat cache size = 50 #
Use MMAP = yes #
Total print jobs = 0 #
Load printers = yes #
Printcap name =/etc/printcap #
Disable SPOOLSS = no #
Enumports command = #
Addprinter command = #
Deleteprinter command = #
Show Add Printer wizard = yes #
Os2 driver map = #
Strip dot = no #
Mangling method = hash #
Character Set = #
Mangled stack = 50 #
Stat cache = yes #
Domain Admin group = #
Domain Guest Group = #
Machine Password timeout = 604800 #
Add User script = #
Delete user script = #
Logon script = logon. bat # Set the user login script file name (required when constructing a virtual NT domain );
Logon path =\\ % L \ % u \. profile. PDS # Set the logon user configuration file (required when constructing a virtual NT domain );
Logon drive = #
Logon home =\\ % N \ % u # set the main directory of the user configuration file;
Domain logons = yes # enable domain login;
OS level = 64 # Set the operating system level;
Lm announce = auto #
Lm interval = 60 #
Preferred master = true #
Local Master = yes # B
Domain Master = true # c a, B, and C set Samba to the domain master browser;
Browse List = yes #
Enhanced browsing = yes #
DNS proxy = no #
Wins proxy = no #
WINS Server = # used to specify the WINS Server (IP address );
Wins support = yes # Set Samba to a WINS server;
Wins hook = #
Kernel oplocks = yes #
Lock spin COUNT = 3 #
Lock spin time = 10 #
Oplock break wait time = 0 #
Add share command = #
Change share command = #
Delete share command = #
Config file = #
Preload = #
Lock dir =/var/Cache/samba #
PID directory =/var/run/samba #
Utmp directory = #
Wtmp directory = #
Utmp = no #
Default service = #
Message command = #
Dfree command = #
Valid chars = #
Remote announce = #
Remote browse sync = #
Socket address = 0.0.0.0 #
Homedir map = auto. home #
Time Offset = 0 #
NIS homedir = no #
Source environment = #
Panic action = #
Hide Local Users = no #
Winbind uid = #
Winbind gid = #
Template homedir =/home/% d/% u #
Template shell =/bin/false #
Winbind separator = \#
Winbind cache time = 15 #
Winbind Enum users = yes #
Winbind Enum groups = yes #
Winbind use default domain = no #
Comment = #
Path = #
Alternate permissions = no #
Username = #
Guest account = Nobody # Set the User Name of the visitor account;
Invalid users = # invalid users (users who cannot access the Samba server );
Valid users = # Valid users (users who can access the Samba server );
Admin users = # Set the Administrator account;
Read list = # Set a list of users with read-only permissions;
Write list = # Set a list of users with write permission;
Printer admin = # Set the printer administrator;
Force user = # forcibly set the owner of files and folders;
Force Group = # forcibly set the owner level of files and files;
Read Only = yes # Set shared files or folders to read-only;
Create mask = 0744 # Set the default permissions for creating files;
Force create mode = 00 #
Security mask = 0777 #
Force security mode = 00 #
Directory mask = 0755 # Set the default permissions when creating folders;
Force directory mode = 00 #
Directory Security mask = 0777 #
Force Directory Security mode = 00 #
Force unknown ACL user = 00 #
Inherit permissions = no #
Inherit ACLs = no #
Guest only = No # set sharing to only allow access by the Guest account;
Guest OK = No # Set whether to allow access by the Guest account;
Only user = no #
Hosts allow = 192.168.0. 172.169.0. 127. # set to allow access to Samba to have a network;
Hosts deny = # Set that access to Samba is not allowed to have a network;
Status = yes # Samba running status;
Nt acl support = yes #
Block size = 1024 #
Max connections = 0 #
Min print space = 0 #
Strict allocate = no #
Strict sync = no #
Sync always = no #
Write cache size = 0 #
Max print jobs = 1000 #
Printable = no #
Postscript = no #
Printing = BSD #
Print command = LPR-r-p % P % s #
Lpq command = lpq-P % P #
Lprm command = lprm-P % J #
Lppause command = #
Lpresume command = #
Queuepause command = #
Queueresume command = #
Printer name = #
Use client driver = no #
Default devmode = no #
Printer Driver = #
Printer Driver file =/etc/samba/printers. Def #
Printer Driver location = #
Default case = Lower #
Case Sensitive = No # determine whether the character size is sensitive;
Preserve case = yes #
Short preserve case = yes #
Mangle case = no #
Mangling char = #
Hide dot files = yes #
Hide unreadable = no #
Delete veto files = no #
Veto files = #
Hide files = # when accessing the client, the hidden files are not displayed;
Veto oplock files = #
Map System = no #
Map hidden = no #
Map Archive = yes #
Mangled names = yes #
Mangled map = #
Browseable = yes #
Blocking locks = yes #
CSC policy = manual #
Fake oplocks = no #
Locking = yes #
Oplocks = yes #
Level2 oplocks = yes #
Oplock contention Limit = 2 #
POSIX locking = yes #
Strict locking = no #
Share modes = yes #
Copy = #
Include = # reference other configuration files;
Exec = #
Preexec close = no #
Postexec = #
Root preexec = # Set User Access sharing commands executed as root;
Root preexec close = No # The closed root user executes the shell command;
Root postexec = # Set the command to be executed as root when the user exits sharing;
Available = yes # Set whether sharing is available;
Volume = # Set the volume label;
Fstype = NTFS #
Set Directory = no #
Wide links = yes # symbolic connections are not allowed;
Follow symlinks = yes #
Dont descend = #
Magic script = #
Magic output = #
Delete readonly = No # whether read-only files can be deleted;
DOS filemode = no #
DOS filetimes = no #
DOS filetime resolution = no #
Fake directory create times = no #
VFS object = #
VFS Options = #

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.