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 :
j'ai donc modifié le fichier de configuration pour inclure la ligne sur le volume :
<!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 :
</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 :
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à :
je ne vois pas plus.
à moins que ce ne soit le décalage de début de ligne (tabulation) ?
faudrait-il aligner sur
?
merci d'avance.
cordialement.
debianux
owncloud et pam_mount
0 commentaires:
Enregistrer un commentaire