From 9b1e1e2e5dcfd286af7155ceb824f91cf0e5b5b6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 27 Sep 2006 06:02:07 +0000 Subject: r18943: Samba4 wants its databases private to root. I know some of them could potentially be public, but we'd need to think about them carefully. (This used to be commit 142a235f663f707eee3f16d0c1265b01fe1ecf32) --- source4/lib/db_wrap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/lib/db_wrap.c') diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c index e64f4fa647..b7a6a17ef8 100644 --- a/source4/lib/db_wrap.c +++ b/source4/lib/db_wrap.c @@ -124,6 +124,11 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx, if (lp_parm_bool(-1, "ldb", "nosync", False)) { flags |= LDB_FLG_NOSYNC; } + + /* we usually want Samba databases to be private. If we later + find we need one public, we will need to add a parameter to + ldb_wrap_connect() */ + ldb_set_create_perms(ldb, 0600); ret = ldb_connect(ldb, real_url, flags, options); if (ret != LDB_SUCCESS) { -- cgit