aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xprepare-vpn-usb.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/prepare-vpn-usb.sh b/prepare-vpn-usb.sh
index 5d8815a..0c3653b 100755
--- a/prepare-vpn-usb.sh
+++ b/prepare-vpn-usb.sh
@@ -36,6 +36,7 @@ if [ ! -e /tmp/vpn-ramdisk/key-pass.txt ]; then
read -s -r -p "Key password: " keypassword
echo
touch /tmp/vpn-ramdisk/key-pass.txt
+ chown root:root /tmp/vpn-ramdisk/key-pass.txt
chmod 0600 /tmp/vpn-ramdisk/key-pass.txt
cat <<< "$keypassword" > /tmp/vpn-ramdisk/key-pass.txt
fi
@@ -45,6 +46,7 @@ if [ ! -e /tmp/vpn-ramdisk/userpassword.txt ]; then
read -s -r -p "Password: " upassword
echo
touch /tmp/vpn-ramdisk/userpassword.txt
+ chown root:root /tmp/vpn-ramdisk/userpassword.txt
chmod 0600 /tmp/vpn-ramdisk/userpassword.txt
cat <<< "$username" > /tmp/vpn-ramdisk/userpassword.txt
cat <<< "$upassword" >> /tmp/vpn-ramdisk/userpassword.txt

Code dump for some of my projects as well as a mirror for other random or interesting projects. You can find my site at jimmy.axenhus.com