ls command not working properly in encrypted home dir

Bug #728842 reported by zp
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ecryptfs-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: ecryptfs-utils

I have installed Ubuntu 10.10 to a live USB stick and created a new user with an encrypted home directory.
ecryptfs-utils version 83-0ubuntu3

when I create a new file or directory in the encrypted home it does not show up in directory listing.

eg:
cd ~/Documents
touch test.txt

ls -al
drwxr-xr-x 2 USER USER 4096 2011-03-02 14:12 .
drwx------ 32 USER USER 8192 2011-03-02 13:03 ..

if I try editing the file by entering the path, it works, even though ls does not list it!
the 'dir' command also does not work and ls with the full path also fails.

eg: nano ./test

ls as root makes no difference and the file is not hidden.

If I create a file in nautilus, it shows there but still does not show in the terminal or any other app.

rebooting makes the files visible.
sudo sync does not change anything.

Revision history for this message
Dern (nico-sonycom) wrote :

I have exactly the same problem on Lucid 10.4.2. I tried setting up an encrypted ~/Private directory using ecrypts-setup-private as I don't want the whole homedir to be encrypted. I can mount the directory, the first time I do ls ~/Private I can see the content but after that ls shows an empty directory. I can create new files, copy them and such. I see a new encrypted file appear in ~/.Private but ls ~/Private shows nothing. Strangely if I do 'ls -l Private/filename' that does show the file properly

puppy.[nico]$ cd Private/
puppy.[nico]$ echo "blabla" > blabla
puppy.[nico]$ cat blabla
blabla
puppy.[nico]$ ls -l
total 0
puppy.[nico]$ ls -l blabla
-rw-r--r-- 1 nico sonytel 7 2011-03-04 15:03 blabla

Nautilus also shows an empty directory.

Note: my homedirectory is on a NFS share.

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 728842] Re: ls command not working properly in encrypted home dir

Sorry, but eCryptfs does not yet work on top of NFS.

See:
 * Bug: #277578

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

As for the reporter, the problem is the same... eCryptfs does not work on top of AUFS, which is what your live ISO environment is using.

This bug is a duplicate of Bug #277578

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.