Executus

TODO: Add description

Installation

If available in Hex, the package can be installed by adding executus to your list of dependencies in mix.exs:

def deps do
  [
    {:executus, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/executus.

Running as root

Executus can be configure to run root commands using sudo by adding a configuration for Erlexec to the config.exs file.

use Mix.Config

config :erlexec,
  root: :root,
  limit_users: {:limit_users, ['some_list_of_users_who_can_run_commands']},
  user: {:user, 'the_user_that_runs_sudo_commands'}