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: jferraro@athenscounty.lib.oh.us ReportedBy: dalgity@htl.net QAContact: koha-bugs@nongnu.org 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.