[Samba] Debian client/workstation pam_mount

jmpatagonia jmpatagonia at gmail.com
Fri Sep 25 13:09:32 UTC 2020


Sorry I in the same topic of that, trying to map whit pam_mount, but I
still having problems

Attach the syslog error.


Sep 25 10:00:15 ubuntucliente lightdm[702]: (pam_mount.c:365): pam_mount
2.14: entering auth stage
Sep 25 10:00:15 ubuntucliente org.gtk.vfs.Daemon[5287]: A connection to the
bus can't be made
Sep 25 10:00:15 ubuntucliente systemd[1]: Started Session c10 of user
prueba3.
Sep 25 10:00:15 ubuntucliente lightdm[702]: (pam_mount.c:568): pam_mount
2.14: entering session stage
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:267): Mount info:
globalconf, user=prueba3 <volume fstype="cifs" server="domain-server2"
path="FS_PRUEBA_3" mountpoint="/home/prueba3/compartido" cipher="(null)"
fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)"
options="username=prueba3,uid=50006,gid=50027" /> fstab=0 ssh=0
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:664): Password will be
sent to helper as-is.
Sep 25 10:00:15 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'
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:72): Messages from
underlying mount program:
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:76): mount: wrong fs
type, bad option, bad superblock on //domain-server2/FS_PRUEBA_3,
Sep 25 10:00:15 ubuntucliente kernel: [ 4150.796087] Unable to determine
destination address.
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:76):        missing
codepage or helper program, or other error
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:76):        (for
several filesystems (e.g. nfs, cifs) you might
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:76):        need a
/sbin/mount.<type> helper program)
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:76):
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:76):        In some
cases useful info is found in syslog - try
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:76):        dmesg |
tail or so.
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 22 27 0:21 /
/sys rw,nosuid,nodev,noexec,relatime shared:7 - sysfs sysfs rw
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 23 27 0:4 /
/proc rw,nosuid,nodev,noexec,relatime shared:12 - proc proc rw
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 24 27 0:6 / /dev
rw,nosuid,relatime shared:2 - devtmpfs udev
rw,size=990848k,nr_inodes=247712,mode=755
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 25 24 0:22 /
/dev/pts rw,nosuid,noexec,relatime shared:3 - devpts devpts
rw,gid=5,mode=620,ptmxmode=000
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 26 27 0:23 /
/run rw,nosuid,noexec,relatime shared:5 - tmpfs tmpfs
rw,size=204124k,mode=755
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 27 0 8:1 / /
rw,relatime shared:1 - ext4 /dev/sda1 rw,errors=remount-ro,data=ordered
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 28 22 0:7 /
/sys/kernel/security rw,nosuid,nodev,noexec,relatime shared:8 - securityfs
securityfs rw
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 29 24 0:24 /
/dev/shm rw,nosuid,nodev shared:4 - tmpfs tmpfs rw
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 30 26 0:25 /
/run/lock rw,nosuid,nodev,noexec,relatime shared:6 - tmpfs tmpfs
rw,size=5120k
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 31 22 0:26 /
/sys/fs/cgroup ro,nosuid,nodev,noexec shared:9 - tmpfs tmpfs ro,mode=755
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 32 31 0:27 /
/sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:10 - cgroup
cgroup
rw,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 33 22 0:28 /
/sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:11 - pstore pstore rw
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 34 31 0:29 /
/sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:13 - cgroup
cgroup rw,freezer
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 35 31 0:30 /
/sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:14 - cgroup
cgroup rw,memory
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 36 31 0:31 /
/sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:15 - cgroup
cgroup rw,devices
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 37 31 0:32 /
/sys/fs/cgroup/net_cls,net_prio rw,nosuid,nodev,noexec,relatime shared:16 -
cgroup cgroup rw,net_cls,net_prio
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 38 31 0:33 /
/sys/fs/cgroup/perf_event rw,nosuid,nodev,noexec,relatime shared:17 -
cgroup cgroup rw,perf_event
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 39 31 0:34 /
/sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:18 -
cgroup cgroup rw,cpu,cpuacct
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 40 31 0:35 /
/sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:19 - cgroup
cgroup rw,cpuset
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 41 31 0:36 /
/sys/fs/cgroup/pids rw,nosuid,nodev,noexec,relatime shared:20 - cgroup
cgroup rw,pids
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 42 31 0:37 /
/sys/fs/cgroup/rdma rw,nosuid,nodev,noexec,relatime shared:21 - cgroup
cgroup rw,rdma
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 43 31 0:38 /
/sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:22 - cgroup
cgroup rw,blkio
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 44 31 0:39 /
/sys/fs/cgroup/hugetlb rw,nosuid,nodev,noexec,relatime shared:23 - cgroup
cgroup rw,hugetlb
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 45 23 0:40 /
/proc/sys/fs/binfmt_misc rw,relatime shared:24 - autofs systemd-1
rw,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12506
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 80 24 0:18 /
/dev/mqueue rw,relatime shared:58 - mqueue mqueue rw
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 82 22 0:8 /
/sys/kernel/debug rw,relatime shared:60 - debugfs debugfs rw
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 84 24 0:41 /
/dev/hugepages rw,relatime shared:62 - hugetlbfs hugetlbfs rw,pagesize=2M
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 46 22 0:19 /
/sys/kernel/config rw,relatime shared:25 - configfs configfs rw
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 47 22 0:42 /
/sys/fs/fuse/connections rw,relatime shared:26 - fusectl fusectl rw
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 137 26 0:44 /
/run/user/1000 rw,nosuid,nodev,relatime shared:114 - tmpfs tmpfs
rw,size=204124k,mode=700,uid=1000,gid=1000
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 143 26 0:46 /
/run/user/50006 rw,nosuid,nodev,relatime shared:120 - tmpfs tmpfs
rw,size=204124k,mode=700,uid=50006,gid=50027
Sep 25 10:00:15 ubuntucliente lightdm[702]: (mount.c:558): 149 26 0:45 /
/run/user/108 rw,nosuid,nodev,relatime shared:126 - tmpfs tmpfs
rw,size=204124k,mode=700,uid=108,gid=114
Sep 25 10:00:15 ubuntucliente lightdm[702]: (pam_mount.c:522): mount of
FS_PRUEBA_3 failed
Sep 25 10:00:15 ubuntucliente lightdm[702]: command: 'pmvarrun' '-u'
'prueba3' '-o' '1'
Sep 25 10:00:16 ubuntucliente lightdm[702]: (pmvarrun.c:258): parsed count
value 0
Sep 25 10:00:16 ubuntucliente lightdm[702]: (pam_mount.c:441): pmvarrun
says login count is 1
Sep 25 10:00:16 ubuntucliente lightdm[702]: (pam_mount.c:660): done opening
session (ret=0)
Sep 25 10:00:16 ubuntucliente dbus[623]: [system] Activating via systemd:
service name='org.bluez' unit='dbus-org.bluez.service'
Sep 25 10:00:18 ubuntucliente org.ayatana.bamf[5618]: bamfdaemon
start/running, process 5678

