Results 1 to 5 of 5

Thread: WowzaStreamingEngineManager as a non root user

  1. #1
    Join Date
    Apr 2013
    Posts
    5

    Default WowzaStreamingEngineManager as a non root user

    Hi all,

    Is it possible to run the WowzaStreamingEngineManager service as a non root user?

    I have tried editing /etc/init.d/WowzaStreamingEngineManager and placing sudo -u user in front of $WMSMGRDAEMON_CMD in the start section.

    These errors appeared in the log when attempting to start and the service start command did not return:
    /usr/local/WowzaStreamingEngine/manager/bin/startmgr.sh: line 17: ulimit: open files: cannot modify limit: Operation not permitted
    /usr/local/WowzaStreamingEngine/manager/bin/startmgr.sh: line 54: /var/run/WowzaStreamingEngineManager.pid: Permission denied

    I guess more modifications could be made to resolve these two issues. Are there instructions available for running WowzaStreamingEngineManager as a non root user?

    Thanks!

  2. #2

    Default

    Take a look at this guide:
    How to run Wowza Media Server as non-root user on port 80

    Salvadore

  3. #3
    Join Date
    Apr 2013
    Posts
    5

    Default

    Hi Salvadore, this shows how to run Wowza Media Server as a non root user. I am after instructions to run the Wowza Streaming Engine Manager as a non root user.

    Thanks!

  4. #4

    Default

    Hi Dennis

    For the Streaming Engine Manager to run as a non-root user you could look at modifying the startmgr.sh script in /usr/local/WowzaStreamingEngine/manager/bin (default location). The following is a quick test I carried out which started up the Manager as a non-root user.

    Please note that this is not a supported or documented solution. I will however feed this into our backlog queue, but we can't give any commitment for when a request will be implemented and supported.

    Find the block of code like this:

     if [ "$WMSMGRCOMMAND" = "start" ]; then
               $RUNCMD $CMD $BACKGRND &
            else
               $CMD
            fi
    Modify the line beginning $RUNCMD to the following:
     if [ "$WMSMGRCOMMAND" = "start" ]; then
                sudo -u $USER-g $GROUP $CMD $BACKGRND &
            else
               $CMD
            fi
    You will of course need to replace the $USER and $GROUP variables with your non-root user/group. You will also need to ensure that this user has permission to access the files within [install-dir]/manager/ and that the various lock and pid files are writable, but the basics are there to get something quickly up and running.

    Regards

    Paul

  5. #5

    Default

    Please note that we now have an updated article covering how to run Wowza as a named user.
    .

Similar Threads

  1. Storing recordings as different user, not root
    By berriebloem in forum Live Streaming and Encoder Discussion
    Replies: 5
    Last Post: 04-01-2013, 04:46 AM
  2. Why Wowza must be installed under root user?
    By isilin in forum Tutorials Discussion
    Replies: 5
    Last Post: 12-19-2011, 06:57 AM

Posting Permissions

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