summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 9e3f3c9f11..a871192ad5 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -334,7 +334,7 @@ connection_struct *make_connection(char *service,char *password,
ZERO_STRUCT(user);
/* This must ONLY BE CALLED AS ROOT. As it exits this function as root. */
- if ((euid = geteuid()) != 0) {
+ if (!non_root_mode() && (euid = geteuid()) != 0) {
DEBUG(0,("make_connection: PANIC ERROR. Called as nonroot (%u)\n", (unsigned int)euid ));
smb_panic("make_connection: PANIC ERROR. Called as nonroot\n");
}