SetGroup — specify primary Unix group to switch to, after catalog to invoke is determined
By default, the Interchange server and the individual catalogs it serves run under the same Unix user ID and user group (UID and GID).
This directive allows you to switch group at the catalog level.
To be able to switch group with SetGroup
, the Interchange user must
be a member of the target group.
On Linux, the number of secondary groups per user is 32, which means
you can serve a maximum of 31 catalogs using SetGroup
.
Interchange 5.9.0:
Source: lib/Vend/Config.pm
Line 4042 (context shows lines 4042-4055)
sub parse_valid_group { my($var, $value) = @_; return '' unless $value; my($name,$passwd,$gid,$members) = getgrnam($value); config_error("$var: Group name '$value' is not a valid group\n") unless defined $gid; $name = getpwuid($<); config_error("$var: Interchange user '$name' not in group '$value'\n") unless $members =~ /\b$name\b/; $gid; }