I'm trying to get pam_mount working on Ubuntu 12.04.
I have /dev/sda1 (encrypted partition) with /dev/dm-1 (ext4 formatted) inside it.
Should ~/.pam_mount.conf.xml be trying to mount /dev/sda1 or /dev/dm-1?
If I use the line:
<volume fstype="ext4" path="/dev/dm-1" mountpoint="~/slowstore" options="rw" />
then it nearly works. It prompts for the password (ok, I'd like pam_mount to do that for me, but still..) then I get:
pam_mount(rdconf2.c:126): checking sanity of luserconf volume record (/dev/dm-1) pam_mount(rdconf2.c:132): user-defined volume (/dev/dm-1), volume not owned by user
If I do:
sudo chown nick:disk /dev/dm-1
Then re-login the encrypted partition mounts correctly (ignoring th fact I have to reneter the password). However, if I log out completely the ownership on /dev/dm-1 gets reset to root:disk.
What am I doing wrong?