>Number: 682 >Category: suexec >Synopsis: suexec does not work for Virtual Hosts >Confidential: no >Severity: critical >Priority: medium >Responsible: apache (Apache HTTP Project) >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Jun 5 12:50:01 1997 >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.2b11 >Environment: Linux 2.0.27 Apache 1.2.b11 Frontpage Extensions and WPP >Description: Apache would not work for us for Virtual Hosts. What it was doing is it was passing per user webs to suexec as ~username, yet for Virtual Hosts it would pass the name as username without the ~. suexec only recognized the username as a directory not off of root of it had a ~ on it and would look in the proper /home/.../public_html directory. >How-To-Repeat: Create a virtual host and a per user web. >Fix: Yes, go to util_script.c line #603 change it from:
execuser = pstrdup(r->pool, pw->pw_name); to: execuser = pstrcat(r->pool, "~", pw->pw_name, NULL); This changes apache to pass the ~username value to suexec. I've tested this out, and apparently this has not affected our root or per user webs, and virtual hosts now work >Audit-Trail: >Unformatted:
