Setting the Samba Log Level

From SambaWiki
Revision as of 22:27, 11 October 2016 by Mmuehlfeld (talk | contribs) (New page: Setting the Samba Log Level)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Introduction

Setting a higher log level enables you to debug problems with Samba daemons and commands.



Setting the Log Level in the smb.conf File

You can set the log level for Samba and all commands shipped with Samba using the log level parameter in the smb.conf file.

To set the log level for all debug classes to 3:

log level = 3

To set the general log level to 3 and for the passdb and auth classes to 5:

log level = 3 passdb:5 auth:5

For further information and a list of the debug classes, see the smb.conf (5) man page.



Setting the Debug Level for a Command

Samba commands use the log level set in the log level parameter in the smb.conf file. For details, see Setting the Log Level in the smb.conf File.

However, you can override this value using the -d parameter for all Samba commands. For example:

# net ads join -U administrator -d 1

For details, see the manual page of the Samba command.