Skip to content
Snippets Groups Projects

Updated makesigphrase.sh to link ecrypt

Merged Thiago Abdo requested to merge issue/3497 into develop
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -2,6 +2,7 @@
@@ -2,6 +2,7 @@
username=$1
username=$1
password=$2
password=$2
path=$3
path=$3
 
device=$4
user_home="$path/$username"
user_home="$path/$username"
ecryptfs_path="$path/.ecryptfs"
ecryptfs_path="$path/.ecryptfs"
@@ -37,4 +38,10 @@ chmod 600 "$user_ecrypt_path/.ecryptfs/wrapped-passphrase"
@@ -37,4 +38,10 @@ chmod 600 "$user_ecrypt_path/.ecryptfs/wrapped-passphrase"
chmod 644 "$user_ecrypt_path/.ecryptfs/auto-mount"
chmod 644 "$user_ecrypt_path/.ecryptfs/auto-mount"
chmod 644 "$user_ecrypt_path/.ecryptfs/auto-umount"
chmod 644 "$user_ecrypt_path/.ecryptfs/auto-umount"
 
if [ $device == "hd" ]; then
 
chown -R $username:$username $user_ecrypt_path
 
ln -s "$user_ecrypt_path/.ecryptfs/" "/home/$username/"
 
ln -s "$user_ecrypt_path/.Private/" "/home/$username/"
 
ln -s "/opt/ecryptfs/README.txt" "/home/$username/README.txt"
 
fi
keyctl clear @u
keyctl clear @u
Loading