Hi,

I'm running SL6 and after a recent manual update of packages (via 'yum update') I get an issue of accessing auto-mounted SAMBA shares (CIFS) using a (user-specific) password credentials file.

For explanation this his is the respective automounter map (e.g. /etc/auto.userdata) that is called from the auto.master and  worked flawless before the update:

userfiles -fstype=cifs,credentials=$HOME/.userdata_credentials,uid=$UID,gid=$GID ://my_smb_server/userdata

Before the update this resulted in an auto-monted SAMBA share (//my_smb_server/userdata) to the local mountpoint '/userdata/userfiles' using the credentials file from each users home directory on the local machine, i.e. the map variables $HOME, $UID and $GID are substituted with the users home diretory, user ID and group ID, respectively, of the user trying to access the share.

Now, after the update I get the following error from autofs:

automount[14504]: attempting to mount entry /userdata/userfiles
automount[14504]: >> error -1 (Unknown error 18446744073709551615) opening credential file /root/.userdata_credentials
automount[14504]: mount(generic): failed to mount //my_smb_server/userdata (type cifs) on /userdata/userfiles
automount[14504]: failed to mount
/userdata/userfiles

i.e. the map variables $HOME, $UID and $GID are not substituted with the user's values but with the values from 'root' (and therefore the existing user credentials file cannot be found).

Does anyone have advice on this?

As this behaviour seems to be new after the update, here's the list of packages that were updated:

Aug 24 14:23:13 Updated: libxml2-2.7.6-20.el6.x86_64
Aug 24 14:23:13 Updated: db4-4.7.25-19.el6_6.x86_64
Aug 24 14:23:14 Updated: elfutils-libelf-0.161-3.el6.x86_64
Aug 24 14:23:16 Updated: pam-1.1.1-20.el6_7.1.x86_64
Aug 24 14:23:16 Updated: libsss_idmap-1.12.4-47.el6.x86_64
Aug 24 14:23:17 Updated: libcurl-7.19.7-46.el6.x86_64
Aug 24 14:23:18 Updated: grep-2.20-3.el6.x86_64
Aug 24 14:23:30 Updated: 1:java-1.6.0-openjdk-1.6.0.36-1.13.8.1.el6_7.x86_64
Aug 24 14:23:31 Updated: 1:libreoffice-ure-4.2.8.2-11.el6.x86_64
Aug 24 14:23:32 Updated: elfutils-libs-0.161-3.el6.x86_64
Aug 24 14:23:32 Updated: gnutls-2.8.5-18.el6.x86_64
Aug 24 14:23:32 Updated: libipa_hbac-1.12.4-47.el6.x86_64
Aug 24 14:23:33 Updated: 1:autocorr-en-4.2.8.2-11.el6.noarch
Aug 24 14:23:33 Updated: gdbm-1.8.0-38.el6.x86_64
Aug 24 14:23:34 Updated: sqlite-3.6.20-1.el6_7.2.x86_64
Aug 24 14:23:34 Updated: python-2.6.6-64.el6.x86_64
Aug 24 14:23:38 Updated: python-libs-2.6.6-64.el6.x86_64
Aug 24 14:23:39 Updated: python-nss-0.16.0-1.el6.x86_64
Aug 24 14:23:39 Updated: libipa_hbac-python-1.12.4-47.el6.x86_64
Aug 24 14:23:41 Updated: ipa-python-3.0.0-47.el6.x86_64
Aug 24 14:23:41 Updated: python-sssdconfig-1.12.4-47.el6.noarch
Aug 24 14:23:42 Updated: elfutils-0.161-3.el6.x86_64
Aug 24 14:23:42 Updated: dracut-004-388.el6.noarch
Aug 24 14:23:43 Updated: dracut-kernel-004-388.el6.noarch
Aug 24 14:23:43 Updated: curl-7.19.7-46.el6.x86_64
Aug 24 14:23:44 Updated: sssd-client-1.12.4-47.el6.x86_64
Aug 24 14:23:45 Updated: sssd-common-1.12.4-47.el6.x86_64
Aug 24 14:23:46 Updated: sssd-krb5-common-1.12.4-47.el6.x86_64
Aug 24 14:23:46 Updated: sssd-common-pac-1.12.4-47.el6.x86_64
Aug 24 14:23:46 Updated: sssd-ldap-1.12.4-47.el6.x86_64
Aug 24 14:23:47 Updated: sssd-krb5-1.12.4-47.el6.x86_64
Aug 24 14:23:47 Updated: sssd-proxy-1.12.4-47.el6.x86_64
Aug 24 14:23:48 Updated: libuser-0.56.13-8.el6_7.x86_64
Aug 24 14:23:49 Updated: elfutils-libelf-devel-0.161-3.el6.x86_64
Aug 24 14:23:49 Updated: httpd-tools-2.2.15-45.sl6.x86_64
Aug 24 14:23:51 Updated: httpd-2.2.15-45.sl6.x86_64
Aug 24 14:23:52 Updated: db4-utils-4.7.25-19.el6_6.x86_64
Aug 24 14:23:54 Updated: rpm-libs-4.8.0-47.el6.x86_64
Aug 24 14:23:54 Updated: rpm-4.8.0-47.el6.x86_64
Aug 24 14:23:55 Updated: 1:net-snmp-libs-5.5-54.el6_7.1.x86_64
Aug 24 14:23:56 Updated: 32:bind-libs-9.8.2-0.37.rc1.el6_7.2.x86_64
Aug 24 14:23:56 Updated: 32:bind-utils-9.8.2-0.37.rc1.el6_7.2.x86_64
Aug 24 14:23:57 Updated: sssd-ipa-1.12.4-47.el6.x86_64
Aug 24 14:23:57 Updated: sssd-ad-1.12.4-47.el6.x86_64
Aug 24 14:23:57 Updated: sssd-1.12.4-47.el6.x86_64
Aug 24 14:23:58 Updated: perl-hivex-1.3.3-4.3.el6.x86_64
Aug 24 14:23:58 Updated: hivex-1.3.3-4.3.el6.x86_64
Aug 24 14:23:59 Updated: ntpdate-4.2.6p5-5.el6.x86_64
Aug 24 14:23:59 Updated: ntp-4.2.6p5-5.el6.x86_64
Aug 24 14:24:02 Updated: 1:libreoffice-opensymbol-fonts-4.2.8.2-11.el6.noarch

Aug 24 14:24:17 Updated: 1:libreoffice-core-4.2.8.2-11.el6.x86_64
Aug 24 14:24:18 Updated: 1:libreoffice-graphicfilter-4.2.8.2-11.el6.x86_64
Aug 24 14:24:18 Updated: 1:libreoffice-pdfimport-4.2.8.2-11.el6.x86_64
Aug 24 14:24:19 Updated: 1:libreoffice-draw-4.2.8.2-11.el6.x86_64
Aug 24 14:24:19 Updated: db4-cxx-4.7.25-19.el6_6.x86_64
Aug 24 14:24:21 Updated: selinux-policy-3.7.19-279.el6_7.4.noarch
Aug 24 14:24:24 Updated: kernel-firmware-2.6.32-573.3.1.el6.noarch
Aug 24 14:24:33 Installed: kernel-2.6.32-573.3.1.el6.x86_64
Aug 24 14:24:34 Updated: 1:autofs-5.0.5-113.el6.x86_64
Aug 24 14:24:35 Updated: redhat-rpm-config-9.0.3-44.sl6.noarch
Aug 24 14:24:35 Updated: sl-indexhtml-6-6.6.sl6.noarch
Aug 24 14:24:35 Updated: 1:autocorr-de-4.2.8.2-11.el6.noarch
Aug 24 14:24:37 Updated: 1:libreoffice-langpack-de-4.2.8.2-11.el6.x86_64
Aug 24 14:24:46 Updated: firefox-38.2.0-4.el6_7.x86_64
Aug 24 14:24:47 Updated: rpm-build-4.8.0-47.el6.x86_64
Aug 24 14:24:48 Updated: ipa-client-3.0.0-47.el6.x86_64
Aug 24 14:25:12 Updated: selinux-policy-targeted-3.7.19-279.el6_7.4.noarch
Aug 24 14:25:18 Updated: db4-devel-4.7.25-19.el6_6.x86_64
Aug 24 14:25:19 Updated: 1:libreoffice-impress-4.2.8.2-11.el6.x86_64
Aug 24 14:25:19 Updated: 1:libreoffice-langpack-en-4.2.8.2-11.el6.x86_64
Aug 24 14:25:20 Updated: 1:libreoffice-xsltfilter-4.2.8.2-11.el6.x86_64
Aug 24 14:25:20 Updated: 1:libreoffice-math-4.2.8.2-11.el6.x86_64
Aug 24 14:25:22 Updated: 1:libreoffice-calc-4.2.8.2-11.el6.x86_64
Aug 24 14:25:24 Updated: 1:libreoffice-writer-4.2.8.2-11.el6.x86_64
Aug 24 14:25:25 Updated: 1:net-snmp-5.5-54.el6_7.1.x86_64
Aug 24 14:25:25 Updated: rpm-python-4.8.0-47.el6.x86_64
Aug 24 14:25:25 Updated: 1:mod_ssl-2.2.15-45.sl6.x86_64
Aug 24 14:25:27 Updated: httpd-manual-2.2.15-45.sl6.noarch
Aug 24 14:25:27 Updated: elfutils-devel-0.161-3.el6.x86_64
Aug 24 14:25:27 Updated: libuser-python-0.56.13-8.el6_7.x86_64
Aug 24 14:25:28 Updated: libxml2-python-2.7.6-20.el6.x86_64
Aug 24 14:25:29 Updated: python-devel-2.6.6-64.el6.x86_64
Aug 24 14:25:30 Updated: libxml2-devel-2.7.6-20.el6.x86_64
Aug 24 14:25:31 Updated: sqlite-devel-3.6.20-1.el6_7.2.x86_64
Aug 24 14:25:31 Updated: gdbm-devel-1.8.0-38.el6.x86_64
Aug 24 14:25:31 Updated: gnutls-utils-2.8.5-18.el6.x86_64
Aug 24 14:25:34 Updated: gnutls-devel-2.8.5-18.el6.x86_64
Aug 24 14:25:36 Updated: 1:java-1.6.0-openjdk-devel-1.6.0.36-1.13.8.1.el6_7.x86_64
Aug 24 14:25:37 Updated: libcurl-devel-7.19.7-46.el6.x86_64
Aug 24 14:25:38 Updated: sudo-1.8.6p3-19.el6.x86_64
Aug 24 14:25:49 Installed: kernel-devel-2.6.32-573.3.1.el6.x86_64
Aug 24 14:25:53 Updated: kernel-headers-2.6.32-573.3.1.el6.x86_64
Aug 24 14:25:54 Updated: 1:wpa_supplicant-0.7.3-6.el6.x86_64
Aug 24 14:25:55 Updated: gnutls-2.8.5-18.el6.i686
Aug 24 14:25:55 Updated: libxml2-2.7.6-20.el6.i686
Aug 24 14:25:56 Updated: elfutils-libelf-0.161-3.el6.i686

C.