summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-11-11 01:25:10 -0500
committertylermurphy534 <tylermurphy534@gmail.com>2022-11-11 01:25:10 -0500
commit58208a126858d14e4d4bf4707e298919d234bc22 (patch)
treee3117bfb29af80a4065c1d5856fdd25ddf9b8177 /install.sh
parentadd doc string for elevate_privlages (diff)
downloadcrab-58208a126858d14e4d4bf4707e298919d234bc22.tar.gz
crab-58208a126858d14e4d4bf4707e298919d234bc22.tar.bz2
crab-58208a126858d14e4d4bf4707e298919d234bc22.zip
update config format
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 716d9b1..6c7b019 100755
--- a/install.sh
+++ b/install.sh
@@ -8,10 +8,14 @@ fi
# Copy executable to bin
cp ./target/release/crab /usr/bin/crab
chown root:root /bin/crab
-chmod 6755 /bin/crab
+chmod 4755 /bin/crab
# Set up config files
cp pam /etc/pam.d/crab
+chmod 600 /etc/pam.d/crab
+
mkdir /usr/share/crab
+chmod 600 /usr/share/crab
+
cp conf /usr/share/crab/crab.conf
-chmod 660 /usr/share/crab/crab.conf
+chmod 600 /usr/share/crab/crab.conf