summaryrefslogtreecommitdiffstats
path: root/source/smbd/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/service.c')
-rw-r--r--source/smbd/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c
index 18f7b70e37d..9b77935fb3f 100644
--- a/source/smbd/service.c
+++ b/source/smbd/service.c
@@ -232,7 +232,7 @@ connection_struct *make_connection(char *service,char *user,char *password, int
/* 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");
}