Univention Bugzilla – Bug 52979
log.smb may fill log partition with log level 1
Last modified: 2022-05-18 15:48:37 CEST
In customer environments and in my school test environment I can reproduce the behavior. If folder redirect (f.e. my documents) is activated to f.e. the homeshare of the user (what is usual scenario) every write access logs: [2021/03/23 14:56:30.617014, 1, pid=2822] ../../source3/smbd/vfs.c:895(vfs_GetWd) vfs_GetWd: couldn't stat "." error Keine Berechtigung (NFS problem ?) [2021/03/23 14:58:27.498480, 0, pid=2822] ../../source3/smbd/uid.c:448(change_to_user_internal) change_to_user_internal: chdir_current_service() failed! In the customer environment within a few hours the log.smbd was bigger than 10 GB with loglevel 1
Please provide info how to reproduce.
Was not able to reproduce the problem directly in my test environment. Have called the customer to check their environment. I'm currently waiting for a call back. Will drop more information here when I got them.
I checked the wrong logfile. In my standard test school environment I get the log entries: [2022/04/25 11:36:18.105918, 1, pid=6715] ../../source3/smbd/vfs.c:895(vfs_GetWd) vfs_GetWd: couldn't stat "." error Keine Berechtigung (NFS problem ?) [2022/04/25 11:36:18.106614, 1, pid=6715] ../../source3/smbd/vfs.c:895(vfs_GetWd) vfs_GetWd: couldn't stat "." error Keine Berechtigung (NFS problem ?) in /var/log/samba/log.smbd by successful creating a new file in redirected (to homeshare) documents folder.
Package: samba Version: 2:4.13.13-1A~5.0.0.202205041854 Branch: ucs_5.0-0 Scope: errata5.0-1 samba.yaml f91496466084 | Bug #52979: update yaml
Patched samba to raise the debug level of that call to 2. Because we cannot avoid getting the message logged.
Verified: * Problem analysis * Samba patch * Patch applied during package build * Package update * Advisory r19596 | raise debug level to 2 (61_bug52979-log-fill-at-debug-level-1) r19597 | adjust patch r19598 | adjust patch r19599 | adjust patch f914964660 | Update yaml efe6e7f40c | Advisory wording
<https://errata.software-univention.de/#/?erratum=5.0x309>