Professional Web Applications Themes

su: illegal option -- s - FreeBSD

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 supported....how can I edit this so this function ...

  1. #1

    Default su: illegal option -- s

    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
    supported....how 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./emoticontest
    Karl Guest

  2. #2

    Default Re: su: illegal option -- s

    In the last episode (Apr 02), Karl Agee said: 

    That's really weird su syntax there. Try

    su - $RunasUser -c $KohaZ3950Shell

    --
    Dan Nelson
    com
    Dan Guest

  3. #3

    Default Re: su: illegal option -- s

    Dan: Thanks, this seems to have worked.

    --karl

    --- Dan Nelson <com> wrote: 
    > daemon 
    > /usr/local/etc/rc.d: 
    >[/ref]
    /usr/local/koha/intranet/scripts/z3950daemon/z3950-daemon-launch.sh 
    > supported....how 
    >
    > That's really weird su syntax there. Try
    >
    > su - $RunasUser -c $KohaZ3950Shell
    >
    > --
    > Dan Nelson
    > com
    >[/ref]

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

Similar Threads

  1. Replies: 0
    Last Post: June 16th, 02:04 PM
  2. Illegal Name
    By cold admin in forum Coldfusion Server Administration
    Replies: 0
    Last Post: February 23rd, 03:30 PM
  3. MS says pirating is illegal, but are their PA rules illegal?
    By PCyr in forum Windows Setup, Administration & Security
    Replies: 17
    Last Post: August 7th, 03:45 AM
  4. Replies: 19
    Last Post: August 7th, 03:45 AM
  5. illegal
    By jonah in forum Windows Setup, Administration & Security
    Replies: 2
    Last Post: July 9th, 02:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139