Years ago Piotr Buliński posted patches implementing a "-L" option to prevent Samba to create hardcoded log files in /var/log/samba if compiled with syslog support. http://lists.samba.org/archive/samba-technical/2009-May/064944.html http://piotr.bulinski.pl/freebsd-patch/net/samba33/files/ At the time, Volker Lendecke was positive about the patches. Unfortunately they got lost and weren't merged. Today Piotr found and reposted them on the same link. So I ask if it's possible to rebase, review and apply these patches. It's a small change, but it gives control back to the user that will be able to suppress the hardcoded log files creation.
Created attachment 10901 [details] lib/debug.c
Created attachment 10902 [details] nmbd/nmbd.c
Created attachment 10903 [details] smbd/server.c
Created attachment 10904 [details] winbindd/winbindd.c
These are the patches Piotr Buliński kindly sent to me.
the "logging" parameter these days allows to configre how to log much better these days and also allows to do what you ask for.