Generelle Anleitung
https://wiki.archlinux.org/index.php/pam_mount
Brauchbarere Anleitung
http://collaborate.bu.edu/engit/OpenSuseAtBU/Pam_Mount
Config für User (.pam_mount.conf.xml) im homeverzeichnis des Users
<?xml version="1.0" encoding="utf-8"?> <pam_mount> <volume options="uid=freier,gid=100,dmask=0700" user="*" mountpoint="~/sambashare" path="freigabe" #Name der Freigabe server="192.168.x.x" fstype="cifs" options="nodev,nosuid" /> <debug enable="1"/> </pam_mount>
Ergebnis beim einloggen
(rdconf1.c:744): path to luserconf set to /home/test/.pam_mount.conf.xml (pam_mount.c:568): pam_mount 2.14: entering session stage (pam_mount.c:616): going to readconfig /home/test/.pam_mount.conf.xml /home/test/.pam_mount.conf.xml:11: parser error : Attribute options redefined /> ^ (rdconf1.c:388): libxml detected a syntax error in /home/test/.pam_mount.conf.xml (pam_mount.c:629): no volumes to mount command: 'pmvarrun' '-u' 'test' '-o' '1' (pmvarrun.c:254): parsed count value 1 (pam_mount.c:441): pmvarrun says login count is 2 (pam_mount.c:660): done opening session (ret=0)