Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Running Monyog As An Unprivileged User

forums forums Monyog Monyog Deployment Running Monyog As An Unprivileged User

  • This topic is empty.
Viewing 0 reply threads
  • Author
    Posts
    • #11664

      By default MONyog runs as root on Linux. This can easily be changed so it runs as an unprivileged user.

      First add a new user and group replace with the group id and replace ,

      # groupadd monyog

      # useradd -g -p monyog

      Copy the original files to the new location and change the file ownership.

      # cp -r /usr/local/MONyog /home/monyog

      # chown -R monyog:monyog /home/monyog

      Before we change the init script make a backup.

      # cp /etc/init.d/MONyogd /etc/init.d/MONyogd.orig

      # vi /etc/init.d/MONyogd

      Change the following lines for the new path.

      PREFIX=”/home/monyog”

      MONYOGBIN=”$PREFIX/bin/MONyog”

      Also you need to update the start command to the following.

      # Start MONyog.

      else

      action “`su – monyog -c “$MONYOGBIN -s”`” /bin/true

      fi

      Now you need to alter the configuration file.

      # vi /home/monyog/MONyog.ini

      Change the data path to the new directory.

      Data_path=/home/monyog/data

      After this you should be able to start MONyog running as an unprivileged user.

      # service MONyog start

      Regards

      Michael Persson

Viewing 0 reply threads
  • You must be logged in to reply to this topic.