su: illegal option -- s

2005-04-02 Thread Karl Agee
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
supportedhow 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: su: illegal option -- s

2005-04-02 Thread Dan Nelson
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 supportedhow
 can I edit this so this function works??

That's really weird su syntax there.  Try 

su - $RunasUser -c $KohaZ3950Shell

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: su: illegal option -- s

2005-04-02 Thread Karl Agee
Dan:  Thanks, this seems to have worked.

--karl

--- Dan Nelson [EMAIL PROTECTED] 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
 supportedhow
  can I edit this so this function works??
 
 That's really weird su syntax there.  Try 
 
 su - $RunasUser -c $KohaZ3950Shell
 
 -- 
   Dan Nelson
   [EMAIL PROTECTED]
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]