[Samba] Debian client/workstation pam_mount

Rowland penny rpenny at samba.org
Fri Sep 25 12:19:44 UTC 2020


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






More information about the samba mailing list