Run hypnotoad with specific user privileges (or group privileges)

To run the application hypnotoad with specific user privileges, set the user in the configuration file. To run hypnotoad with specific group privileges, set group in the configuration file.

{
  user => kimoto,
  group => admin
}

In reality, the parent process runs with the privileges of the user who executed it, but the spawned child process now runs with the privileges of the user. The actual processing of the application is done by the child process, so it is safe.

You may want to run it from the root user when managing your application. In such a case, you can set user and group in the configuration file, and it can be executed with that user authority, so it is safe.


Go to Mojolicious Reference

Associated Information