git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d23607
)
fixed "admin users" option with new security code
author
Andrew Tridgell
<tridge@samba.org>
Thu, 31 Aug 2000 07:11:45 +0000
(07:11 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 31 Aug 2000 07:11:45 +0000
(07:11 +0000)
source/smbd/service.c
patch
|
blob
|
history
diff --git
a/source/smbd/service.c
b/source/smbd/service.c
index 500ba6e62693394fcace5b332987bf6cf1acb4c3..272d54e3baadba54965aca1d7abc61fcb715482e 100644
(file)
--- a/
source/smbd/service.c
+++ b/
source/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