LX0-104 · Question #312
The log level parameter in smb.conf should normally not be set higher than 2 because:
The correct answer is D. The server flushes the log file after each operation, which affects overall performance.. Setting the Samba log level parameter too high (above 2) can significantly degrade server performance because the server might perform frequent disk flushes for logging purposes.
Question
Options
- ACredentials supplied by the user are logged, which poses a security risk.
- BThe increased verbosity has a negative impact on network bandwidth.
- CMost Samba administrators cannot understand the information presented at higher log levels.
- DThe server flushes the log file after each operation, which affects overall performance.
How the community answered
(28 responses)- A11% (3)
- B7% (2)
- C4% (1)
- D79% (22)
Why each option
Setting the Samba `log level` parameter too high (above 2) can significantly degrade server performance because the server might perform frequent disk flushes for logging purposes.
While high log levels can reveal more information about operations, `smb.conf` log levels generally do not directly log raw user credentials; security concerns are typically managed through authentication mechanisms.
Increased verbosity primarily impacts server disk I/O and CPU usage for processing and writing logs, not network bandwidth.
While higher log levels produce detailed output that might be harder to parse, the primary reason against high log levels for normal operation is performance, not administrator comprehension.
When the `log level` in `smb.conf` is set to a high value (e.g., above 2), Samba generates a very large amount of verbose debugging information. This increased logging can cause the server to perform frequent disk write operations and potentially flush log files after each operation, leading to a substantial performance overhead and negatively impacting the server's overall responsiveness and resource utilization.
Concept tested: Samba `smb.conf` log level impact
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.