Samba failing to start - testparm fails

Issues related to configuring your network
Post Reply
portnoy
Posts: 9
Joined: 2015/09/14 11:49:29

Samba failing to start - testparm fails

Post by portnoy » 2019/03/12 23:22:21

I'm having a heck of a time getting samba to run on a Centos 7 box. I made a simple smb.conf:

Code: Select all

[global]
        workgroup = WORKGROUP
        netbios name = Yzerman
        Server String = Samba on Yzerman
        interfaces = lo 192.168.1.0/24
        hosts allow = 127. 192.168.1.
        logfile = /var/log/samba/log.%m
        max log size = 50
        Security = user
        passdb backend = tdbsam
        ntlm auth = yes

[Homes]
        comment = Home Directories
        browseable = no
        writable = yes
;       valid users = %S
;       valid users = MYDOMAIN\%S

[Movies]
        comment = Movies on Yzerman
        browesable = yes
        writable = yes
        path = /media/Movies
        guest ok = yes

[TV]
        comment = TV Shows on Yzerman
        path = /media/TV
        browseable = yes
        writable = yes
        guest ok = yes


...and when I run testparm, I get this output:

Code: Select all

[root@yzerman samba]# testparm
testparm: /lib64/libtdb.so.1: version `TDB_1.3.11' not found (required by /lib64/libsmbconf.so.0)
testparm: /lib64/libtevent.so.0: version `TEVENT_0.9.30' not found (required by /usr/lib64/samba/libmessages-dgm-samba4.so)
testparm: /lib64/libtevent.so.0: version `TEVENT_0.9.31' not found (required by /usr/lib64/samba/libmessages-dgm-samba4.so)
testparm: /lib64/libtdb.so.1: version `TDB_1.3.11' not found (required by /usr/lib64/samba/libdbwrap-samba4.so)
testparm: /lib64/libtdb.so.1: version `TDB_1.3.11' not found (required by /usr/lib64/samba/libsamba-cluster-support-samba4.so)
testparm: /lib64/libldb.so.1: version `LDB_1.3.0' not found (required by /usr/lib64/samba/libldbsamba-samba4.so)
testparm: /lib64/libldb.so.1: version `LDB_1.1.30' not found (required by /usr/lib64/samba/libldbsamba-samba4.so)
Here are the samba RPM's that were installed:

Code: Select all

[root@yzerman samba]# rpm -qa | grep samba
samba-client-libs-4.8.3-4.el7.x86_64
samba-libs-4.8.3-4.el7.x86_64
samba-4.8.3-4.el7.x86_64
samba-common-libs-4.8.3-4.el7.x86_64
samba-common-tools-4.8.3-4.el7.x86_64
samba-client-4.8.3-4.el7.x86_64
samba-common-4.8.3-4.el7.noarch
I've removed samba samba-client and samba-common and reinstalled all of them, but I get the same thing each time. Looking on the googles only gets me some RPM links, so any help would be appreciated.

User avatar
avij
Forum Moderator
Posts: 3017
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Samba failing to start - testparm fails

Post by avij » 2019/03/13 00:14:14

What about rpm -q libtdb libtevent and rpm -V libtdb libtevent ?

portnoy
Posts: 9
Joined: 2015/09/14 11:49:29

Re: Samba failing to start - testparm fails

Post by portnoy » 2019/03/13 00:18:52

Thanks forthe quick reply.

rpm -q:

Code: Select all

rpm -q libtdb libtevent
libtdb-1.3.8-1.el7_2.x86_64
libtevent-0.9.28-1.el7.x86_64
rpm -V comes back empty. What am I looking for?

User avatar
avij
Forum Moderator
Posts: 3017
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Samba failing to start - testparm fails

Post by avij » 2019/03/13 01:03:46

Your libtdb and libtevent packages are fairly old. A simple yum update without any other parameters should fix this issue by updating those packages, among others.

portnoy
Posts: 9
Joined: 2015/09/14 11:49:29

Re: Samba failing to start - testparm fails

Post by portnoy » 2019/03/13 01:37:46

Yep, that fixed it. Thank you for the quick and helpful reply.

Post Reply