smbd not starting in ubuntu

Asked by vamsikrishna on 2016-04-25

Smbd service is not starting in samba. Tried reinstalling samba package which did not help. Dmesg logs these messages and exit 127 is an anonymous error which is of not much in troubleshooting issue.

[100422.925336] init: smbd main process (2352) terminated with status 127
[100422.925356] init: smbd main process ended, respawning
[100422.942974] init: smbd main process (2356) terminated with status 127
[100422.942994] init: smbd main process ended, respawning
[100422.960687] init: smbd main process (2360) terminated with status 127
[100422.960708] init: smbd main process ended, respawning
[100422.979847] init: smbd main process (2364) terminated with status 127
[100422.979868] init: smbd main process ended, respawning
[100422.999061] init: smbd main process (2368) terminated with status 127
[100422.999082] init: smbd respawning too fast, stopped

$service samba status
 * nmbd is running
 * smbd is not running
]$service smbd start
smbd start/pre-start, process 3845
$dmesg | tail
[100549.441032] init: smbd main process ended, respawning
[100549.452919] init: smbd main process (3871) terminated with status 127
[100549.452929] init: smbd main process ended, respawning

testparm result looks fine.
===============
$testparm
Load smb config files from /etc/samba/smb.conf
WARNING: The "syslog" option is deprecated
Processing section "[PraveenDiwakar]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
        server string = %h server (Samba, Ubuntu)
        interfaces = 10.102.1.98/24 eth0
        server role = standalone server
        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
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap config * : backend = tdb

[PraveenDiwakar]
        path = /export/home/praveendi/Automation
        valid users = praveendi
        read only = No
        guest ok = Yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
============

Please suggest a solution to this issue.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Last query:
2016-04-28
Last reply:
2016-05-14

What is the output of:

lsb_release -a; uname -a; apt-cache policy samba

Thanks

vamsikrishna (vamsi-kopalle) said : #2

Output is pasted below for your reference andrew :

$lsb_release -a; uname -a; apt-cache policy samba
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
Linux obelix 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
samba:
  Installed: (none)
  Candidate: 2:4.3.8+dfsg-0ubuntu0.14.04.2
  Version table:
     2:4.3.8+dfsg-0ubuntu0.14.04.2 0
        500 http://india.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     2:4.1.6+dfsg-1ubuntu2 0
        500 http://india.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Thanks

Manfred Hampl (m-hampl) said : #3

1. Error 127 usually indicates some kind of "command not found" problem.

2. You seem to be running some kind of foreign samba version, and not the Ubuntu-provided one. If that is the case, then we maybe cannot help.

What is the output of
cat /etc/init.d/smbd
cat /etc/init.d/samba

vamsikrishna (vamsi-kopalle) said : #4

I have installed samba through apt-get install samba. I did not use any source installation to do it.

root@localhost:/var/log/samba# cat /etc/init.d/samba
#!/bin/sh

### BEGIN INIT INFO
# Provides: samba
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: ensure Samba daemons are started (nmbd and smbd)
### END INIT INFO

set -e

