ports/142322: [patch] smbstatus got error: messaging_tdb_init failed: NT_STATUS_ACCESS_DENIED

Serg mail_of_sergey at mail.ru
Mon Jan 4 19:00:11 UTC 2010


>Number:         142322
>Category:       ports
>Synopsis:       [patch] smbstatus got error: messaging_tdb_init failed: NT_STATUS_ACCESS_DENIED
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 04 19:00:09 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Serg
>Release:        FreeBSD acc.acc.tula.ru 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #4: Mon Dec 14 20:30:51 MSK 2009     root at acc.acc.tula.ru:/usr/src/sys/i386/compile/Z  i386
>Organization:
>Environment:
smbstatus -V
Version 3.3.9
>Description:
Run smbstatus as usual user and got error:
smbstatus
ERROR: Failed to initialise messages database: Permission denied
messaging_tdb_init failed: NT_STATUS_ACCESS_DENIED
messaging_init failed

>How-To-Repeat:
Repeats always
>Fix:
I got solution from here:
http://lists.samba.org/archive/samba/2010-January/152817.html

FreeBSD's format patch is attached.

Patch attached with submission follows:

--- ./utils/status.c.orig	2009-10-12 15:11:53.000000000 +0400
+++ ./utils/status.c	2010-01-04 19:20:45.000000000 +0300
@@ -367,18 +367,20 @@
 		goto done;
 	}
 
-	/*
-	 * This implicitly initializes the global ctdbd connection, usable by
-	 * the db_open() calls further down.
-	 */
 
-	msg_ctx = messaging_init(NULL, procid_self(),
-				 event_context_init(NULL));
-
-	if (msg_ctx == NULL) {
-		fprintf(stderr, "messaging_init failed\n");
-		ret = -1;
-		goto done;
+	if (lp_clustering()) {
+		/*
+		 * This implicitly initializes the global ctdbd
+		 * connection, usable by the db_open() calls further
+		 * down.
+		 */
+		msg_ctx = messaging_init(NULL, procid_self(),
+					 event_context_init(NULL));
+		if (msg_ctx == NULL) {
+			fprintf(stderr, "messaging_init failed\n");
+			ret = -1;
+			goto done;
+		}
 	}
 
 	if (!lp_load(get_dyn_CONFIGFILE(),False,False,False,True)) {


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list