2

I need to mount a Truecrypt volume automatically at user login time. This volume is specific for each user.

I'm not sure how to proceed since I'm not extremely familiar with Linux and the various startup scripts involved.

All Truecrypt volumes are located on my network. I already have the relevant /etc/fstab entry to mount the network drive properly.

I'm using Ubuntu 12.04 LTS (in GNOME classic session mode, if this matters, I did hear it does). Truecrypt needs root privileges when mounting a volume. My users have no root privilege, that's an additional difficulty I have.

Thank you.

Karan
  • 57,289

2 Answers2

1

This would defeat the purpose of Truecrypt unless you are using whole disk encryption. If you do it this way, all the user would have to do is crack the account's password to gain access to the encrypted files. That being said, hopefully the other answer will answer your question.

cutrightjm
  • 4,424
0

You can add

truecrypt /home/user/myEncryptedFile.tc /home/user/myEncryptedFileFolder <<EOF
password
EOF

to the file .profile in the user's home-directory.
Anything in .profile while be executed everytime the user logs in.

Source: https://wiki.archlinux.org/index.php/TrueCrypt#Automatic_mount_on_login

n.st
  • 2,008