Change permissions when the console owner changes

This commit is contained in:
Frank Denis
2012-07-30 13:04:15 -07:00
parent 72d6ec858e
commit cecddb7388
+10
View File
@@ -0,0 +1,10 @@
#! /bin/sh
. ./common.inc
eval $(stat -s /dev/console) || exit 1
mkdir -p "$DNSCRYPT_BASE_DIR" || exit 1
chown -R 0:0 "$DNSCRYPT_BASE_DIR"
chown -R "${st_uid}:0" "$CONTROL_DIR"
find "$DNSCRYPT_BASE_DIR" -type d -exec chmod 755 {} \;