summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-08-31 07:11:45 +0000
committerAndrew Tridgell <tridge@samba.org>2000-08-31 07:11:45 +0000
commit22fbda6c5616c89e774ed2550476f47aa9f0506f (patch)
tree7f032ce197758c08edd39f83f1355bd77d261715
parentbd5e70ebfd734fb5f9f52fcfa569151143d576ab (diff)
downloadsamba-22fbda6c5616c89e774ed2550476f47aa9f0506f.tar.gz
samba-22fbda6c5616c89e774ed2550476f47aa9f0506f.tar.bz2
samba-22fbda6c5616c89e774ed2550476f47aa9f0506f.zip
fixed "admin users" option with new security code
(This used to be commit b69c5de6bad9fad3aed1280e7d12fbfed276a16f)
-rw-r--r--source3/smbd/service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 500ba6e626..272d54e3ba 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -389,6 +389,11 @@ connection_struct *make_connection(char *service,char *user,char *password, int
}
}
+ /* admin users always run as uid=0 */
+ if (conn->admin_user) {
+ conn->uid = 0;
+ }
+
#ifdef HAVE_GETGRNAM
/*
* If force group is true, then override