Skip to content
Snippets Groups Projects
Commit 9d97cc55 authored by Thiago Abdo's avatar Thiago Abdo
Browse files

Merge branch 'issue/3497' into 'develop'

Updated makesigphrase.sh to link ecrypt

For hd users it must create the link to .ecryptfs and .Private

See merge request !9
parents dccb39f4 b943efe5
Branches
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