I post the logfile generate in the syslog by automount in debug mode

Sep 23 19:43:28 nroc-linux automount[25168]: handle_packet: type = 3
Sep 23 19:43:28 nroc-linux automount[25168]: handle_packet_missing_indirect: 
token 307, name video, request pid 12909
Sep 23 19:43:28 nroc-linux automount[25168]: attempting to mount entry 
/home/nicolas/NASNRO/video
Sep 23 19:43:28 nroc-linux automount[25168]: lookup_mount: lookup(file): 
looking up video
Sep 23 19:43:28 nroc-linux automount[25168]: lookup_mount: lookup(file): video 
-> 
-fstype=cifs,credentials=/home/$USER/.creds-file,user=$USER,uid=$UID,gid=$GID 
://192.168.1.9/video
Sep 23 19:43:28 nroc-linux automount[25168]: parse_mount: parse(sun): expanded 
entry: -fstype=cifs,credentials=/home/root/.creds-file,user=root,uid=0,gid=0 
://192.168.1.9/video
Sep 23 19:43:28 nroc-linux automount[25168]: parse_mount: parse(sun): gathered 
options: fstype=cifs,credentials=/home/root/.creds-file,user=root,uid=0,gid=0
Sep 23 19:43:28 nroc-linux automount[25168]: parse_mount: parse(sun): 
dequote("://192.168.1.9/video") -> ://192.168.1.9/video
Sep 23 19:43:28 nroc-linux automount[25168]: parse_mount: parse(sun): core of 
entry: 
options=fstype=cifs,credentials=/home/root/.creds-file,user=root,uid=0,gid=0, 
loc=://192.168.1.9/video
Sep 23 19:43:28 nroc-linux automount[25168]: sun_mount: parse(sun): mounting 
root /home/nicolas/NASNRO, mountpoint video, what //192.168.1.9/video, fstype 
cifs, options credentials=/home/root/.creds-file,user=root,uid=0,gid=0
Sep 23 19:43:28 nroc-linux automount[25168]: do_mount: //192.168.1.9/video 
/home/nicolas/NASNRO/video type cifs options 
credentials=/home/root/.creds-file,user=root,uid=0,gid=0 using module generic
Sep 23 19:43:28 nroc-linux automount[25168]: mount_mount: mount(generic): 
calling mkdir_path /home/nicolas/NASNRO/video
Sep 23 19:43:28 nroc-linux automount[25168]: mount_mount: mount(generic): 
calling mount -t cifs -o 
credentials=/home/root/.creds-file,user=root,uid=0,gid=0 //192.168.1.9/video 
/home/nicolas/NASNRO/video
Sep 23 19:43:28 nroc-linux automount[25168]: >> error 2 (No such file or 
directory) opening credential file /home/root/.creds-file
Sep 23 19:43:28 nroc-linux automount[25168]: mount(generic): failed to mount 
//192.168.1.9/video (type cifs) on /home/nicolas/NASNRO/video
Sep 23 19:43:28 nroc-linux automount[25168]: dev_ioctl_send_fail: token = 307
Sep 23 19:43:28 nroc-linux automount[25168]: failed to mount 
/home/nicolas/NASNRO/video
Sep 23 19:43:28 nroc-linux automount[25168]: handle_packet: type = 3
Sep 23 19:43:28 nroc-linux automount[25168]: handle_packet_missing_indirect: 
token 308, name video, request pid 12909
Sep 23 19:43:28 nroc-linux automount[25168]: dev_ioctl_send_fail: token = 308
Sep 23 19:43:28 nroc-linux automount[25168]: st_expire: state 1 path 
/home/nicolas/NASNRO
Sep 23 19:43:28 nroc-linux automount[25168]: expire_proc: exp_proc = 
139912387811072 path /home/nicolas/NASNRO
Sep 23 19:43:28 nroc-linux automount[25168]: expire_cleanup: got thid 
139912387811072 path /home/nicolas/NASNRO stat 0
Sep 23 19:43:28 nroc-linux automount[25168]: expire_cleanup: sigchld: exp 
139912387811072 finished, switching from 2 to 1
Sep 23 19:43:28 nroc-linux automount[25168]: st_ready: st_ready(): state = 2 
path /home/nicolas/NASNRO


--------

The configuration files are (if needed to reproduce this testcase):

file /etc/auto.master :

/home/nicolas/NASNRO /etc/auto.nasnro --ghost,--timeout=30


file /etc/auto.nasnro :

video -fstype=cifs,credentials=/home/$USER/.creds-
file,user=$USER,uid=$UID,gid=$GID ://192.168.1.9/video


** Changed in: linux (Ubuntu)
       Status: Incomplete => Confirmed

-- 
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/1626749

Title:
  autofs set $USER to "root" instead of current user

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Since last kernel upgrade from 4.4.0-36 to 4.4.0-38 automount failed to mount 
remote smb FS.
  The configuration file use $USER, $UID and $GID variables :
  i.e. :
  music 
-fstype=cifs,credentials=/home/$USER/.creds-file,user=$USER,uid=$UID,gid=$GID 
://192.168.1.9/music

  When a user account try to mount the FS, automount complain :

   >> error 2 (No such file or directory) opening credential file
  /home/root/.creds-file

  $USER, $UID and $GID are now sets with root variables instead of user
  account variables

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: autofs 5.1.1-1ubuntu3
  ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
  Uname: Linux 4.4.0-38-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  Date: Thu Sep 22 23:17:27 2016
  ExecutablePath: /usr/sbin/automount
  InstallationDate: Installed on 2016-02-07 (228 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  ProcEnviron:
   PATH=(custom, no user)
   LANG=fr_FR.UTF-8
  SourcePackage: autofs
  UpgradeStatus: Upgraded to xenial on 2016-04-28 (147 days ago)
  --- 
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  nicolas    1941 F.... pulseaudio
  DistroRelease: Ubuntu 16.04
  HibernationDevice: RESUME=UUID=1ad9a17c-8b27-4436-a024-6c9ae99a5b87
  InstallationDate: Installed on 2016-02-07 (228 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  MachineType: Sony Corporation SVS1511R9ES
  Package: linux (not installed)
  ProcEnviron:
   LANGUAGE=fr_FR
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-38-generic.efi.signed 
root=UUID=df815dd3-2e1b-42d3-aef8-1823eb5d4f75 ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-38-generic N/A
   linux-backports-modules-4.4.0-38-generic  N/A
   linux-firmware                            1.157.3
  Tags:  xenial
  Uname: Linux 4.4.0-38-generic x86_64
  UpgradeStatus: Upgraded to xenial on 2016-04-28 (147 days ago)
  UserGroups:
   
  _MarkForUpload: True
  dmi.bios.date: 03/30/2012
  dmi.bios.vendor: Insyde Corp.
  dmi.bios.version: R0140C5
  dmi.board.asset.tag: N/A
  dmi.board.name: VAIO
  dmi.board.vendor: Sony Corporation
  dmi.board.version: N/A
  dmi.chassis.asset.tag: N/A
  dmi.chassis.type: 10
  dmi.chassis.vendor: Sony Corporation
  dmi.chassis.version: N/A
  dmi.modalias: 
dmi:bvnInsydeCorp.:bvrR0140C5:bd03/30/2012:svnSonyCorporation:pnSVS1511R9ES:pvrC60AGQAL:rvnSonyCorporation:rnVAIO:rvrN/A:cvnSonyCorporation:ct10:cvrN/A:
  dmi.product.name: SVS1511R9ES
  dmi.product.version: C60AGQAL
  dmi.sys.vendor: Sony Corporation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1626749/+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

Reply via email to