[PATCH] smbd: Change logging level for denied share access
Christof Schmitt
cs at samba.org
Wed Jul 30 10:28:12 MDT 2014
>From 2bd131e59be5d4e60d2874d24a800750e9fa3fca Mon Sep 17 00:00:00 2001
From: Christof Schmitt <cs at samba.org>
Date: Wed, 30 Jul 2014 08:42:33 -0700
Subject: [PATCH] smbd: Change logging level for denied share access
A user without access in the share acl can easily trigger those
warnings. Change the logging level, so that they do not appear with the
default logging level.
Signed-off-by: Christof Schmitt <cs at samba.org>
---
source3/smbd/msdfs.c | 2 +-
source3/smbd/uid.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index 1239ade..98e406a 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -312,7 +312,7 @@ static NTSTATUS create_conn_struct_as_root(TALLOC_CTX *ctx,
if ((conn->share_access & FILE_WRITE_DATA) == 0) {
if ((conn->share_access & FILE_READ_DATA) == 0) {
/* No access, read or write. */
- DEBUG(0,("create_conn_struct: connection to %s "
+ DEBUG(3,("create_conn_struct: connection to %s "
"denied due to security "
"descriptor.\n",
servicename));
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 16c0e3b..6eb5392 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -147,7 +147,7 @@ NTSTATUS check_user_share_access(connection_struct *conn,
if ((share_access & (FILE_READ_DATA|FILE_WRITE_DATA)) == 0) {
/* No access, read or write. */
- DEBUG(0,("user %s connection to %s denied due to share "
+ DEBUG(3,("user %s connection to %s denied due to share "
"security descriptor.\n",
session_info->unix_info->unix_name,
lp_servicename(talloc_tos(), snum)));
--
1.7.1
More information about the samba-technical
mailing list