Actually, this is impossible to "solve" within shell: * http://www.faqs.org/faqs/unix-faq/faq/part2/section-8.html
A given shell script can't actually affect the working directory of the calling shell. Thus, we're going to have to solve this with an informative info message. Check if the current directory matches that of the directory just mounted. If so, tell the user to run: $ cd $PWD :-Dustin -- ecryptfs-mount-private mounts the private/home directory, but the pwd is still the unmounted directory https://bugs.launchpad.net/bugs/332331 You received this bug notification because you are a member of eCryptfs, which is subscribed to ecryptfs-utils in ubuntu. Status in “ecryptfs-utils” source package in Ubuntu: In Progress Bug description: Binary package hint: ecryptfs-utils In the situation where you are in your $HOME or ~/Private, and this directory is unmounted, you can run: $ ecryptfs-mount-private Assuming this mount succeeds, you are good to go. However, you are still in your unmounted home/private directory. To solve this, you need to cd to this directory again. This should definitely be fixed by a one-liner in ecryptfs-mount-private. :-Dustin _______________________________________________ Mailing list: https://launchpad.net/~ecryptfs Post to : [email protected] Unsubscribe : https://launchpad.net/~ecryptfs More help : https://help.launchpad.net/ListHelp

