Encrypted home directory file Input/output error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ecryptfs-utils (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
This is a fresh install of karmic koala alpha-5 (Ubuntu karmic (development branch)) on a new machine using the alternate install CCD (required LVM+software RAID).
The "encrypt home directory" option was selected during the install.
Once complete I was unable to log in via GDM. This reported problems accessing the $HOME/.ICEauthority file.
Logging in via the console was possible. Attempts to read or modify (chown||chmod) the .ICEauthority file as the user or root (again from console) failed with "Input/output error". Ultimately this was resolved by deleting then recreating (touch .ICEauthority) the file as root.
I have now encountered the same problem accessing files in the $HOME/.gnupg directory while trying to import keys.
A simple script which does an fopen()/fclose() on all files under $HOME when run as either the user or root returns:
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
Unable to open /home/djf/
All of these files are owned by the user in question:
djf@unicorn:~/bug$ ls -l /home/djf/
-rw------- 1 djf djf 12288 2009-09-07 10:42 /home/djf/
The files in gnupg were copied (cp $src $dest) from .gnupg
Between discovering problem .gnupg files and running the script they started to behave - possibly due to running software-
As an example of the access error:
djf@unicorn:~$ cat /home/djf/
cat: /home/djf/
dmesg gains another of these messages for each failed access:
[87804.727437] Valid eCryptfs headers not found in file header region or xattr region
[87804.727441] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO
This may also explain why pulseaudio appears to be suffering (device manager says "connection refused",
hence no sources or sinks).
The machine has 2 1TB HDD configured as 3 x software raid 1:
/dev/md0 == /boot (29.80 GB) ext2
/dev/md1 == encrypted swap (29.80 GB)
/dev/md2 == LVM volume group vg00
/dev/
/dev/
/dev/
/dev/
The encrypted home directory uses the default install, mount reports:
/home/djf/.Private on /home/djf type ecryptfs (ecryptfs_
affects: | ubuntu → ecryptfs-utils (Ubuntu) |
Changed in ecryptfs-utils (Ubuntu): | |
importance: | Undecided → Medium |
Changed in ecryptfs-utils (Ubuntu): | |
status: | Incomplete → Invalid |
Should have added this is all 64 bit.