I am relatively new GNU/Linux user and currently use Xubuntu 14.04 LTS. I have my main user and I also enabled root account (but not used it and root password is setup).
I am interested in ecryptfs and read lots of articles including these:
- http://www.linux-mag.com/id/7568/
- Is my encrypted home folder open to other users when I am logged in?
- Why encrypted $HOME files showing to root, how to make it hidden again?
I decided to perform several tests on VM. I guess what I found must be some bug. I would appreciate your comments.
Tested:
- Ubuntu GNOME 15
- Lubuntu 15
- Xubuntu 14 LTS
How do I test:
- Installation - default with option to encrypt Home folder during installation
- I enable root account and create password (How to enable root login?)
What happens on all of them: I shutdown the machine. Start it. If I first login with root, root cannot see my user's HOME folder/files/ they are encrypted.
However, what happens on Ubuntu and Lubuntu 15:
If I login to my user, check files, then log off fully, eventually login with root, root can see my user's files. This should be fine if understand correctly the articles above? Or no? If the user's account is logged off, should root still be able to read the files of other users?
What happens on Xubuntu 14 LTS:
If I login to my user, then I log off, eventually login with root, root CANNOT read my user's home dir/files. No matter how I tries it, if root first, or user first, If the user is logged off, root cannot read the files of my user?
So, what is really the expected behaviour? Any bugs?
I really appreciate everyone's opinion and expert words. Thank you!
keyctl show
(different with sudo) and not removing a key after unmounting is a possibility, but that wouldn't decrypt the files on it's own. Just leaving the encrypted home mounted is what it sounds like, I don't remember offhand but I think there's a way for root to see if any eCryptFS's are mounted by other users. – Xen2050 Jul 01 '15 at 10:57