Name

SetGroup — specify primary Unix group to switch to, after catalog to invoke is determined

SYNOPSIS

group_name

DESCRIPTION

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.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Defining SetGroup

SetGroup catuser1

NOTES

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.

AVAILABILITY

SetGroup is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 634

['SetGroup',     'valid_group',      ''],

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;
}

AUTHORS

Interchange Development Group

SEE ALSO

WritePermission(7ic), ReadPermission(7ic)

DocBook! Interchange!