From a5727563407acb0dc45f9fb30963ce5dd4bf8abd Mon Sep 17 00:00:00 2001 From: tasket Date: Tue, 14 Mar 2017 22:11:29 -0400 Subject: [PATCH] Prevent abort --- rc.local | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.local b/rc.local index ab673c6..7394f1e 100644 --- a/rc.local +++ b/rc.local @@ -5,5 +5,5 @@ ## to prevent privilege escalation attacks ## chfiles="/home/user/.bashrc /home/user/.bash_profile /home/user/.bash_login /home/user/.bash_logout /home/user/.profile" touch $chfiles || true -chown -f root:root $chfiles -chattr -f +i $chfiles +chown -f root:root $chfiles || true +chattr -f +i $chfiles || true