From 9ee7b022e5cbf13f2fc8c6f8c556553eb2ef9f06 Mon Sep 17 00:00:00 2001 From: Christof Schmitt 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Jul 31 01:17:30 CEST 2014 on sn-devel-104 --- 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 1239ade08aa..98e406af252 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 16c0e3b1109..6eb53920abf 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))); -- 2.11.4.GIT