From 2f652e23b37f8ab6bbc31e0dc0349dbb99904992 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Thu, 20 Nov 2025 16:36:13 -0700 Subject: [PATCH] Install root@core's public key in /etc/root-pub.pem. Thus anyone can send encrypted email to root with the --recipient-file option to gpg. This might have simplified the hacked passwd command if it did not have to run as sysadm anyway, for /etc/shadow access. --- README.org | 8 ++++---- roles_t/core/handlers/main.yml | 2 +- roles_t/core/tasks/main.yml | 4 ++-- roles_t/core/templates/passwd | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index 49b2044..6993612 100644 --- a/README.org +++ b/README.org @@ -6383,7 +6383,7 @@ close $TMP; my $O = new IO::File; open $O, ("| gpg --encrypt --armor" - ." --trust-model always --recipient root\@core" + ." --recipient-file /etc/root-pub.pem" ." > $tmp") or die "Error running gpg > $tmp: $!\n"; print $O < $tmp") or die "Error running gpg > $tmp: $!\n"; print $O <