owncloud et pam_mount

dimanche 10 mai 2015

Bonjour,


le chiffrement d'un répertoire à synchroniser avec owncloud-client peut se faire avec "encfs".
j'essaye d'automatiser le montage/démontage, à l'ouverture de session, avec "pam_mount", en suivant les indications d'ici :

http://ift.tt/NDV1Rs


j'ai donc modifié le fichier de configuration pour inclure la ligne sur le volume :

cat /etc/security/pam_mount.conf.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd">
<!--
  See pam_mount.conf(5) for a description.
-->

<pam_mount>

    <!-- debug should come before everything else,
    since this file is still processed in a single pass
    from top-to-bottom -->

<debug enable="0" />

    <!-- Volume definitions -->

<volume user="jlg" fstype="fuse" path="encfs#/home/jlg/owncloud/zaclys_f/" mountpoint="/home/jlg/zaclys_o/">

    <!-- pam_mount parameters: General tunables -->

<!--
<luserconf name=".pam_mount.conf.xml" />
-->

<!-- Note that commenting out mntoptions will give you the defaults.
     You will need to explicitly initialize it with the empty string
     to reset the defaults to nothing. -->
<mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
<!--
<mntoptions deny="suid,dev" />
<mntoptions allow="*" />
<mntoptions deny="*" />
-->
<mntoptions require="nosuid,nodev" />

<logout wait="0" hup="0" term="0" kill="0" />


    <!-- pam_mount parameters: Volume-related -->


<mkmountpoint enable="1" remove="true" />


</pam_mount>


après le redémarrage, le lancement d'un terminal en root donne :

su -
/etc/security/pam_mount.conf.xml:45: parser error : Opening and ending tag mismatch: volume line 17 and pam_mount
</pam_mount>
            ^
/etc/security/pam_mount.conf.xml:46: parser error : Premature end of data in tag pam_mount line 7

^
(rdconf1.c:387): libxml detected a syntax error in /etc/security/pam_mount.conf.xml
/etc/security/pam_mount.conf.xml:45: parser error : Opening and ending tag mismatch: volume line 17 and pam_mount
</pam_mount>
            ^
/etc/security/pam_mount.conf.xml:46: parser error : Premature end of data in tag pam_mount line 7

^
(rdconf1.c:387): libxml detected a syntax error in /etc/security/pam_mount.conf.xml
 

Opening and ending tag mismatch: volume line 17

la ligne 17 est celle ajoutée :

<volume user="jlg" fstype="fuse" path="encfs#/home/jlg/owncloud/zaclys_f/" mountpoint="/home/jlg/zaclys_o/">

je ne vois pas ce qui déplaît.


Premature end of data in tag pam_mount line 7

la ligne 7 était déjà là :

<pam_mount>


je ne vois pas plus.


à moins que ce ne soit le décalage de début de ligne (tabulation) ?
faudrait-il aligner sur

<!-- Volume definitions -->

?



merci d'avance.
cordialement.
debianux



owncloud et pam_mount

0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor