[Koha] Problems with Z39.50 - unix file permissions?
C David Rigby
cr8s at virginia.edu
Sun Nov 3 02:27:06 NZDT 2002
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 at 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 at iclibrary z3950daemon]# ./z3950-daemon-launch.sh
[root at iclibrary z3950daemon]# -sh:
/usr/local/koha-1.2.2/scripts/z3950daemon/z3950-daemon-shell.sh: Permission
denied
CDRigby
cr8s at virginia.edu
More information about the Koha
mailing list