[Samba] Debian client/workstation pam_mount

Robert Wooden wdn2420systm at gmail.com
Fri Sep 25 11:55:00 UTC 2020


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"
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/:' (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?

On Fri, Sep 25, 2020 at 4:13 AM Rowland penny via samba <
samba at lists.samba.org> wrote:

> On 24/09/2020 12:47, Christian Naumer via samba wrote:
> > I am using it on Fedora with Volume Definition looking like this:
>
> and I use this:
>
> <volume fstype="cifs"
>          server="CIFS_SERVER_FQDN"
>          path="linprofiles"
>          mountpoint="/mnt/%(USER)"
> options="username=%(USER),uid=%(USERUID),gid=%(USERGID),domain=%(DOMAIN_NAME)"
>
>  >
> <not> <uid>0-9999</uid> </not> </volume>
>
> I do not use sssd and it mounts at user logon.
>
> 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