# start nmbd, smbd and samba-ad-dc unconditionally
# the init scripts themselves check if they are needed or not
case $1 in
        start)
                /etc/init.d/nmbd start
                /etc/init.d/smbd start
                /etc/init.d/samba-ad-dc start
                ;;
        stop)
                /etc/init.d/samba-ad-dc stop
                /etc/init.d/smbd stop
                /etc/init.d/nmbd stop
                ;;
        reload)
                /etc/init.d/smbd reload
                ;;
        restart|force-reload)
                /etc/init.d/nmbd "$1"
                /etc/init.d/smbd "$1"
                /etc/init.d/samba-ad-dc "$1"
                ;;
        status)
                status=0
                NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null || true`
                SERVER_ROLE=`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1 || true`
                if [ "$SERVER_ROLE" != "active directory domain controller" ]; then
                        if [ "$NMBD_DISABLED" != "Yes" ]; then
                                /etc/init.d/nmbd status || status=$?
                        fi
                        /etc/init.d/smbd status || status=$?
                else
                        /etc/init.d/samba-ad-dc status || status=$?
                fi
                exit $status
                ;;
        *)
                echo "Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload|status}"
                exit 1
                ;;
esac
root@localhost:/var/log/samba#
root@localhost:/var/log/samba# cat /etc/init.d/smbd
#!/bin/sh

### BEGIN INIT INFO
# Provides: smbd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Should-Start: slapd cups
# Should-Stop: slapd cups
# Short-Description: start Samba SMB/CIFS daemon (smbd)
### END INIT INFO

PIDDIR=/var/run/samba
SMBDPID=$PIDDIR/smbd.pid

# clear conflicting settings from the environment
unset TMPDIR

# See if the daemons are there
test -x /usr/sbin/smbd || exit 0

. /lib/lsb/init-functions

case $1 in
        start)
                if init_is_upstart; then
                        exit 1
                fi
                SERVER_ROLE=`samba-tool testparm --parameter-name="server role" 2>/dev/null | tail -1`
                if [ "$SERVER_ROLE" = "active directory domain controller" ]; then
                    exit 0
                fi

                log_daemon_msg "Starting SMB/CIFS daemon" smbd
                # Make sure we have our PIDDIR, even if it's on a tmpfs
                install -o root -g root -m 755 -d $PIDDIR

                if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/smbd -- -D; then
                        log_end_msg 1
                        exit 1
                fi

                log_end_msg 0
                ;;
        stop)
                if init_is_upstart; then
                        exit 0
                fi

                log_daemon_msg "Stopping SMB/CIFS daemon" smbd

                start-stop-daemon --stop --quiet --pidfile $SMBDPID
                # Wait a little and remove stale PID file
                sleep 1
                if [ -f $SMBDPID ] && ! ps h `cat $SMBDPID` > /dev/null
                then
                        # Stale PID file, remove it (should be removed by
                        # smbd itself IMHO).
                        rm -f $SMBDPID
                fi

                log_end_msg 0

                ;;
        reload)
                log_daemon_msg "Reloading /etc/samba/smb.conf" smbd

                start-stop-daemon --stop --quiet --signal HUP --pidfile $SMBDPID

                log_end_msg 0
                ;;
        restart|force-reload)
                if init_is_upstart; then
                        exit 1
                fi
                $0 stop
                sleep 1
                $0 start
                ;;
        status)
                status_of_proc -p $SMBDPID /usr/sbin/smbd smbd
                exit $?
                ;;
        *)
                echo "Usage: /etc/init.d/smbd {start|stop|reload|restart|force-reload|status}"
                exit 1
                ;;
esac

exit 0

Manfred Hampl (m-hampl) said : #5

The system output

samba:
   Installed: (none)
   Candidate: 2:4.3.8+dfsg-0ubuntu0.14.04.2

contradicts what you are saying. The package management tells that the Ubuntu samba package (which would be installed with "apt-get install samba") is not present on your system.

What is the output of
sudo sh -x /etc/init.d/smbd start

vamsikrishna (vamsi-kopalle) said : #6

We have also tried source installation since the system installed software was throwing error. The current version is installed from apt-get :

[root@obelix ~]$apt-cache policy samba
samba:
  Installed: 2:4.3.8+dfsg-0ubuntu0.14.04.2
  Candidate: 2:4.3.8+dfsg-0ubuntu0.14.04.2
  Version table:
 *** 2:4.3.8+dfsg-0ubuntu0.14.04.2 0
        500 http://india.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
     2:4.1.6+dfsg-1ubuntu2 0
        500 http://india.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
[root@obelix ~]$
[root@obelix ~]$sudo sh -x /etc/init.d/smbd startsudo sh -x /etc/init.d/smbd startsudo sh -x /etc/init.d/smbd start^C
[root@obelix ~]$sudo sh -x /etc/init.d/smbd start
+ PIDDIR=/var/run/samba
+ SMBDPID=/var/run/samba/smbd.pid
+ unset TMPDIR
+ test -x /usr/sbin/smbd
+ . /lib/lsb/init-functions
+ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
+ [ -r /lib/lsb/init-functions.d/20-left-info-blocks ]
+ . /lib/lsb/init-functions.d/20-left-info-blocks
+ [ -r /lib/lsb/init-functions.d/50-ubuntu-logging ]
+ . /lib/lsb/init-functions.d/50-ubuntu-logging
+ LOG_DAEMON_MSG=
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ true
+ init_is_upstart
+ [ -x /sbin/initctl ]
+ /sbin/initctl version
+ /bin/grep -q upstart
+ return 0
+ exit 1
[root@obelix ~]$service samba start
[root@obelix ~]$service samba status
 * nmbd is running
 * smbd is not running

vamsikrishna (vamsi-kopalle) said : #7

I have noticed this error :

[root@obelix ~]$
[root@obelix ~]$/usr/sbin/smbd -D
/usr/sbin/smbd: error while loading shared libraries: liblibcli_netlogon3.so.0: cannot open shared object file: No such file or directory

It appears that there is an issue with shared library. Can you suggest on how to solve it.

What is the output of:

sudo updatedb; locate liblibcli

Thanks

Manfred Hampl (m-hampl) said : #9

liblibcli-netlogon3.so.0 should be part of samba-libs.

What is the output of

dpkg -l | grep samba

vamsikrishna (vamsi-kopalle) said : #10

[root@obelix ~]$dpkg -l | grep samba
ii gosa-plugin-samba 2.7.4+reloaded1-1 all samba3 plugin for GOsa²
ii libcrypt-smbhash-perl 0.12-4 all generate LM/NT hash of a password for samba
ii python-samba 2:4.3.8+dfsg-0ubuntu0.14.04.2 amd64 Python bindings for Samba
ii samba 2:4.3.8+dfsg-0ubuntu0.14.04.2 amd64 SMB/CIFS file, print, and login server for Unix
ii samba-common 2:4.3.8+dfsg-0ubuntu0.14.04.2 all common files used by both the Samba server and client
ii samba-common-bin 2:4.3.8+dfsg-0ubuntu0.14.04.2 amd64 Samba common files used by both the server and the client
ii samba-dbg 2:4.3.8+dfsg-0ubuntu0.14.04.2 amd64 Samba debugging symbols
ii samba-dev 2:4.3.8+dfsg-0ubuntu0.14.04.2 amd64 tools for extending Samba
ii samba-doc 2:4.3.8+dfsg-0ubuntu0.14.04.2 all Samba documentation
ii samba-dsdb-modules 2:4.3.8+dfsg-0ubuntu0.14.04.2 amd64 Samba Directory Services Database
ii samba-libs:amd64 2:4.3.8+dfsg-0ubuntu0.14.04.2 amd64 Samba core libraries
ii samba-testsuite 2:4.3.8+dfsg-0ubuntu0.14.04.2 amd64 test suite from Samba
ii samba-vfs-modules 2:4.3.8+dfsg-0ubuntu0.14.04.2 amd64 Samba Virtual FileSystem plugins
pc zentyal-samba 2.3.12+quantal1ubuntu1 all Zentyal - File Sharing and Domain Services

And the output of my command please....

vamsikrishna (vamsi-kopalle) said : #12

[root@obelix ~]$lsb_release -a; uname -a; apt-cache policy samba
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
Linux obelix 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
samba:
  Installed: 2:4.3.8+dfsg-0ubuntu0.14.04.2
  Candidate: 2:4.3.8+dfsg-0ubuntu0.14.04.2
  Version table:
 *** 2:4.3.8+dfsg-0ubuntu0.14.04.2 0
        500 http://india.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
     2:4.1.6+dfsg-1ubuntu2 0
        500 http://india.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
You have new mail in /var/mail/root

Manfred Hampl (m-hampl) said : #13

The output requested by actionparsnip was for the commands

sudo updatedb; locate liblibcli

sudo apt-get install samba-libs

Is it then OK?

http://packages.ubuntu.com/xenial/amd64/samba-libs/filelist

vamsikrishna (vamsi-kopalle) said : #15

[root@obelix ~]$sudo updatedb; locate liblibcli
/lib/liblibcli-netlogon3.so.0
/usr/lib/liblibcli-netlogon3.so.0
/usr/lib/x86_64-linux-gnu/liblibcli-netlogon3.so.0
/usr/lib/x86_64-linux-gnu/samba/liblibcli-lsa3.so.0
/usr/lib/x86_64-linux-gnu/samba/liblibcli-netlogon3.so.0
/usr/local/lib/liblibcli-netlogon3.so.0
/usr/local/samba/lib/liblibcli-netlogon3.so.0
/usr/local/samba/lib/private/liblibcli-lsa3-samba4.so
/usr/local/samba/lib/private/liblibcli-netlogon3-samba4.so

$ apt-get install samba-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
samba-libs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

vamsikrishna (vamsi-kopalle) said : #16

]$ldconfig -v | grep netlog
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.19.so is the dynamic linker, ignoring

        liblibcli-netlogon3.so.0 -> liblibcli-netlogon3.so.0
        liblibcli-netlogon3.so.0 -> liblibcli-netlogon3.so.0
        liblibcli-netlogon3.so.0 -> liblibcli-netlogon3.so.0
        liblibcli-netlogon3.so.0 -> liblibcli-netlogon3.so.0

I have noticed some errors while running ldconfig with respect paths of libraries.
$echo $LD_LIBRARY_PATH

library path is blank. Please suggest a solution on how to resolve this issue.

vamsikrishna (vamsi-kopalle) said : #17

please update update on this thread.

Manfred Hampl (m-hampl) said : #18

Did you try reinstalling samba-libs?

What is the output of

sudo apt-get install --reinstall samba-libs

vamsikrishna (vamsi-kopalle) said : #19

[root@obelix ~]$apt-get install --reinstall samba-libs

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 0 B/5,144 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 123614 files and directories currently installed.)
Preparing to unpack .../samba-libs_2%3a4.3.8+dfsg-0ubuntu0.14.04.2_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.3.8+dfsg-0ubuntu0.14.04.2) over (2:4.3.8+dfsg-0ubuntu0.14.04.2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up samba-libs:amd64 (2:4.3.8+dfsg-0ubuntu0.14.04.2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
[root@obelix ~]$
[root@obelix ~]$
[root@obelix ~]$/usr/sbin/smbd -D /usr/sbin/smbd: error while loading shared libraries: liblibcli_netlogon3.so.0: cannot open shared object file: No such file or directory

[root@obelix ~]$service smbd restart
stop: Unknown instance:
smbd start/running, process 5416
[root@obelix ~]$dmesg | tail
[335643.339836] init: smbd main process (5483) terminated with status 127
[335643.339847] init: smbd main process ended, respawning
[335643.354944] init: smbd main process (5492) terminated with status 127
[335643.354966] init: smbd main process ended, respawning
[335643.370714] init: smbd main process (5504) terminated with status 127
[335643.370735] init: smbd main process ended, respawning
[335643.388142] init: smbd main process (5514) terminated with status 127
[335643.388163] init: smbd main process ended, respawning
[335643.404510] init: smbd main process (5525) terminated with status 127
[335643.404530] init: smbd respawning too fast, stopped
==============

I have done reinstallation it did not work as expected. Please suggest what could have caused such issue.

Manfred Hampl (m-hampl) said : #20

You wrote

"I have noticed some errors while running ldconfig with respect paths of libraries."

Please provide details, especially the full error message, if possible.

And provide the output of

ldd /usr/sbin/smbd
grep samba /etc/ld.so.conf.d/*

vamsikrishna (vamsi-kopalle) said : #21

[root@obelix ~]$ldd /usr/sbin/smbd
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libsamba3-util.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/liblibsmb.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libgse.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libCHARSET3.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/liberrors.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libcliauth.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libsecrets3.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libmsrpc3.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libauth.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libads.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
/usr/sbin/smbd: /usr/lib/x86_64-linux-gnu/samba/libdcerpc-samba.so.0: version `SAMBA_4.1.6_UBUNTU' not found (required by /usr/local/lib/libnetapi.so.0)
        linux-vdso.so.1 => (0x00007ffc57230000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4c6e70a000)
        libsamba-util.so.0 => /usr/lib/x86_64-linux-gnu/libsamba-util.so.0 (0x00007f4c6e4a1000)
        libsmbd-base.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0 (0x00007f4c6df74000)
        libsocket-blocking.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsocket-blocking.so.0 (0x00007f4c6dd72000)
        libsamba-debug.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0 (0x00007f4c6db6c000)
        libgenrand.so.0 => /usr/lib/x86_64-linux-gnu/samba/libgenrand.so.0 (0x00007f4c6d95f000)
        libsmbregistry.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0 (0x00007f4c6d72c000)
        libndr-samba.so.0 => /usr/lib/x86_64-linux-gnu/samba/libndr-samba.so.0 (0x00007f4c6d40e000)
        libcliauth.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcliauth.so.0 (0x00007f4c6d1fb000)
        liberrors.so.0 => /usr/lib/x86_64-linux-gnu/samba/liberrors.so.0 (0x00007f4c6ceb8000)
        libsamba3-util.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamba3-util.so.0 (0x00007f4c6ccaf000)
        libsamba-passdb.so.0 => /usr/lib/x86_64-linux-gnu/libsamba-passdb.so.0 (0x00007f4c6ca3b000)
        libpopt-samba3.so.0 => /usr/lib/x86_64-linux-gnu/samba/libpopt-samba3.so.0 (0x00007f4c6c836000)
        libauth.so.0 => /usr/lib/x86_64-linux-gnu/samba/libauth.so.0 (0x00007f4c6c610000)
        libsmbconf.so.0 => /usr/lib/x86_64-linux-gnu/libsmbconf.so.0 (0x00007f4c6c3b9000)
        libsamba-sockets.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0 (0x00007f4c6c1a1000)
        libsmbd-shim.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0 (0x00007f4c6bf9e000)
        libndr-standard.so.0 => /usr/lib/x86_64-linux-gnu/libndr-standard.so.0 (0x00007f4c6ba8f000)
        libsamba-hostconfig.so.0 => /usr/lib/x86_64-linux-gnu/libsamba-hostconfig.so.0 (0x00007f4c6b866000)
        libsecrets3.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsecrets3.so.0 (0x00007f4c6b65b000)
        libpopt.so.0 => /lib/x86_64-linux-gnu/libpopt.so.0 (0x00007f4c6b44f000)
        libtalloc.so.2 => /usr/lib/x86_64-linux-gnu/libtalloc.so.2 (0x00007f4c6b23f000)
        libtevent.so.0 => /usr/lib/x86_64-linux-gnu/libtevent.so.0 (0x00007f4c6b031000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4c6ac6c000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4c6eb3a000)
        libtime-basic.so.0 => /usr/lib/x86_64-linux-gnu/samba/libtime-basic.so.0 (0x00007f4c6aa69000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f4c6a85a000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f4c6a652000)
        libprinting-migrate.so.0 => /usr/lib/x86_64-linux-gnu/samba/libprinting-migrate.so.0 (0x00007f4c6a43c000)
        libtevent-util.so.0 => /usr/lib/x86_64-linux-gnu/libtevent-util.so.0 (0x00007f4c6a239000)
        libmessages-dgm.so.0 => /usr/lib/x86_64-linux-gnu/samba/libmessages-dgm.so.0 (0x00007f4c6a030000)
        libnetapi.so.0 => /usr/local/lib/libnetapi.so.0 (0x00007f4c69dd2000)
        libsmbd-conn.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsmbd-conn.so.0 (0x00007f4c69bcf000)
        libsys-rw.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsys-rw.so.0 (0x00007f4c699cc000)
        libutil-tdb.so.0 => /usr/lib/x86_64-linux-gnu/samba/libutil-tdb.so.0 (0x00007f4c697c8000)
        libnpa-tstream.so.0 => /usr/lib/x86_64-linux-gnu/samba/libnpa-tstream.so.0 (0x00007f4c695bf000)
        libsamba-security.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0 (0x00007f4c693a2000)
        libinterfaces.so.0 => /usr/lib/x86_64-linux-gnu/samba/libinterfaces.so.0 (0x00007f4c6919f000)
        libmessages-util.so.0 => /usr/lib/x86_64-linux-gnu/samba/libmessages-util.so.0 (0x00007f4c68f9d000)
        liblibsmb.so.0 => /usr/lib/x86_64-linux-gnu/samba/liblibsmb.so.0 (0x00007f4c68d36000)
        libmsrpc3.so.0 => /usr/lib/x86_64-linux-gnu/samba/libmsrpc3.so.0 (0x00007f4c68b16000)
        libserver-id-db.so.0 => /usr/lib/x86_64-linux-gnu/samba/libserver-id-db.so.0 (0x00007f4c68912000)
        libdbwrap.so.0 => /usr/lib/x86_64-linux-gnu/samba/libdbwrap.so.0 (0x00007f4c68707000)
        libiov-buf.so.0 => /usr/lib/x86_64-linux-gnu/samba/libiov-buf.so.0 (0x00007f4c68505000)
        libkrb5samba.so.0 => /usr/lib/x86_64-linux-gnu/samba/libkrb5samba.so.0 (0x00007f4c682fa000)
        libdcerpc-samba.so.0 => /usr/lib/x86_64-linux-gnu/samba/libdcerpc-samba.so.0 (0x00007f4c67f6b000)
        libndr.so.0 => /usr/lib/x86_64-linux-gnu/libndr.so.0 (0x00007f4c67d56000)
        libutil-reg.so.0 => /usr/lib/x86_64-linux-gnu/samba/libutil-reg.so.0 (0x00007f4c67b53000)
        libcom_err-samba4.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcom_err-samba4.so.0 (0x00007f4c67950000)
        libcli-spoolss.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcli-spoolss.so.0 (0x00007f4c6774a000)
        libads.so.0 => /usr/lib/x86_64-linux-gnu/samba/libads.so.0 (0x00007f4c67521000)
        libwbclient.so.0 => /usr/lib/x86_64-linux-gnu/libwbclient.so.0 (0x00007f4c67313000)
        libutil-setid.so.0 => /usr/lib/x86_64-linux-gnu/samba/libutil-setid.so.0 (0x00007f4c67111000)
        liblibcli-lsa3.so.0 => /usr/lib/x86_64-linux-gnu/samba/liblibcli-lsa3.so.0 (0x00007f4c66f0d000)
        libcli-smb-common.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcli-smb-common.so.0 (0x00007f4c66ce1000)
        libgse.so.0 => /usr/lib/x86_64-linux-gnu/samba/libgse.so.0 (0x00007f4c66ab9000)
        libgensec.so.0 => /usr/lib/x86_64-linux-gnu/libgensec.so.0 (0x00007f4c66891000)
        libdcerpc-binding.so.0 => /usr/lib/x86_64-linux-gnu/libdcerpc-binding.so.0 (0x00007f4c66673000)
        libndr-samba4.so.0 => /usr/lib/x86_64-linux-gnu/samba/libndr-samba4.so.0 (0x00007f4c66341000)
        libCHARSET3.so.0 => /usr/lib/x86_64-linux-gnu/samba/libCHARSET3.so.0 (0x00007f4c6613d000)
        libauthkrb5.so.0 => /usr/lib/x86_64-linux-gnu/samba/libauthkrb5.so.0 (0x00007f4c65f22000)
        libsmb-transport.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsmb-transport.so.0 (0x00007f4c65d1d000)
        libsamba-modules.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamba-modules.so.0 (0x00007f4c65b1a000)
        libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f4c658c9000)
        libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x00007f4c656c4000)
        libtdb.so.1 => /usr/lib/x86_64-linux-gnu/libtdb.so.1 (0x00007f4c654af000)
        libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x00007f4c652a7000)
        libcups.so.2 => /usr/lib/x86_64-linux-gnu/libcups.so.2 (0x00007f4c65033000)
        libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f4c64e19000)
        libasn1util.so.0 => /usr/lib/x86_64-linux-gnu/samba/libasn1util.so.0 (0x00007f4c64c13000)
        libndr-nbt.so.0 => /usr/lib/x86_64-linux-gnu/libndr-nbt.so.0 (0x00007f4c649fe000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f4c647e5000)
        libsamdb-common.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamdb-common.so.0 (0x00007f4c645bd000)
        libsamdb.so.0 => /usr/lib/x86_64-linux-gnu/libsamdb.so.0 (0x00007f4c643a6000)
        libldbsamba.so.0 => /usr/lib/x86_64-linux-gnu/samba/libldbsamba.so.0 (0x00007f4c6417c000)
        libsmbldap.so.0 => /usr/lib/x86_64-linux-gnu/libsmbldap.so.0 (0x00007f4c63f71000)
        libsamba-credentials.so.0 => /usr/lib/x86_64-linux-gnu/libsamba-credentials.so.0 (0x00007f4c63d5f000)
        libsmbldaphelper.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsmbldaphelper.so.0 (0x00007f4c63b5a000)
        libcli-ldap-common.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcli-ldap-common.so.0 (0x00007f4c63952000)
        libtdb-wrap.so.0 => /usr/lib/x86_64-linux-gnu/samba/libtdb-wrap.so.0 (0x00007f4c6374f000)
        libevents.so.0 => /usr/lib/x86_64-linux-gnu/samba/libevents.so.0 (0x00007f4c6354d000)
        libldb.so.1 => /usr/lib/x86_64-linux-gnu/libldb.so.1 (0x00007f4c63320000)
        liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f4c63111000)
        libutil-cmdline.so.0 => /usr/lib/x86_64-linux-gnu/samba/libutil-cmdline.so.0 (0x00007f4c62f0d000)
        liblibcli-netlogon3.so.0 => /usr/lib/x86_64-linux-gnu/samba/liblibcli-netlogon3.so.0 (0x00007f4c62d08000)
        libtalloc-report.so.0 => /usr/lib/x86_64-linux-gnu/samba/libtalloc-report.so.0 (0x00007f4c62b05000)
        libndr-krb5pac.so.0 => /usr/lib/x86_64-linux-gnu/libndr-krb5pac.so.0 (0x00007f4c628fb000)
        libauth-sam-reply.so.0 => /usr/lib/x86_64-linux-gnu/samba/libauth-sam-reply.so.0 (0x00007f4c626f7000)
        libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f4c624e9000)
        libserver-role.so.0 => /usr/lib/x86_64-linux-gnu/samba/libserver-role.so.0 (0x00007f4c622e7000)
        libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f4c620e2000)
        libmsghdr.so.0 => /usr/lib/x86_64-linux-gnu/samba/libmsghdr.so.0 (0x00007f4c61edf000)
        liblibcli_netlogon3.so.0 => not found
        libutil_cmdline.so.0 => not found
        libpdb.so.0 => not found
        liblibcli_lsa3.so.0 => not found
        libflag_mapping.so.0 => not found
        libcli_smb_common.so.0 => not found
        libcli-cldap.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcli-cldap.so.0 (0x00007f4c61cd7000)
        libkrb5-samba4.so.26 => /usr/lib/x86_64-linux-gnu/samba/libkrb5-samba4.so.26 (0x00007f4c61a6b000)
        libasn1-samba4.so.8 => /usr/lib/x86_64-linux-gnu/samba/libasn1-samba4.so.8 (0x00007f4c617f0000)
        libaddns.so.0 => /usr/lib/x86_64-linux-gnu/samba/libaddns.so.0 (0x00007f4c615e5000)
        libgssapi-samba4.so.2 => /usr/lib/x86_64-linux-gnu/samba/libgssapi-samba4.so.2 (0x00007f4c613b3000)
        libwinbind-client.so.0 => /usr/lib/x86_64-linux-gnu/samba/libwinbind-client.so.0 (0x00007f4c611af000)
        libcli-nbt.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcli-nbt.so.0 (0x00007f4c60fa5000)
        libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f4c60d25000)
        libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f4c60a67000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4c60863000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f4c60648000)
        libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f4c6042d000)
        libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f4c601ef000)
        libgssapi_krb5.so.2 => /usr/local/lib/libgssapi_krb5.so.2 (0x00007f4c5ffa7000)
        libavahi-common.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 (0x00007f4c5fd9b000)
        libavahi-client.so.3 => /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 (0x00007f4c5fb8a000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4c5f884000)
        libflag-mapping.so.0 => /usr/lib/x86_64-linux-gnu/samba/libflag-mapping.so.0 (0x00007f4c5f681000)
        libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007f4c5f45d000)
        libheimbase-samba4.so.1 => /usr/lib/x86_64-linux-gnu/samba/libheimbase-samba4.so.1 (0x00007f4c5f259000)
        libhx509-samba4.so.5 => /usr/lib/x86_64-linux-gnu/samba/libhx509-samba4.so.5 (0x00007f4c5f013000)
        libhcrypto-samba4.so.5 => /usr/lib/x86_64-linux-gnu/samba/libhcrypto-samba4.so.5 (0x00007f4c5eddf000)
        libroken-samba4.so.19 => /usr/lib/x86_64-linux-gnu/samba/libroken-samba4.so.19 (0x00007f4c5ebd2000)
        libwind-samba4.so.0 => /usr/lib/x86_64-linux-gnu/samba/libwind-samba4.so.0 (0x00007f4c5e9aa000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f4c5e7a5000)
        libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f4c5e591000)
        libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f4c5e34f000)
        libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f4c5e146000)
        libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f4c5debe000)
        libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f4c5dc1d000)
        libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f4c5da19000)
        libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f4c5d7e6000)
        libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f4c5d5d1000)
        libkrb5.so.3 => /usr/local/lib/libkrb5.so.3 (0x00007f4c5d302000)
        libk5crypto.so.3 => /usr/local/lib/libk5crypto.so.3 (0x00007f4c5d0d2000)
        libcom_err.so.3 => /usr/local/lib/libcom_err.so.3 (0x00007f4c5cece000)
        libkrb5support.so.0 => /usr/local/lib/libkrb5support.so.0 (0x00007f4c5ccc2000)
        libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f4c5ca7d000)
        libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f4c5c875000)
        libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f4c5c64c000)
        libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f4c5c43e000)
        libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f4c5c1f5000)
        libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f4c5bf3c000)
        libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f4c5bd03000)
You have new mail in /var/mail/root
[root@obelix ~]$grep samba /etc/ld.so.conf.d/*
[root@obelix ~]$

Manfred Hampl (m-hampl) said : #22

I think I see the root cause:

Apparently you have installed different and conflicting versions of samba from different sources.
The Ubuntu packages do not install anything in /usr/local/lib, but you have some samba files there.

You have
libnetapi.so.0 => /usr/local/lib/libnetapi.so.0 (0x00007f4c69dd2000)
but I assume it should be
=> /usr/lib/x86_64-linux-gnu/libnetapi.so.0

What is the output of the commands
sudo updatedb
locate libnetapi
ls -l /usr/local/lib/

Have you installed some samba version from a foreign source (probably version 4.1.6)?

I suggest that you deinstall all samba versions (especially those from non-Ubuntu sources), and reinstall the original Ubuntu-provided packages.

Launchpad Janitor (janitor) said : #23

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

rick (rick-ruttentuttels) said : #24

Hi,

I saw your problems with SAMBA on the internet. Did you manage to solve it?
I had the same issue and today I was able to start SAMBA again.

Let me know if you still need support,

Rick.