ls command not working properly in encrypted home dir
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.
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.