mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-06 15:20:12 +00:00
samba: update smb.conf
There are some options are deprecated in smb.conf. Refer to https://salsa.debian.org/samba-team/samba/-/blob/master/debian/smb.conf to update it. * Remove the deprecated "syslog only" and "syslog" global options and replace them with the "logging" statement. * Remove wins support and wins server comments since WINS protocol is outdated. * Improve idmap config Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -32,17 +32,6 @@
|
|||||||
# Change this to the workgroup/NT-domain name your Samba server will part of
|
# Change this to the workgroup/NT-domain name your Samba server will part of
|
||||||
workgroup = WORKGROUP
|
workgroup = WORKGROUP
|
||||||
|
|
||||||
# Windows Internet Name Serving Support Section:
|
|
||||||
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
|
|
||||||
# wins support = no
|
|
||||||
|
|
||||||
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
|
|
||||||
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
|
|
||||||
; wins server = w.x.y.z
|
|
||||||
|
|
||||||
# This will prevent nmbd to search for NetBIOS names through DNS.
|
|
||||||
dns proxy = no
|
|
||||||
|
|
||||||
#### Networking ####
|
#### Networking ####
|
||||||
|
|
||||||
# The specific set of interfaces / networks to bind to
|
# The specific set of interfaces / networks to bind to
|
||||||
@@ -68,14 +57,9 @@
|
|||||||
# Cap the size of the individual log files (in KiB).
|
# Cap the size of the individual log files (in KiB).
|
||||||
max log size = 1000
|
max log size = 1000
|
||||||
|
|
||||||
# If you want Samba to only log through syslog then set the following
|
# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
|
||||||
# parameter to 'yes'.
|
# Append syslog@1 if you want important messages to be sent to syslog too.
|
||||||
# syslog only = no
|
logging = file
|
||||||
|
|
||||||
# We want Samba to log a minimum amount of information to syslog. Everything
|
|
||||||
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
|
|
||||||
# through syslog you should set the following parameter to something higher.
|
|
||||||
syslog = 0
|
|
||||||
|
|
||||||
# Do something sensible when Samba crashes: mail the admin a backtrace
|
# Do something sensible when Samba crashes: mail the admin a backtrace
|
||||||
panic action = /usr/share/samba/panic-action %d
|
panic action = /usr/share/samba/panic-action %d
|
||||||
@@ -94,10 +78,6 @@
|
|||||||
# new domain.
|
# new domain.
|
||||||
server role = standalone server
|
server role = standalone server
|
||||||
|
|
||||||
# If you are using encrypted passwords, Samba will need to know what
|
|
||||||
# password database type you are using.
|
|
||||||
passdb backend = tdbsam
|
|
||||||
|
|
||||||
obey pam restrictions = yes
|
obey pam restrictions = yes
|
||||||
|
|
||||||
# This boolean parameter controls whether Samba attempts to sync the Unix
|
# This boolean parameter controls whether Samba attempts to sync the Unix
|
||||||
@@ -123,8 +103,8 @@
|
|||||||
########## Domains ###########
|
########## Domains ###########
|
||||||
|
|
||||||
#
|
#
|
||||||
# The following settings only takes effect if 'server role = primary
|
# The following settings only takes effect if 'server role = classic
|
||||||
# classic domain controller', 'server role = backup domain controller'
|
# primary domain controller', 'server role = classic backup domain controller'
|
||||||
# or 'domain logons' is set
|
# or 'domain logons' is set
|
||||||
#
|
#
|
||||||
|
|
||||||
@@ -172,15 +152,17 @@
|
|||||||
|
|
||||||
# Some defaults for winbind (make sure you're not using the ranges
|
# Some defaults for winbind (make sure you're not using the ranges
|
||||||
# for something else.)
|
# for something else.)
|
||||||
; idmap uid = 10000-20000
|
; idmap config * : backend = tdb
|
||||||
; idmap gid = 10000-20000
|
; idmap config * : range = 3000-7999
|
||||||
|
; idmap config YOURDOMAINHERE : backend = tdb
|
||||||
|
; idmap config YOURDOMAINHERE : range = 100000-999999
|
||||||
; template shell = /bin/bash
|
; template shell = /bin/bash
|
||||||
|
|
||||||
# Setup usershare options to enable non-root users to share folders
|
# Setup usershare options to enable non-root users to share folders
|
||||||
# with the net usershare command.
|
# with the net usershare command.
|
||||||
|
|
||||||
# Maximum number of usershare. 0 (default) means that usershare is disabled.
|
# Maximum number of usershare. 0 means that usershare is disabled.
|
||||||
; usershare max shares = 100
|
# usershare max shares = 100
|
||||||
|
|
||||||
# Allow users who've been granted usershare privileges to create
|
# Allow users who've been granted usershare privileges to create
|
||||||
# public shares, not just authenticated ones
|
# public shares, not just authenticated ones
|
||||||
|
|||||||
Reference in New Issue
Block a user