From f36e11177342206419f22e46d7e121f0731cce9a Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Wed, 9 Nov 2022 00:51:47 -0500 Subject: fix session pid, add uninstall sh file --- uninstall.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 uninstall.sh (limited to 'uninstall.sh') diff --git a/uninstall.sh b/uninstall.sh new file mode 100644 index 0000000..f6cba7f --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [[ $(/usr/bin/id -u) -ne 0 ]]; then + echo "Please run this as root" + exit +fi + +# Delete crab files +rm /usr/bin/crab +chown root:root /bin/crab +chmod 6755 /bin/crab + +# Set up config files +cp pam /etc/pam.d/crab +cp -n conf /etc/crab.conf +chmod 660 /etc/crab.conf -- cgit v1.2.3-freya