Re: [Koha] Problems with Z39.50 - unix file permissions?
On Saturday 02 November 2002 02:39 pm, you wrote:
On Sat, 2002-11-02 at 05:27, C David Rigby wrote:
On Friday 01 November 2002 05:18 pm, Tonnesen Steve wrote:
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
Steve, Thanks, I did this, but I am still having problems. An ls -l of the scripts directory gives:
[root@iclibrary z3950daemon]# ls -l total 32 -rwxr-x--- 1 root apache 7693 Oct 30 14:43 processz3950queue -rwxr-x--- 1 root apache 7694 Oct 30 14:42 processz3950queue.bup -rwxr-x--- 1 root apache 1183 Oct 30 15:55 z3950-daemon-launch.sh -rwxr-x--- 1 root apache 1194 Oct 30 14:24 z3950-daemon-launch.sh.bup -rwxr-x--- 1 root apache 1321 Oct 30 15:52 z3950-daemon-shell.sh -rwxr-x--- 1 root apache 1321 Oct 30 14:29 z3950-daemon-shell.sh.bup
I would also try the parent directories:
If you don't have permission to use one of the parent directories it will give you the same error.
Dear Michael, That was the trick! processz3950queue is running gine. Thanks for your assitance. CDRigby
But the execution of the z3950-daemon-launch.sh still gives this message:
[root@iclibrary z3950daemon]# ./z3950-daemon-launch.sh [root@iclibrary z3950daemon]# -sh: /usr/local/koha-1.2.2/scripts/z3950daemon/z3950-daemon-shell.sh: Permission denied
CDRigby cr8s@virginia.edu _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (1)
-
C David Rigby