From 02ffad627dc28d0c434230eed5aeb2cf49cab552 Mon Sep 17 00:00:00 2001 From: akanealw Date: Fri, 20 Oct 2023 10:36:36 -0500 Subject: [PATCH] testing locking root --- debian/debian-essentials.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/debian-essentials.sh b/debian/debian-essentials.sh index 12d9eb3..4447403 100755 --- a/debian/debian-essentials.sh +++ b/debian/debian-essentials.sh @@ -250,3 +250,11 @@ if [[ -f /opt/cronicle/conf/config.json ]] /opt/cronicle/bin/control.sh start echo "Cronicle worker installed." fi + +# lock root +if [[ -d /home/akanealw ]] + then + sudo passwd -l root + else + echo "akanealw account not found, not locking root." +fi