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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1626749
Title:
autofs set $USER to "root" instead of current user
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1626749/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs