I need to pam_mount some share from an old samba server, NT1 protocol, samba3 in NT mode. If i do by hand, by root: mount -t cifs //10.10.1.5/Users /home/massimo/Users -o username=massimo,uid=1001,gid=1016,domain=CONEGLIANO,vers=1.0 works as expected. On pam_mount config file i've: <volume fstype="cifs" server="10.10.1.5" path="Users" mountpoint="~/Users" Options="username=%(USER),domain=CONEGLIANO,vers=1.0"> <and> <sgrp>domusers</sgrp> </and> </volume> but enabling verbose mode i catch: Dec 21 16:58:58 cnl-ricerca gdm-session-worker[3174]: command: 'mount' '-t' 'cifs' '//10.10.1.5/Users' '/home/massimo/Users' '-o' 'username=massimo,uid=1001,gid=1016' and mount fail. WHY the damned pam_mount remove 'domain=CONEGLIANO,vers=1.0' options?! Thanks... -- Worrying about case in a Windows (AD) context is one of the quickest paths to insanity. (Patrick Goetz)
On 21/12/2022 18:22, Marco Gaiarin via samba wrote:> On pam_mount config file i've: > > <volume fstype="cifs" server="10.10.1.5" 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 /etc/security/pam_mount.conf.xml If your pam_mount installation does not provide the DTD you can find it at https://codeberg.org/jengelh/pam_mount/src/branch/master/config 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". Adam