I have integrated Ubuntu 19.10 into the UCS domain (ubuntu-domain-join).
Now I want to include the Windows shares of the master on the Ubuntu client. When I mount the share I have to enter the password every time:
root@pc001:/data# mount -t cifs //tux.gehr.lan/Downloads /data/Downloads/
Password for s.gehr@//tux.gehr.lan/Downloads
then it works . Sure, I could store the credentials (credentials=~/.smbcredentials) but that’s not the purpose of ADS. How do I get the client to take the login data of the logged in user?
Yes, i had here similar at the beginning. The thing is Kernel Oplocks. So we here have only Sambashares. No mixed with NFS. So we did disable Kernel Oplocks in UCR. After restarting Samba and remouting the share. We will copy about 90/95MB/s.
But 8-10MB is really slow. Normal with Kernel Oplocks and default options are about 45-50MB/s.
I have been using NFS the whole time but the group access to the shares is not really good because unlike Samba “force user” and “force grou” are missing
Now I am trying to test this solution. It has worked before.
The package “libpam-mount” is installed. The original /etc/security/pam_mount.conf.xml looks:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd">
<!--
See pam_mount.conf(5) for a description.
-->
<pam_mount>
<!-- debug should come before everything else,
since this file is still processed in a single pass
from top-to-bottom -->
<debug enable="0" />
<!-- Volume definitions -->
<!-- pam_mount parameters: General tunables -->
<!--
<luserconf name=".pam_mount.conf.xml" />
-->
<!-- Note that commenting out mntoptions will give you the defaults.
You will need to explicitly initialize it with the empty string
to reset the defaults to nothing. -->
<mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
<!--
<mntoptions deny="suid,dev" />
<mntoptions allow="*" />
<mntoptions deny="*" />
-->
<mntoptions require="nosuid,nodev" />
<!-- requires ofl from hxtools to be present -->
<logout wait="0" hup="no" term="no" kill="no" />
<!-- pam_mount parameters: Volume-related -->
<mkmountpoint enable="1" remove="true" />
</pam_mount>