Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
I found this occurring, (12.04) and have narrowed it down to when my crontab entries execute. Think it's something to do with – David Crookes Jan 9 '14 at 9:19

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


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.