Bug 1376005

Summary: missing dbwrap_watchers.tdb - when directory directives are used
Product: Red Hat Enterprise Linux 7 Reporter: lejeczek <peljasz>
Component: sambaAssignee: Andreas Schneider <asn>
Status: CLOSED INSUFFICIENT_DATA QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.2CC: asn, gdeschner, jrivera, peljasz, rhack
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-16 14:33:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description lejeczek 2016-09-14 12:43:31 UTC
Description of problem:

use these:

  ;root directory = /var/lib/samba-second
  ;lock directory = /var/lib/samba-second
  ;state directory = /var/lib/samba-second
  ;cache directory = /var/lib/samba-second
  ;private dir = /var/lib/samba-second/private
  ;ntp signd socket directory = /var/lib/samba-second/ntp_signd
  ;winbindd socket directory = /run/samba/winbindd-second
  ;winbindd privileged socket directory = /var/lib/samba/winbindd_privileged-second
  pid directory = /run/second

and:

  passdb backend = ldapsam:"ldap://rider.ccnr.biotechnology:1389/"

and you will get:

  Failed to issue the StartTLS instruction: Can't contact LDAP server

(and smbclient and other will fail)

because:

  Unable to create directory /var/lib/samba-second for file dbwrap_watchers.tdb. Error was No such file or directory

Seems like using above directives renders Samba running but crippled.
I also had setenforce=0 and even touched dbwrap_watchers.tdb.


Version-Release number of selected component (if applicable):

samba-4.2.10-7.el7_2.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Andreas Schneider 2016-11-07 09:42:59 UTC
It looks like '/var/lib/samba-second' doesn't exist. Samba is not responsible to create this directory.

However you should provide more detailed information:

See https://www.samba.org/~asn/reporting_samba_bugs.txt

Comment 3 Andreas Schneider 2017-01-16 14:33:37 UTC
Closing as there are no log files to investigate further.

Comment 4 lejeczek 2021-08-11 11:56:10 UTC
ok