2022-11-09 00:35:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
|
|
|
echo "Please run this as root"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Copy executable to bin
|
|
|
|
cp ./target/release/crab /bin/crab
|
|
|
|
chown root:root /bin/crab
|
|
|
|
chmod 6755 /bin/crab
|
|
|
|
|
|
|
|
# Set up config files
|
|
|
|
cp pam /etc/pam.d/crab
|
2022-11-09 03:07:02 +00:00
|
|
|
cp -n conf /etc/crab.conf
|
|
|
|
chmod 660 /etc/crab.conf
|