The pam_mount module does not mount the volumes that contain defined control attributes (user, pgrp, sgrp, uid, and gid).
I believe that it simply ignores all volume tags that contain this control, because even with debug enable ="1" nothing is registered in syslog. Only volumes that are defined without any type of control attribute work and produce information in the log.
Example:
It works:
<volume fstype="cifs" server="FILESERVER" path="SHARE$" mountpoint="~/SHARE" options="gid=MYGROUP,file_mode=0770,dir_mode=0770"></volume>
It does not work:
<volume sgrp="MYGROUP" fstype="cifs" server="FILESERVER" path="SHARE$" mountpoint="~/SHARE" options="gid=MYGROUP,file_mode=0770,dir_mode=0770"></volume>
It has been tested in the following environments:
libpam-mount 2.16-3ubuntu0.1
Ubuntu 19.04
This bug was also registered in the Launchpad for the pam_mount packers in Ubuntu. (https://bugs.launchpad.net/ubuntu/+source/libpam-mount/+bug/1830117)