(configure {:keys [instance-id] :as options})Install the sudoers configuration based on settings
Install the sudoers configuration based on settings
(server-spec {:keys [] :as settings} & {:keys [instance-id] :as options})Returns a server-spec that installs sudoers in the configure phase.
Returns a server-spec that installs sudoers in the configure phase.
(sudoer aliases defaults specs {:keys [instance-id] :as options})Add sudo configuration. By default, root and an admin group are already present.
Examples of the arguments are:
aliases { :user { :ADMINS [ "user1" "user2" ] } :host { :TRUSTED [ "host1" ] } :run-as-user { :OP [ "root" "sysop" ] } :cmnd { :KILL [ "kill" ] :SHELLS [ "/usr/bin/sh" "/usr/bin/csh" "/usr/bin/ksh"]}} default-map { :default { :fqdn true } :host { "host" { :lecture false } } :user { "user" { :lecture false } } :run-as-user { "sysop" { :lecture false } } } specs [ { ["user1" "user2"] { :host :TRUSTED :KILL { :run-as-user "operator" :tags :NOPASSWORD } ["/usr/bin/" "/usr/local/bin/"] { :run-as-user "root" :tags [:NOEXEC :NOPASSWORD} }
Add sudo configuration.
By default, root and an admin group are already present.
Examples of the arguments are:
aliases { :user { :ADMINS [ "user1" "user2" ] }
:host { :TRUSTED [ "host1" ] }
:run-as-user { :OP [ "root" "sysop" ] }
:cmnd { :KILL [ "kill" ]
:SHELLS [ "/usr/bin/sh" "/usr/bin/csh" "/usr/bin/ksh"]}}
default-map { :default { :fqdn true }
:host { "host" { :lecture false } }
:user { "user" { :lecture false } }
:run-as-user { "sysop" { :lecture false } } }
specs [ { ["user1" "user2"]
{ :host :TRUSTED
:KILL { :run-as-user "operator" :tags :NOPASSWORD }
["/usr/bin/*" "/usr/local/bin/*"]
{ :run-as-user "root" :tags [:NOEXEC :NOPASSWORD} }(sudoers aliases defaults specs)Sudo configuration. Generates a sudoers file. By default, root and an admin group are already present.
Examples of the arguments are:
aliases { :user { :ADMINS [ "user1" "user2" ] } :host { :TRUSTED [ "host1" ] } :run-as-user { :OP [ "root" "sysop" ] } :cmnd { :KILL [ "kill" ] :SHELLS [ "/usr/bin/sh" "/usr/bin/csh" "/usr/bin/ksh"]}} default-map { :default { :fqdn true } :host { "host" { :lecture false } } :user { "user" { :lecture false } } :run-as-user { "sysop" { :lecture false } } } specs [ { ["user1" "user2"] { :host :TRUSTED :KILL { :run-as-user "operator" :tags :NOPASSWORD } ["/usr/bin/" "/usr/local/bin/"] { :run-as-user "root" :tags [:NOEXEC :NOPASSWORD} }
Sudo configuration. Generates a sudoers file.
By default, root and an admin group are already present.
Examples of the arguments are:
aliases { :user { :ADMINS [ "user1" "user2" ] }
:host { :TRUSTED [ "host1" ] }
:run-as-user { :OP [ "root" "sysop" ] }
:cmnd { :KILL [ "kill" ]
:SHELLS [ "/usr/bin/sh" "/usr/bin/csh" "/usr/bin/ksh"]}}
default-map { :default { :fqdn true }
:host { "host" { :lecture false } }
:user { "user" { :lecture false } }
:run-as-user { "sysop" { :lecture false } } }
specs [ { ["user1" "user2"]
{ :host :TRUSTED
:KILL { :run-as-user "operator" :tags :NOPASSWORD }
["/usr/bin/*" "/usr/local/bin/*"]
{ :run-as-user "root" :tags [:NOEXEC :NOPASSWORD} }cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |