[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-bugs] [Bug 1141] New: invalid su syntax for BSDs
From: |
bugzilla-daemon |
Subject: |
[Koha-bugs] [Bug 1141] New: invalid su syntax for BSDs |
Date: |
7 Aug 2006 02:21:36 -0000 |
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=1141
Summary: invalid su syntax for BSDs
Product: Koha
Version: 2.2.5
Platform: PC
OS/Version: OpenBSD
Status: NEW
Severity: normal
Priority: P2
Component: z39.50 Server
AssignedTo: address@hidden
ReportedBy: address@hidden
QAContact: address@hidden
Koha 2.2.5 on OpenBSD 3.9
The syntax for the su command in
/koha/intranet/scripts/z3950daemon/z3950-daemon-launch.sh is invalid for
OpenBSD and FreeBSD and quite likely NetBSD.
For OpenBSD (FreeBSD and NetBSD are similar)
su [-fKLlm] [-a auth-type] [-c login-class] [login [shell arguments]]
also the '-' switch has been deprecated in favour of -l
so instead of
su -c $KohaZ3950Shell - $RunAsUser &
I'd recommend the following
su -l $RunAsUser -c $KohaZ3950Shell &
The -c is actually an argument to the shell in this case; it means take a
command from argument instead of stdin. It should work with sh, csh, tcsh, ksh,
and bash. I think it'll still work on Linux in that form but I havn't tested.
Tested on OpenBSD 3.9 with ksh.
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-bugs] [Bug 1141] New: invalid su syntax for BSDs,
bugzilla-daemon <=