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
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 >
options=""username Remove 1 " try again.> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Robert Wooden via samba > Verzonden: vrijdag 25 september 2020 13:55 > Aan: Rowland penny > CC: SAMBA MailList > Onderwerp: Re: [Samba] Debian client/workstation pam_mount > > 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),domai > n=%(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 > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Am 25.09.20 um 13:55 schrieb Robert Wooden via samba:> 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" />> 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:Do you want to run this as root? Also this: Sep 25 06:37:29 lws4 sshd[5799]: (rdconf1.c:401): libxml *detected a syntax error *in /etc/security/pam_mount.conf.xml Did you check the syntax? Have you tried Rowlands example? Specifically without the "password_stdin" Are us ssh-ing into this client? With which user? Regards Christian -- Dr. Christian Naumer Unit Head Bioprocess Development B.R.A.I.N Aktiengesellschaft Darmstaedter Str. 34-36, D-64673 Zwingenberg e-mail cn at brain-biotech.com, homepage www.brain-biotech.com fon +49-6251-9331-30 / fax +49-6251-9331-11 Sitz der Gesellschaft: Zwingenberg/Bergstrasse Registergericht AG Darmstadt, HRB 24758 Vorstand: Adriaan Moelker (Vorstandsvorsitzender), Manfred Bender Aufsichtsratsvorsitzender: Dr. Georg Kellinghusen
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