Ubuntu – How to check the home directory is encrypted in Ubuntu 12.04

ecryptfsencryptionhome-directory

I am using XUbuntu 12.04 and I want to be sure my home directory is encrypted. I have .ecryptfs in my home directory and other positive signs of encryption and had selected it during installation. But When I boot up computer and login as root in the console 1 without logging into my actual account, and try cd /home/myusername/ I can see all the files? Is this correct behaviour since the home directory will be mounted only when I login as 'myusername' or does root has access to all encrypted home directories?

Best Answer

Easy! Just use the ecryptfs-verify command.

For instance:

ecryptfs-verify -h

Full disclosure: I am the co-author and co-maintainer of eCryptfs, and happened to write the ecryptfs-verify tool, too ;-)

Related Question