Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I mount my encrypted .Private data, I can access (rw) my data fine. After a while the mount seems to be unmounted automatically. Is there a default timeout? If so, how can I change it? The timeout appears to be fairly short (order of a few minutes) and seems to occur when I try to access the share remotely using rsync (i.e. via ssh).

I didn't find anything when searching for 'time' in the man pages of ecryptfs-mount-private, ecryptfs-setup-private, ecryptfs or ecryptfsd.

share|improve this question
1  
I found this occurring, (12.04) and have narrowed it down to when my crontab entries execute. Think it's something to do with manpages.ubuntu.com/manpages/oneiric/man8/pam_ecryptfs.8.html –  David Crookes Jan 9 at 9:19

1 Answer 1

There is no timeout. I had the same problem and according to David's comment above I commented out pam_ecrpytfs from /etc/pam.d/common-auth, /etc/pam.d/common-password, /etc/pam.d/common-session and /etc/pam.d/common-session-noninteractive and it stopped unmounting.

Actually cron should only be running the last one, but if you don't actually have the same password for your account and the private data (I don't), it's better to remove it from all of them, because additional login, e.g. on console, would also unmount the share.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.