su: illegal option -- s

Karl Agee kdagee2 at yahoo.com
Sat Apr 2 19:39:34 PST 2005


Dan:  Thanks, this seems to have worked.

--karl

--- Dan Nelson <dnelson at allantgroup.com> 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 at allantgroup.com
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-questions mailing list