maybe you can help me.

the message ---> Unable to determine destination address.is not certain
wright, because ping and dig work fine to find the server.

prueba3 at ubuntucliente:~$ dig domain-server2

; <<>> DiG 9.10.3-P4-Ubuntu <<>> domain-server2
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8332
;; flags: qr rd ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;domain-server2.                        IN      A

;; Query time: 1 msec
;; SERVER: 10.11.37.155#53(10.11.37.155)
;; WHEN: Fri Sep 25 10:08:07 -03 2020
;; MSG SIZE  rcvd: 32

prueba3 at ubuntucliente:~$ ping domain-server2
PING domain-server2 (10.11.37.155) 56(84) bytes of data.
64 bytes from domain-server2 (10.11.37.155): icmp_seq=1 ttl=64 time=0.327 ms
64 bytes from domain-server2 (10.11.37.155): icmp_seq=2 ttl=64 time=0.249 ms
64 bytes from domain-server2 (10.11.37.155): icmp_seq=3 ttl=64 time=0.226 ms
^C
--- domain-server2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2025ms
rtt min/avg/max/mdev = 0.226/0.267/0.327/0.045 ms



Regards.



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

> On 25/09/2020 13:16, Rowland penny via samba wrote:
> > On 25/09/2020 12:55, Robert Wooden wrote:
> >> Thanks Dr, Naumer and Rowland.
> >>
> >> Although still not quite correct, my pam_mount.conf.xml looks like:
> >> root at lws4:~# cat /etc/security/pam_mount.conf.xml
> >> <debug enable="1" />
> >> <volume fstype="fuse"
> >> server="mbr04.subdom.example.com <http://mbr04.subdom.example.com>"
> >> path="/srv/samba/public"
> >> mountpoint="/home/test2/dtshare"
> >>
> options=""username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME),nosuid,nodev,noatime,reconnect,nonempty,allow_other,default_permissions,password_stdin"
>
> >>
> >> ssh="0" noroot="0" />
> >>
> >> "tail -f /var/log/syslog" ends with:
> >> Sep 25 06:39:54 lws4 systemd[1]: home-test2-dtshare.mount: Mounting
> >> timed out. Terminating.
> >> Sep 25 06:39:54 lws4 systemd[1]: home-test2-dtshare.mount: Mount
> >> process exited, code=killed, status=15/TERM
> >> Sep 25 06:39:54 lws4 systemd[1]: home-test2-dtshare.mount: Failed
> >> with result 'timeout'.
> >> Sep 25 06:39:54 lws4 systemd[1]: Failed to mount dtshare mount.
> >> Sep 25 06:42:12 lws4 nmbd[538]: [2020/09/25 06:42:12.405936,  0]
> >> ../../source3/nmbd/nmbd_namequery.c:109(query_name_response)
> >>
> >> "tail -f /var/log/auth.log" ends with:
> >> Sep 25 06:37:29 lws4 sshd[5799]: pam_unix(sshd:session): session
> >> opened for user adminlinux by (uid=0)
> >> Sep 25 06:37:29 lws4 sshd[5799]: (rdconf1.c:401): libxml *detected a
> >> syntax error *in /etc/security/pam_mount.conf.xml
> >> Sep 25 06:37:29 lws4 systemd-logind[502]: New session 79 of user
> >> adminlinux.
> >> Sep 25 06:37:34 lws4 sudo: (rdconf1.c:401): libxml *detected a syntax
> >> error* in /etc/security/pam_mount.conf.xml
> >> Sep 25 06:37:34 lws4 sudo: adminlinux : TTY=pts/2 ;
> >> PWD=/home/adminlinux ; USER=root ; COMMAND=/bin/bash
> >> Sep 25 06:37:34 lws4 sudo: pam_unix(sudo:session): session opened for
> >> user root by adminlinux(uid=0)
> >>
> >> Broadcast message from root at lws4 (Fri 2020-09-25 06:38:24 CDT):
> >>
> >> Password entry required for 'Password for
> >> root@//mbr04.subdom.example.com/home/mnt-test/
> >> <http://mbr04.subdom.example.com/home/mnt-test/>:' (PID 5820).
> >> Please enter password with the systemd-tty-ask-password-agent tool:
> >>
> >> The final line "Please enter password with the
> >> systemd-tty-ask-password-agent tool:" will NOT accept any passwords.
> >>
> >> Any "/etc/security/pam_mount.conf.xml" suggestions and/or corrections?
> >
> > Your 'path' is wrong, it should the share name, not the path from the
> > share.
> >
> > Rowland
>
> And that should have been 'it should be the share name', why does my
> brain type better than my fingers ??
>
> 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