I have a new installation of opensuse 13.2
on boot the smbd deamon wil not start the smbd.log file gives de following message
[2014/11/23 19:16:03, 0] …/source3/smbd/server.c:1194(main)
smbd version 4.1.12-2.1-3307-SUSE-oS13.2-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/11/23 19:16:04.286258, 0] …/source3/passdb/pdb_interface.c:169(make_pdb_method_name)
No builtin nor plugin backend for /etc/samba/passdb.tdb found
*
When i try to add an new user passdb.tdb with pdbedit
i get the message
# pdbedit -a -u Crauwel
No builtin nor plugin backend for /etc/samba/passdb.tdb found
Can’t initialize passdb backend.
Wen i start samba manually # /sbin/service smb start
Job for smb.service failed. See “systemctl status smb.service” and “journalctl -xn” for details.
De status is then
*# systemctl status smb.service
smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled)
Active: failed (Result: exit-code) since Sun 2014-11-23 19:42:07 CET; 2min 34s ago
Process: 10303 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
Process: 10295 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Main PID: 10303 (code=exited, status=1/FAILURE)
Status: “Starting process…”
Nov 23 19:42:07 Hektor smbd[10303]: [2014/11/23 19:42:07.160415, 0] …/source3/passdb/pdb_interface.c:169(make_pdb_m…d_name)
Hint: Some lines were ellipsized, use -l to show in full.*
Who can tel me what the problem is?
nmbd deamon starts normaly
2014/11/23 19:16:03, 0] …/source3/nmbd/nmbd.c:904(main)
nmbd version 4.1.12-2.1-3307-SUSE-oS13.2-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/11/23 19:16:03.469128, 0] …/lib/util/become_daemon.c:137(daemon_ready)
STATUS=daemon ‘nmbd’ finished starting up and ready to serve connections
Yes, should be.
But something might have gone wrong, some file might have been deleted somehow after the installation, filesystem corruption, …
The files " /usr/lib(64)/samba/pdb/tdbsam.so" is available
The command " rpm -V samba-libs" gives no output
The output of “rpm -qa | grep samba”
rpm -qa | grep samba
Looks ok, although I do have samba-winbind installed as well (and samba-doc, but that’s only documentation…).
So try to install that in addition as suggested, though I don’t really think it will help with your particular problem.
Please post your /etc/samba/smb.conf, and/or try to set “passdb backend = tdbsam” in there.
PS: I just noticed something in your original post:
This cannot work. $SMBDOPTIONS should have been replaced by the actual options.
Do you have the file /etc/sysconfig/samba? Is there a line like this?
SMBDOPTIONS="-D"
Probably not, so reinstall samba to create it:
sudo zypper in -f samba
Then it might work.
PPS: On second though, this is probably not your problem, the “systemctl status” just prints the actual ExecStart line before the variable is substituted.
The status does include an error message from passdb/pdb_interface.c.
But it’s truncated, so please also post the ouput of: