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

Re: libpam-mount und user volume



Hallo Michael,

Michael Domann <profbunny@gmx.de> wrote:
> 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.

Hast Du mal im Changelog geschaut, ob etwas diesbezüglich verändert
wurde? Zum Beispiel lese ich da für 0.47 „conf: re-add luserconf security
checks“

In der Manpage steht, dass pmvarrun auch die Option -d kennt. Hast Du die
mal probiert?

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

echo 'mount …' >> ~/.profile

Schöne Grüße, Jörg.
-- 
Was ist das bloß für eine Welt, in der es mehr Mut braucht ehrlich zu
weinen als Stärke vorzutäuschen?


Reply to: