[Samba] Debian client/workstation pam_mount

jmpatagonia jmpatagonia at gmail.com
Fri Sep 25 15:05:39 UTC 2020


Error on domain option !!

Sep 25 12:04:33 ubuntucliente lightdm[702]: (mount.c:664): Password will be
sent to helper as-is.
Sep 25 12:04:33 ubuntucliente lightdm[702]: command: 'mount' '-t' 'cifs'
'//domain-server2/FS_PRUEBA_3' '/home/prueba3/compartido' '-o'
'username=prueba3,uid=50006,gid=50027,username=prueba3,uid=50006,gid=50027,domain'
Sep 25 12:04:33 ubuntucliente kernel: [11608.171186] CIFS: Unknown mount
option "domain"
Sep 25 12:04:33 ubuntucliente lightdm[702]: (mount.c:72): Messages from
underlying mount program:
Sep 25 12:04:33 ubuntucliente lightdm[702]: (mount.c:76): mount: wrong fs
type, bad option, bad superblock on //domain-server2/FS_PRUEBA_3,
Sep 25 12:04:33 ubuntucliente lightdm[702]: (mount.c:76):        missing
codepage or helper program, or other error
Sep 25 12:04:33 ubuntucliente lightdm[702]: (mount.c:76):        (for
several filesystems (e.g. nfs, cifs) you might
Sep 25 12:04:33 ubuntucliente lightdm[702]: (mount.c:76):        need a
/sbin/mount.<type> helper program)
Sep 25 12:04:33 ubuntucliente lightdm[702]: (mount.c:76):
Sep 25 12:04:33 ubuntucliente lightdm[702]: (mount.c:76):        In some
cases useful info is found in syslog - try
Sep 25 12:04:33 ubuntucliente lightdm[702]: (mount.c:76):        dmesg |
tail or so.

root at ubuntucliente:/etc/security# cat pam_mount.conf.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd">
<pam_mount>
<volume fstype="cifs"
         server="domain-server2"
         path="FS_PRUEBA_3"
         mountpoint="/home/prueba3/compartido"
options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME)"
 >
<not> <uid>0-9999</uid> </not> </volume>

<!-- ... -->
</pam_mount>


El vie., 25 sept. 2020 a las 10:44, Rowland penny via samba (<
samba at lists.samba.org>) escribió:

> On 25/09/2020 14:09, jmpatagonia via samba wrote:
> > Sorry I in the same topic of that, trying to map whit pam_mount, but I
> > still having problems
> >
> I think your pam_mount file will contain something like this:
>
> <volume fstype="cifs"
>          server="domain-server2"
>          path="FS_PRUEBA_3"
>          mountpoint="/home/prueba3/compartido"
>
> options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME)"
>          />
>
> If it does, then change 'domain-server2' to the FQDN, e.g.
> 'domain-server2.example.com'
>
> Rowland
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list