[Bug 1583324] Re: Samba won't start when an include statement in smb.conf has a variable substitution
Andreas Hasenack
andreas at canonical.com
Tue Aug 28 17:34:32 UTC 2018
Trusty verification
Starting with the packages that show the bug:
ubuntu at trusty-samba-include-1583324:~$ apt-cache policy samba
samba:
Installed: 2:4.3.11+dfsg-0ubuntu0.14.04.16
Candidate: 2:4.3.11+dfsg-0ubuntu0.14.04.16
Version table:
*** 2:4.3.11+dfsg-0ubuntu0.14.04.16 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
ubuntu at trusty-samba-include-1583324:~$ sudo samba-tool testparm -d 2
lpcfg_load: refreshing parameters from /etc/samba/smb.conf
Can't find include file /etc/samba/smb.conf.%U
ERROR: Unable to load default file
ubuntu at trusty-samba-include-1583324:~$ echo $?
255
Upgrading to the packages from proposed:
ubuntu at trusty-samba-include-1583324:~$ apt-cache policy samba
samba:
Installed: 2:4.3.11+dfsg-0ubuntu0.14.04.17
Candidate: 2:4.3.11+dfsg-0ubuntu0.14.04.17
Version table:
*** 2:4.3.11+dfsg-0ubuntu0.14.04.17 0
500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
100 /var/lib/dpkg/status
The testparm command now works. It shows the config file, remarks that the "%U" file was ignored, and exits with status 0:
ubuntu at trusty-samba-include-1583324:~$ sudo samba-tool testparm -d 2
lpcfg_load: refreshing parameters from /etc/samba/smb.conf
Tried to load /etc/samba/smb.conf.%U but variable substitution in filename, ignoring file.
Press enter to see a dump of your service definitions
# Global parameters
[global]
netbios name = SAMBA
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
log level = 2
log file = /var/log/samba/log.%m
max log size = 1000
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
include = /etc/samba/smb.conf.%U
ubuntu at trusty-samba-include-1583324:~$ echo $?
0
Trusty verification complete.
** Tags removed: verification-needed-trusty
** Tags added: verification-done-trusty
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1583324
Title:
Samba won't start when an include statement in smb.conf has a variable
substitution
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1583324/+subscriptions
More information about the Ubuntu-server-bugs
mailing list