Name

SocketPerms — specify Unix socket permissions

SYNOPSIS

mode

DESCRIPTION

Specify permissions (mode) for the Interchange UNIX-domain socket file.

Prepend a starting 0 to indicate an octal value. The directive can be overridden from the command line using interchange -r SocketPerms=value.

The default value is 0600, which allows only programs running under your Interchange server UID to access the socket.

Another possible value is 0666. This is a bit insecure setting, as it allows anyone on the system to access the socket. It may come handy, however, if programs such as Apache need to access the socket via mod_perl or our Interchange::Link module.

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive

EXAMPLES

Example: Setting SocketPerms

SocketPerms 0666

NOTES

You might want to try the discussed mode, 0666, when your Interchange installation isn't working and you quickly want to find out whether it's just socket file permissions problem or something deeper.

AVAILABILITY

SocketPerms is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 444

['SocketPerms',      'integer',          0600],

Source: lib/Vend/Config.pm
Line 3973 (context shows lines 3973-3980)

sub parse_integer {
my($var, $value) = @_;
$value = hex($value) if $value =~ /^0x[\dA-Fa-f]+$/;
$value = oct($value) if $value =~ /^0[0-7]+$/;
config_error("The $var directive (now set to '$value') must be an integer\n")
  unless $value =~ /^\d+$/;
$value;
}

AUTHORS

Interchange Development Group

SEE ALSO

Unix_Mode(7ic), SocketFile(7ic)

DocBook! Interchange!