From a91de4982843c8d59ccf503f2f3ddeadc4c8e89f Mon Sep 17 00:00:00 2001 From: David Mandelberg Date: Sun, 26 May 2024 19:07:36 -0400 Subject: [PATCH] Let admins read logs without sudo --- salt/file/users/bootstrap-passwordless-ssh-and-sudo.sh.jinja | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/file/users/bootstrap-passwordless-ssh-and-sudo.sh.jinja b/salt/file/users/bootstrap-passwordless-ssh-and-sudo.sh.jinja index e598032..3a41c13 100644 --- a/salt/file/users/bootstrap-passwordless-ssh-and-sudo.sh.jinja +++ b/salt/file/users/bootstrap-passwordless-ssh-and-sudo.sh.jinja @@ -32,6 +32,7 @@ try adduser --add_extra_groups --disabled-password --gecos '' {{ user }} {% if user_config.get('admin', false) %} try adduser {{ user }} sudo +try adduser {{ user }} adm {% endif %} {% if 'authorized_keys' in user_config.get('ssh', {}) %}