Bug 9898 - samba daemon does not support %m or %I for logging
Summary: samba daemon does not support %m or %I for logging
Status: ASSIGNED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL: http://bugs.debian.org/cgi-bin/bugrep...
Keywords:
: 10586 (view as bug list)
Depends on:
Blocks: 9839
  Show dependency treegraph
 
Reported: 2013-05-19 15:56 UTC by Ivo De Decker
Modified: 2022-08-21 23:25 UTC (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivo De Decker 2013-05-19 15:56:24 UTC
When setting the log file to log.%m (which has been the default in Debian for some time now), the samba daemon logs to log.%m, while smbd logs to log.(name) or log.smbd. It seems the support for the %m substitution is missing in the samba daemon.

Michael suggested trying with %I instead, but this results in log.%I being created, so that doesn't work either.

If it is hard to implement, an alternative could be to replace this macro with 'samba' (and log to log.samba), as smbd seems to be doing.
Comment 1 Björn Jacke 2013-06-27 08:10:23 UTC
I've experienced the same. Also with an include=...%I in the smb.conf samba-tool refuses to work. Evaluating of %-Variables really needs to work also with the AD daemon and related tools in Samba 4. This is a blocker for 4.1.
Comment 2 Stefan Metzmacher 2013-08-29 07:12:09 UTC
No 4.1 blocker => 4.2
Comment 3 Karolin Seeger 2013-12-10 15:54:07 UTC
Any news on this one?
Comment 4 Marc Muehlfeld 2014-03-31 19:38:06 UTC
I think this bug is related to Bug #9673.
Comment 5 Andreas Schneider 2014-10-28 10:44:20 UTC
Assigning to Garming :)
Comment 6 Karolin Seeger 2014-11-25 19:33:57 UTC
ping
Comment 7 Dron 2015-11-24 15:33:45 UTC
Any updates about this?
Comment 8 Michael Jones 2017-05-30 00:33:08 UTC
Another possible duplicate: https://bugzilla.samba.org/show_bug.cgi?id=12494
Comment 9 Amit Kumar 2019-05-31 13:58:10 UTC
(In reply to Ivo De Decker from comment #0)
Hey Ivo,
Are you seeing this behavior on RHEL or fedora also?
Comment 10 Andrew Bartlett 2019-05-31 21:08:57 UTC
(In reply to Amit Kumar from comment #9)
This is a fundemental restriction in the Samba AD DC codebase, as one server handles multiple clients, so the global variables used in smbd are not applicable. 

Perhaps something could be done via tevent_wrap() but it would be tricky.
Comment 11 Douglas Bagnall 2022-08-21 23:25:17 UTC
*** Bug 10586 has been marked as a duplicate of this bug. ***