pallet.crate.sudoers documentation

sudoers

fn

[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} }