From owner-freebsd-questions@FreeBSD.ORG Sun Apr 3 03:39:34 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 0FC5016A4CE for ; Sun, 3 Apr 2005 03:39:34 +0000 (GMT) Received: from web31509.mail.mud.yahoo.com (web31509.mail.mud.yahoo.com [68.142.198.138]) by mx1.FreeBSD.org (Postfix) with SMTP id 9FB3343D39 for ; Sun, 3 Apr 2005 03:39:33 +0000 (GMT) (envelope-from kdagee2@yahoo.com) Received: (qmail 37592 invoked by uid 60001); 3 Apr 2005 03:39:33 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=TtuUJqqrMvtHjZjduipLqb/qgXwcQOdFRwVsTwUpPRMtHXqbh5HMQQCr0aLmcue+gZSqzaxUt7YD+wZFtpqXPuXwFx7a5nim9pmVkjfS0QzeMMFPW/SsghFUJup9IwMpYwJdJps2TbMOBD6l+i+xWc2iwfBasSaHl1Zg2XLGCC0= ; Message-ID: <20050403033933.37590.qmail@web31509.mail.mud.yahoo.com> Received: from [68.186.70.48] by web31509.mail.mud.yahoo.com via HTTP; Sat, 02 Apr 2005 19:39:33 PST Date: Sat, 2 Apr 2005 19:39:33 -0800 (PST) From: Karl Agee To: Dan Nelson In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 03:39:34 -0000 Dan: Thanks, this seems to have worked. --karl --- Dan Nelson wrote: > 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 > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com