12

Is there a way to unambiguously get the running config of a samba daemon?

I can't find any reference to it in the manual. Of course you run testparm, but that would only show the validity of the explicit configuration; I would also like to the see the implicit config which is loaded

asktyagi
  • 672
  • 1
  • 4
  • 9
hbogert
  • 729
  • 9
  • 23
  • 1
    Why not just look at `/etc/samba/smb.conf`? That's samba's config file. – Nasir Riley May 31 '19 at 22:49
  • But I also want to see the things that are not explicitly stated in the config file – hbogert Jun 01 '19 at 06:24
  • 11
    `testparm -v` should show the default settings as well. – Thomas Jun 01 '19 at 10:18
  • Like what? You need to be more specific about what you are looking for. – Nasir Riley Jun 01 '19 at 11:25
  • 5
    my original problem is that I have two instances of samba on different nodes, same config files, same version, yet different behaviour. So I wanted to verify that the configs loaded "in mem", at runtime, are the same. Tbh, I am not sure how I can be more clear than using the term "running config". the `testparm -v` is enlightening, but still does not ask the running process for its running config. It's like asking for the current running firewall and you want me to look at e.g., `/etc/iptables.save` instead of invoking `iptables -L` – hbogert Jun 01 '19 at 20:34
  • 4
    Another valid reason for such a command would be to verify that on-the-fly edits to `smb.conf` have been hot-reloaded, as Samba should. In fact this is the reason I found my way to this question. – cyqsimon Jul 02 '21 at 07:34

0 Answers0