[Samba] pam_mount strangeness...

Marco Gaiarin gaio at lilliput.linux.it
Wed Dec 21 18:22:16 UTC 2022


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)





More information about the samba mailing list