ecryptfs-mount-private mounts the private/home directory, but the pwd is still the unmounted directory

Bug #332331 reported by Dustin Kirkland 
2
Affects Status Importance Assigned to Milestone
ecryptfs-utils (Ubuntu)
Fix Released
Medium
Dustin Kirkland 

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

Changed in ecryptfs-utils:
assignee: nobody → kirkland
importance: Undecided → Medium
milestone: none → jaunty-alpha-5
status: New → In Progress
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

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

Changed in ecryptfs-utils:
status: In Progress → Fix Committed
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

This will be in the -72 release. A simple patch should be applied against the Jaunty package.

:-Dustin

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ecryptfs-utils - 72-0ubuntu1

---------------
ecryptfs-utils (72-0ubuntu1) jaunty; urgency=low

  [ Dustin Kirkland ]
  * src/utils/ecryptfs-[u]mount-private: print message about cd $PWD,
    LP: #332331
  * doc/manpage/*: manpage updates
  * debian/ecryptfs-utils.prerm: prevent removal of ecryptfs-utils
    package, if in use, LP: #331085
  * src/utils/ecryptfs-setup-private:
    - allow for LDAP-based logins, LP: #317307
    - add --noautomount, --noautoumount options, LP: #301759

  [ Tyler Hicks ]
  * src/libecryptfs/cipher_list.c: ignore unknown ciphers, LP: #335632
  * doc/manpage/ecryptfs.7: add key sig mount options info, LP: #329491
  * src/utils/mount.ecryptfs.c: scrub unknown option

  [ James Dupin ]
  * doc/manpage/fr/*: initial cut at french manpages

  [ Michal Hlavinka ]
  * src/libecryptfs/module_mgr.c: fix mount parameter handling on
    interactive mounting, LP: #331948

 -- Dustin Kirkland <email address hidden> Wed, 18 Mar 2009 18:53:11 -0500

Changed in ecryptfs-utils:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.