From owner-freebsd-questions@FreeBSD.ORG Sun Apr 3 01:52:23 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F5D616A4CE for ; Sun, 3 Apr 2005 01:52:23 +0000 (GMT) Received: from web31514.mail.mud.yahoo.com (web31514.mail.mud.yahoo.com [68.142.198.143]) by mx1.FreeBSD.org (Postfix) with SMTP id 377CD43D3F for ; Sun, 3 Apr 2005 01:52:23 +0000 (GMT) (envelope-from kdagee2@yahoo.com) Received: (qmail 80159 invoked by uid 60001); 3 Apr 2005 01:52:22 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=bHgLfjsBX2gbq/1bc5eflk9KAp6oDkCpdt3kErtZIMb5hLif26Nq/sFWnXqYLgW2m4Y2GZzcCSSzXoT6NFS4fozAKZyRGDHOuPjOoJ7t4gzzsvxXBw6uBj3ytlRly6YSFKqIKfGOeKaJ2fYXWtgt9iCE4sQ5bzuGRf7w/bcMYWQ= ; Message-ID: <20050403015222.80157.qmail@web31514.mail.mud.yahoo.com> Received: from [68.186.70.48] by web31514.mail.mud.yahoo.com via HTTP; Sat, 02 Apr 2005 17:52:22 PST Date: Sat, 2 Apr 2005 17:52:22 -0800 (PST) From: Karl Agee To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: su: illegal option -- s X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 01:52:23 -0000 FreeBSD 4.11-Stable, bash 2.05. I am getting an error when I try to launch a daemon script manually as root, or in /usr/local/etc/rc.d: -su-2.05b# /usr/local/koha/intranet/scripts/z3950daemon/z3950-daemon-launch.sh -su-2.05b# su: illegal option -- s usage: su [-] [-flm] [-c class] [login [args]] the perms on it are: -su-2.05b# ls -la /usr/local/koha/intranet/scripts/z3950daemon/z3950-daemon-launch.sh -rwxr-xr-x 1 www www 2750 Mar 29 19:57 /usr/local/koha/intranet/scripts/z3950daemon/z3950-daemon-launch.sh it is related to a web based application. The line in the script that calls this is: su -s /bin/sh -c $KohaZ3950Shell - $RunAsUser & The su man page indicates that the -s option isnt supported....how can I edit this so this function works?? --karl __________________________________ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest