Bug 131856

Summary: sysutils/virtualmin adds new users to www group - overwhelms apache
Product: Ports & Packages Reporter: Sean M. Collins <contact>
Component: Individual Port(s)Assignee: freebsd-apache (Nobody) <apache>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Sean M. Collins 2009-02-18 21:40:01 UTC
When creating new virtual servers in Virtualmin, new users are added to the www group. When too many are added, Apache will have trouble starting up - complaining about not being able to set the group and user IDs.

Tue Feb 17 07:50:53 2009] [alert] (22)Invalid argument: initgroups: unable to set groups for User www and Group 80
[Tue Feb 17 07:50:53 2009] [alert] (22)Invalid argument: initgroups: unable to set groups for User www and Group 80
[Tue Feb 17 07:50:53 2009] [alert] (22)Invalid argument: initgroups: unable to set groups for User www and Group 80
[Tue Feb 17 07:50:54 2009] [alert] Child 10883 returned a Fatal error... Apache is exiting!

Fix: 

Change the following defaults for virtualmin:

DO NOT add the new users to the www group
Create public_html directories with ownership mode 755

Remove previous accounts that were created from the www group in the /etc/group file.

I can create a diff of the settings file for virtualmin if required.
How-To-Repeat: Install Virtualmin, create new domains with user accounts. The problem appears after you create 10 or so
Comment 1 Philip M. Gollucci freebsd_committer freebsd_triage 2009-04-21 02:41:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->apache

to apache
Comment 2 Philip M. Gollucci 2009-04-22 05:39:07 UTC
This isn't actually an apache problem.

See the NGROUPS #define kernel compiles. Be careful chaning that with
NFS.  P.S. The number is 15.
Comment 3 Philip M. Gollucci freebsd_committer freebsd_triage 2009-04-22 05:39:24 UTC
State Changed
From-To: open->closed

closed