Skip to content
Snippets Groups Projects
Commit b943efe5 authored by Victor Mocelin's avatar Victor Mocelin
Browse files

Updated makesigphrase.sh to link ecrypt

For hd users it must create the link to .ecryptfs and .Private
parent e1fa345d
No related branches found
No related tags found
1 merge request!9Updated makesigphrase.sh to link ecrypt
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment