I've set a encrypted home directory for user piranha3:root@raspberrypi:~# ecryptfs-verify -u piranha3 -hINFO: [/home/piranha3/.ecryptfs] existsINFO: [/home/piranha3/.ecryptfs/Private.sig] existsINFO: [/home/piranha3/.ecryptfs/Private.sig] contains [2] signaturesINFO: [/home/piranha3/.ecryptfs/Private.mnt] existsINFO: [/home/piranha3] is a directoryINFO: [/home/piranha3/.ecryptfs/auto-mount] Automount is setINFO: Mount point [/home/piranha3] is the user's homeINFO: Ownership [piranha3] of mount point [/home/piranha3] is correctINFO: Configuration validBut after piranha3 logouts directory is not unmounted:root@raspberrypi:~# mount | grep ecryptfs/home/.ecryptfs/piranha3/.Private on /home/piranha3 type ecryptfs (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=729061d7fa17b3a4,ecryptfs_sig=eb5ec4d9c13e2d74,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)lsof output:lsof: WARNING: can't stat() cifs file system /media/cifs      Output information may be incomplete.lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs      Output information may be incomplete.System Information:root@raspberrypi:~# dpkg -l ecryptfs-utilsDeseado=desconocido(U)/Instalar/eliminaR/Purgar/retener(H)| Estado=No/Inst/ficheros-Conf/desempaqUetado/medio-conF/medio-inst(H)/espera-disparo(W)/pendienTe-disparo|/ Err?=(ninguno)/requiere-Reinst (Estado,Err: maysc.=malo)||/ Nombre                   Versin           Arquitectura      Descripcin+++-========================-=================-=================-======================================================ii  ecryptfs-utils           103-5             armhf             ecryptfs cryptographic filesystem (utilities)root@raspberrypi:~# uname -aLinux raspberrypi 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/LinuxAnd finally about PAM:root@raspberrypi:~# grep -r ecryptfs /etc/pam.d/etc/pam.d/common-session:session       optional        pam_ecryptfs.so unwrap/etc/pam.d/common-password:password     optional        pam_ecryptfs.so /etc/pam.d/common-auth:auth     optional        pam_ecryptfs.so unwrap/etc/pam.d/common-session-noninteractive:session        optional        pam_ecryptfs.so unwrapWhy is not /home/directory unmounted?
ecryptfs: auto-umount does not work
unmounting;ecryptfs