Problems with Z39.50 - unix file permissions?
Dear (more knowledgeable than me) Ladies and Gentlemen, We have recently begun implementation of Koha 1.2.2 on a PC running RedHat 7.2 for the International Center at the University of Virginia. The server is iclibrary.lib.virginia.edu with the intranet interface being at iclibrary.lib.virginia.edu:8080. I have been unable to get the Z39.50 module to function. Any insight that you could offer on this would be greatly appreciated! Here is a description of the problem: I have downloaded and installed the latest Yaz rpm for the i386 architecture. When I attempt to run /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. Thanks C David Rigby cr8s@virginia.edu
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
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 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
participants (2)
-
C David Rigby -
Tonnesen Steve