From owner-freebsd-questions@FreeBSD.ORG Sun Apr 3 02:14:44 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 1290116A4CE for ; Sun, 3 Apr 2005 02:14:44 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7521B43D2D for ; Sun, 3 Apr 2005 02:14:43 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j332EeSN064676; Sat, 2 Apr 2005 20:14:40 -0600 (CST) (envelope-from dan) Date: Sat, 2 Apr 2005 20:14:40 -0600 From: Dan Nelson To: Karl Agee Message-ID: <20050403021439.GG83737@dan.emsphone.com> References: <20050403015222.80157.qmail@web31514.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050403015222.80157.qmail@web31514.mail.mud.yahoo.com> X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-questions@freebsd.org Subject: Re: 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 02:14:44 -0000 In the last episode (Apr 02), Karl Agee said: > 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 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?? That's really weird su syntax there. Try su - $RunasUser -c $KohaZ3950Shell -- Dan Nelson dnelson@allantgroup.com