[Samba] pam_mount strangeness...

Adam Thorn alt36 at cam.ac.uk
Thu Dec 22 09:24:24 UTC 2022

On 21/12/2022 18:22, Marco Gaiarin via samba wrote:

> On pam_mount config file i've:
>   <volume fstype="cifs" server="" path="Users" mountpoint="~/Users" Options="username=%(USER),domain=CONEGLIANO,vers=1.0">
>   <and>
>   <sgrp>domusers</sgrp>
>   </and>
>   </volume>

This is an issue with your pam_mount config, and is not related to 
samba. Anyway...

You should check your XML is valid against the DTD, e.g.

xmlstarlet val -e -d /usr/share/xml/pam_mount/dtd/pam_mount.conf.xml.dtd 

If your pam_mount installation does not provide the DTD you can find it at


but you should ensure you're using the correct version for your 
pam_mount, of course.

xmlstarlet will tell you something like

"No declaration for attribute Options of element volume"

because "Options" is not a valid attribute; the name of the attribute 
you want to specify is "options".


More information about the samba mailing list