From b0536c51667508f4835dea36ba050be73339fca8 Mon Sep 17 00:00:00 2001 From: spektr Date: Fri, 27 Nov 2026 07:10:34 +0100 Subject: [PATCH] CT 114: Audit nutzt ltc-readonly statt sudo -u litecoin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Die sudoers-Regel ist (root)-beschränkt: 'sudo -u litecoin' braucht ein Passwort. Der Wrapper ltc-readonly läuft als root via NOPASSWD und macht intern runuser -u litecoin — Audit testet jetzt genau diesen Pfad. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .../ansible/playbooks/audit-production.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/playbooks/audit-production.yml b/proxmox/lxc/ct-114-litecoin-wallet/ansible/playbooks/audit-production.yml index 3a3d400..1e4aa6f 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/ansible/playbooks/audit-production.yml +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/playbooks/audit-production.yml @@ -134,10 +134,10 @@ that: - litecoin_audit_tor_config.rc == 0 - - name: Read the litecoind network state via the read-only wrapper path + - name: Read the litecoind network state via the read-only wrapper become: false ansible.builtin.command: - argv: [/usr/bin/sudo, -n, -u, litecoin, /opt/litecoin/bin/litecoin-cli, -conf=/etc/litecoin/litecoin.conf, getnetworkinfo] + argv: [/usr/bin/sudo, -n, /usr/local/bin/ltc-readonly, getnetworkinfo] check_mode: false changed_when: false register: litecoin_audit_networkinfo