smb.conf preexec syntax
Matthias Leopold via samba <[email protected]> Thu, 28 May 2026 13:16:43 +0200
| Newsgroups | gmane.network.samba.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I was debugging why a very old "root preexec" stanza in my smb.conf (Sernet Version 4.21 on RHEL 8) doesn't work (and leaves no trace of failure in Samba log). The stanza uses exact manpage syntax: preexec = echo \"%u connected to %S from %m (%I)\" >> /tmp/log To my experience this doesn't work. This works: preexec = /bin/sh -c 'echo "%u connected to %S from %m (%I)" >> /tmp/log' Can somebody confirm this? Thank you Matthias -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba