From 827e7ec01ad13178c519676ec5462b5a03b2a6a1 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 5 Jun 2025 11:46:07 +0300 Subject: [PATCH] cronish: ensure root home executability for symlinks pointing there if other permissions allow --- etc/systemd/system/aminda-nocron-reboot.service | 1 + var/spool/cron/root | 3 +++ 2 files changed, 4 insertions(+) diff --git a/etc/systemd/system/aminda-nocron-reboot.service b/etc/systemd/system/aminda-nocron-reboot.service index a1fefbce..ea6ce731 100644 --- a/etc/systemd/system/aminda-nocron-reboot.service +++ b/etc/systemd/system/aminda-nocron-reboot.service @@ -10,6 +10,7 @@ Environment=LINUXBREWGROUP=wheel # Remember `systemd-path search-binaries-default` ExecStartPre=-echo 1 > /sys/devices/system/cpu/microcode/reload # - means it can fail, without failing those after it. +ExecStartPre=-chmod a+x /root /var/roothome # These aren't given --now as THEY WOULD INFINITE LOOP. ExecStartPre=-systemctl enable aminda-nocron-rebootish.service ExecStartPre=-systemctl enable aminda-nocron-rebootish.timer diff --git a/var/spool/cron/root b/var/spool/cron/root index 91ed9c04..c9e87b8a 100644 --- a/var/spool/cron/root +++ b/var/spool/cron/root @@ -1,3 +1,6 @@ +# symlinks to root home +@reboot /usr/bin/chmod a+x /root /var/roothome >/dev/null 2>&1 + # Workaround it appearing to break SSH especially on family PC @reboot /bin/bash -c "/bin/nordvpn set killswitch off;/usr/bin/systemctl disable --now nordvpnd.{service.socket} --quiet"