Re: Bastian Kleineidam 2007-11-19 <[EMAIL PROTECTED]>
> you can enable debugging in pam_mount.conf.xml:
> <debug enable="1" />

Ah, that was too far at the other end of the file ;)

> Could you post the old working configuration? I am interested in this even if 
> the patch below works since there could be a converter script error.

Attached. The "bind" lines were commented out while I resurrected the
system with this disk, before the upgrade to lenny (they used to
work). About the conversion, I cannot say for sure, but the one
remaining line ("/dev/planck/cb /cb") at the time of the upgrade looks
like it was correctly converted.

> > Note that I have to use the "target" directory rather than the source
> > device/directory from /etc/fstab in the path="" tag because /cb won't
> > work for obvious reasons.
> Please try the attached patch and use the following 
> in /etc/security/pam_mount.conf.xml:
> 
> <volume user="myon" path="/dev/planck/cb" target="/srv/etch-i386/cb" 
> fstype="crypt" />

I first tried your patch with my existing config, debug log is
attached. (Let me know if you also want the beginning.) Looks like the
problem is "use_fstab: 0".

/cb             /srv/sid-amd64/cb       none defaults,bind,noauto,user       0 0
<volume user="myon" path="/srv/sid-amd64/cb" />

One possible fix could be to allow mountpoint in the config and
leaving path out. (mount doesn't care much.)

The config you proposed also fails.

What does of course work is:

<volume user="myon" path="/cb" mountpoint="/srv/sid-amd64/cb" fstype="none" 
options="bind" />

But I'd prefer refering to fstab entries :)

Christoph
-- 
[EMAIL PROTECTED] | http://www.df7cb.de/

Attachment: pam_mount.conf.old
Description: application/trash

pam_mount(rdconf2.c:208) checking sanity of volume record (/srv/sid-amd64/cb)
pam_mount(pam_mount.c:532) about to perform mount operations
pam_mount(mount.c:410) information for mount:
pam_mount(mount.c:411) ----------------------
pam_mount(mount.c:412) (defined by globalconf)
pam_mount(mount.c:413) user:          myon
pam_mount(mount.c:414) server:
pam_mount(mount.c:415) volume:        /srv/sid-amd64/cb
pam_mount(mount.c:416) mountpoint:
pam_mount(mount.c:417) options:
pam_mount(mount.c:418) fs_key_cipher:
pam_mount(mount.c:419) fs_key_path:
pam_mount(mount.c:420) use_fstab:     0
pam_mount(mount.c:421) ----------------------
pam_mount(mount.c:175) can't get realpath of volume : No such file or directory
pam_mount(mount.c:186) checking to see if /srv/sid-amd64/cb is already mounted 
at
pam_mount(mount.c:497) creating mount point
pam_mount(mount.c:505) tried to create  but failed
pam_mount(pam_mount.c:535) mount of /srv/sid-amd64/cb failed
pam_mount(pam_mount.c:133) clean system authtok (0)
pam_mount(misc.c:284) command: /usr/sbin/pmvarrun [-u] [myon] [-o] [1]
pam_mount(misc.c:55) set_myuid<pre>: (uid=0, euid=0, gid=1000, egid=1000)
pam_mount(misc.c:55) set_myuid<post>: (uid=0, euid=0, gid=1000, egid=1000)
pam_mount(pam_mount.c:424) pmvarrun says login count is 1
pam_mount(pam_mount.c:545) done opening session (ret=3)

Attachment: signature.asc
Description: Digital signature

Reply via email to