Bug 12949 - testparm output differs samba internal runtime config
Summary: testparm output differs samba internal runtime config
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.6.5
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-07 09:23 UTC by Fabian Melters
Modified: 2017-08-07 11:37 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Melters 2017-08-07 09:23:11 UTC
I'm using:
  Version 4.6.5-Debian
to be more precise:
  samba     2:4.6.5+dfsg-8

testparm -sv gives me the config i want to have. But using the running
samba instance seems to think the config a little different.

e.g. in smb.conf

====== /etc/samba/smb.conf

[global]
    ...
    ...
    ...

[netlogon]
    ...
    ...
    ...

[sysvol]
    ...
    ...
    ...

include = /etc/samba/some.conf

======



====== /etc/samba/some.conf

[global]
    ...
    template shell = /bin/bash
    ...

[homes]
    ...
    ...

======

as already mentioned, testparm -sv gives me the config i expected. I
already have used exactly this config in samba 4.2.

This way, "template shell" setting is not working and i'll get
"/bin/false" for my users.

If i move the include right before the [netlogon] section, so that it is
actually a include inside the [global] section, testpar -sv output won't
change, but for my users i'll get "/bin/bash".