[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libpam-mount und user volume



On Wed, 5 Nov 2008 10:56:37 +0000 (UTC)
Jörg Sommer <joerg@alea.gnuu.de> wrote:

> Hallo Michael,
Hallo Jörg,
> 
> Michael Domann <profbunny@gmx.de> wrote:
> > die conf auszug
> >
> >     <?xml version="1.0" encoding="utf-8" ?>
> >     <pam_mount>
> >     <volume user="profbunny" fstype="crypt" path="/dev/hda3" mountpoint="/home" options="fsck" />
> 
> Ich hatte auch ein Problem mit pam_mount. Man hat die Standardwerte
> geändert und ich muss jetzt explizit die Hashfunktion angeben, weil ich
> nicht sha512 verwende. Ich musste bei options ein hash=ripemd160 angeben,
> also bei Dir dann fsck,hash=ripemd160.
> 
> Du kannst den Mount auch erstmal von Hand probieren und mount.crypt mit
> sh -x ausführen und schauen, was ausgeführt wird und wo es klemmt.
> 
> sh -x /sbin/mount.crypt /dev/hda3 /home -o fsck
>
ich habe mich ungeschickt ausgedrückt, das mounten meines home verzeichnisses funktioniert tadellos. 
profbunny@sysiphus:~$ cat .pam_mount.conf.xml 
<?xml version="1.0" encoding="utf-8" ?>
<pam_mount>
<volume user="profbunny" path="/tmp" mountpoint="/home/.tmp" fstype="none" options="bind" noroot="1" />
<volume user="profbunny" path="/dev/sda1" mountpoint="/home/profbunny/source/deluge" fstype="xfs" noroot="1" options="auto" />
<mntoptions allow="*" />
<debug enable="1" />
</pam_mount>

über meine user conf, möchte ich noch zwei weitere mounts durchführen, was seit dem update scheitert, da mir das volume nicht gehört. 

Oct 29 18:42:59 sysiphus login[29566]: pam_mount(rdconf2.c:190) checking sanity of volume record (/tmp)
 Oct 29 18:42:59 sysiphus login[29566]: pam_mount(rdconf2.c:131) checking sanity of luserconf volume record (/tmp)
Oct 29 18:42:59 sysiphus login[29566]: pam_mount(rdconf2.c:141) user-defined volume (/tmp), volume not owned by user
Oct 29 18:42:59 sysiphus login[29566]: pam_mount(rdconf2.c:190) checking sanity of volume record (/dev/sda1)
Oct 29 18:43:00 sysiphus login[29566]: pam_mount(rdconf2.c:131) checking sanity of luserconf volume record (/dev/sda1)
Oct 29 18:43:00 sysiphus login[29566]: pam_mount(rdconf2.c:141) user-defined volume (/dev/sda1), volume not owned by user
Oct 29 18:43:00 sysiphus login[29566]: command: [pmvarrun] [-u] [profbunny] [-o] [1] 

und hier komm ich jetzt nicht weiter, egal welche optionen ich wie setze, pam mount schaut nur nach ob ich owner des volume /dev/sda1 bin, da ich das nicht bin (und rechte mäßing nicht sein muss) bricht er ab.

ein normales mount über die fstab funktioniert, ich möchte das nur gern automatisieren.

hoffe das war verständlicher.


 
> Schöne Grüße, Jörg.
> -- 
> Das Recht, seine Meinung zu wechseln, ist eines der wichtigsten
> menschlichen Privilegien.
> 	     		 			(Robert Peel)


grüße micha


Reply to: