sudoers update

This commit is contained in:
Keith Whyte 2023-03-17 20:15:01 +01:00
parent 868d576631
commit 58c9bfa1b3

View file

@ -16,12 +16,16 @@ Defaults env_keep+=SSH_AUTH_SOCK
# User alias specification # User alias specification
# Cmnd alias specification # Cmnd alias specification
Cmnd_Alias OP_CMDS = /usr/bin/sngrep
Cmnd_Alias DATABASE = /usr/bin/psql, /usr/bin/pg_dump
# User privilege specification # User privilege specification
root ALL=(ALL:ALL) ALL root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command # Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD: ALL %sudo ALL=(ALL:ALL) NOPASSWD: ALL
%operator ALL=(root) NOPASSWD:NOEXEC: OP_CMDS
tic ALL=(postgres) NOPASSWD: DATABASE
# See sudoers(5) for more information on "#include" directives: # See sudoers(5) for more information on "#include" directives: