I'm using encfs to encrypt my dropbox contents and for that reason I'd like to have encfs mounted when users log in rather than at system startup. However, I can't make this work. I've tried:
- Adding the mount command to .login/.profile. This doesn't work, because these scripts are executed when a shell starts up, not when the user logs in normally.
- Adding a LoginHook to com.apple.loginwindow. This doesn't do anything except slow down my login process. There is nothing in the system log files, so I'm not sure how to debug this.
- I took a look at /etc/fstab, but on Mountain Lion that file is empty, except for the warning that this file has no effect whatsoever, so adding anything to it won't help.
For those not familiar with encfs, but familiar with getting stuff done on OSX, essentially what I have to run to mount the encrypted filesystem is this command:
echo password | encfs -S encrypted_dir mount_point
Any help at all appreciated.