[Samba] include smb.conf.%m

Gerald (Jerry) Carter jerry at samba.org
Mon Apr 18 14:45:18 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tatar Kolos wrote:

| Thanks for the advice, but still no luck.
| I tried to debug the way you suggested,
| and added the following two lines
| to the beginning of the [global] section
| of my smb.conf:
|
| log level = 10
| config file = /etc/samba/smb.conf.%m
|
| The config file directive would be suitable for
| me too, that's why I used that.

I would trust 'include' over 'config file' since
the former option gets more use.

| I'd like to ask two questions if you don't mind:
| - How can I debug that the reload is not triggering?

level 10 debug logs look for lp_file_list_changed().

| - I've found the following in the log file for a
| specific client, that had an own config file
| (smb.conf.vendeg):
|
| [2005/04/18 15:49:23, 6] param/loadparm.c:lp_file_list_changed(2668)
|   lp_file_list_changed()
|   file /etc/samba/smb.conf -> /etc/samba/smb.conf
|   last mod_time: Mon Apr 18 15:36:51 2005
|
| Can this be the line that should report the use of
| the other config file?

smb.conf variable get expanded at run time.  If the config
file doesn't exist , it gets ignored.  The problem here is
that smbd checks the config file on startup and it does not
exist.  Since the original smb.conf is never changed,  the
file is never reparsed.

So retest with the 'include' directive and look at the
logs again.  That should be more helpful.







cheers, jerry
=====================================================================
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"I never saved anything for the swim back."     Ethan Hawk in Gattaca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCY8f+IR7qMdg1EfYRAu3lAKCdmLcnrx0F19MoRjbg8/Vy4BbwzQCfdhP5
Tc1jGHBye0M7zuPUKnmb2Pw=
=QJzm
-----END PGP SIGNATURE-----


More information about the samba mailing list