You can easily check this bug by: 1 setting logging in autofs.conf to 'debug' 2 create a simple autofs map:
/etc/auto.master: /mnt/test auto.test /etc/auto.test: root -fstype=autofs,uid=$UID,gid=$GID :/dev/sda1 3 look at journalctl -xfe --unit autofs output while with a non-root user trying to navigate to /mnt/test/root. Especially the log lines with parse_mount: parse(sun). -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1629204 Title: Autofs parameter substitution broken in kernel 4.4.0-38 and 4.4.0-40 Status in linux package in Ubuntu: New Bug description: Hello, I have run into a bug relating autofs's parameter substitution (e.g. UID, GID, etc) with kernel versions 4.4.0-38 and proposed 4.4.0-40. Kernel version 4.4.0-28 does things correctly but testing intermediate kernel versions is hard due to earlier bugs related with fs's. Incorrect parameter substitution makes CIFS mounting with variable credentials impossible. Wat was expected: $UID in autofs map are substituted by the uid of the user that starts the auto-mounting process. What actually happens: Root's uid (0) is substituted instead. This ill parameter substitution likely caused by recent fixes resolving permissions problems for nfs/cifs mounts and dfs referrals (#1626112 and #1612135). And possibly the fix 'fs: Call d_automount with the filesystems creds' but that is a wild guess. Furthermore; playing with the force_standard_program_map_env settings in autofs.conf and prefixing variables with 'AUTOFS_' does not solve anything. Yours kindly, Chris ---- Additional info ---- lsb_release -rd Description: Ubuntu 16.04.1 LTS Release: 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1629204/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp