From 22fbda6c5616c89e774ed2550476f47aa9f0506f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 31 Aug 2000 07:11:45 +0000 Subject: fixed "admin users" option with new security code (This used to be commit b69c5de6bad9fad3aed1280e7d12fbfed276a16f) --- source3/smbd/service.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') 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 -- cgit