Sorry, so if ~/.ecryptfs/wrapped-passphrase exists, but Private.mnt does not, the assumption is that you have an Encrypted-Private.
If ~/.ecryptfs/wrapped-passphrase exists, and ~/.ecryptfs/Private.mnt exists, then Private.mnt is consulted for the mount point for the eCryptfs mount. In most cases, this is either $HOME or $HOME/Private. However, some users change this to other various directories. It really doesn't matter to mount.ecryptfs_private, as long as the user OWNS the directory specified in the file. To be very specific, something like this, Martin... if [ -e ~/.ecryptfs/wrapped-passphrase ]; then [ -e ~/.ecryptfs/Private.mnt ] && echo $(cat ~/.ecryptfs/Private.mnt) "is encrypted" || echo "$HOME/Private is encrypted" else echo "No automounted eCryptfs here. Move along." fi -- [PATCH] detect users with encrypted home for kernel bug reports https://bugs.launchpad.net/bugs/444656 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs