diff options
-rw-r--r-- | source3/smbd/service.c | 5 |
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 |