Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Apr 2005 20:14:40 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Karl Agee <kdagee2@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: su: illegal option -- s
Message-ID:  <20050403021439.GG83737@dan.emsphone.com>
In-Reply-To: <20050403015222.80157.qmail@web31514.mail.mud.yahoo.com>
References:  <20050403015222.80157.qmail@web31514.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050403021439.GG83737>