Difference between revisions of "Setting the Samba Log Level"

(New page: Setting the Samba Log Level)
 
 
Line 5: Line 5:
 
Setting a higher log level enables you to debug problems with Samba daemons and commands.
 
Setting a higher log level enables you to debug problems with Samba daemons and commands.
  
 +
Additional Samba logging information:
  
 
+
* [[Client_specific_logging|Configure logging for a specific client and debug level changes during runtime]]
 
+
* [[Setting_up_Audit_Logging|Logging of authentication and authorization events]]
  
 
= Setting the Log Level in the smb.conf File =
 
= Setting the Log Level in the smb.conf File =
Line 22: Line 23:
  
 
For further information and a list of the debug classes, see the <code>smb.conf (5)</code> man page.
 
For further information and a list of the debug classes, see the <code>smb.conf (5)</code> man page.
 
 
  
  

Latest revision as of 10:17, 9 March 2018

Introduction

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

Additional Samba logging information:

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.