diff options
Diffstat (limited to 'source3/web/cgi.c')
-rw-r--r-- | source3/web/cgi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 212c2884b6..8e739cd224 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -342,6 +342,9 @@ static BOOL cgi_handle_authorization(char *line) * Password was ok. */ + if ( initgroups(pass->pw_name, pass->pw_gid) != 0 ) + goto err; + become_user_permanently(pass->pw_uid, pass->pw_gid); /* Save the users name */ |