[Koha] Problems with Z39.50 - unix file permissions?
Tonnesen Steve
tonnesen at cmsd.bc.ca
Sat Nov 2 11:18:58 NZDT 2002
On Fri, 1 Nov 2002, C David Rigby wrote:
> /usr/local/koha-1.2.2/scripts/z3950daemon/z3950-daemon-launch.sh
>
> as root, I get the message:
>
> -sh: /usr/local/koha-1.2.2/scripts/z3950daemon/z3950-daemon-shell.sh:
> Permission denied
>
> I have, through commenting out various lines, determine that it is this line
> in z3950-deamon-launch.sh, near the end, where the problem occurs:
>
> su -s /bin/sh -c $KohaZ3950Shell - $RunAsUser &
>
> Why, I cannot determine. RunAsUser=apache is set earlier in the script,
> and using the line
>
> echo $KohaZ3950Shell $RunAsUser
>
> in place of the above su command returns
>
> /usr/local/koha-1.2.2/scripts/z3950daemon/z3950-daemon-shell.sh apache
>
> as one might expect. The user apache is defined in /etc/passwd.
Check that the file z3950-daemon-shell.sh is readable and executable by
the apache user.
ls -l z3950-daemon-shell.sh should show:
-rwxr-x--- 1 root apache 1740 Oct 29 z3950-daemon-shell.sh
likewise, processz3950queue should show:
-rwxr-x--- 1 root apache 7849 Oct 29 processz3950queue
If the group isn't set to apache, or group doesn't have r-x permissions,
run:
chown root.apache z3950-daemon-shell.sh processz3950queue
and
chmod 0750 z3950-daemon-shell.sh processz3950queue
Steve Tonnesen
More information about the Koha
mailing list