automount and auto.smb not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs5 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: autofs5
automount setup:
auto.master:
/home/tps/fritz /etc/auto.smb -fritz.box --ghost
root@aesculap:~# /usr/sbin/automount -f -d /etc/auto.master
Starting automounter version 5.0.4, master map /etc/auto.master
using kernel protocol version 5.01
lookup_
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /home/tps/fritz
.
master_do_mount: mounting /home/tps/fritz
automount_
lookup_
parse_init: parse(sun): init gathered global options: fritz,box
mounted indirect on /home/tps/fritz with timeout 300, freq 75 seconds
st_ready: st_ready(): state = 0 path /home/tps/fritz
ghosting enabled
Now trying list directory contents:
tps@aesculap:~$ ll /home/tps/fritz/
total 4
drwxr-xr-x 2 root root 0 May 13 10:49 ./
drwxr-xr-x 74 tps tps 4096 May 13 10:49 ../
The log shows:
st_expire: state 1 path /home/tps/fritz
expire_proc: exp_proc = 140273256011536 path /home/tps/fritz
expire_cleanup: got thid 140273256011536 path /home/tps/fritz stat 0
expire_cleanup: sigchld: exp 140273256011536 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /home/tps/fritz
But calling /etc/auto.smb directly:
root@aesculap:~# /etc/auto.smb fritz.box
-fstype=
Afaik /home/tps/fritz should hold:
PatriotMemory-01
at least.
Some points:
- auto.smb isn't really documented. Searching google just brings up various cries for help!
- it's unclear how I have to code the host in auto.master. Use a "-" or not? I've tried both versions without any change.
- I could not figure out a way to make automount exhaust how it will call auto.smb and with which command line options.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: autofs 5.0.4-3.1ubuntu5
Uname: Linux 2.6.34-rc7 x86_64
Architecture: amd64
Date: Thu May 13 10:45:19 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20091230)
ProcEnviron:
PATH=(custom, user)
LANG=de_DE.utf8
SHELL=/bin/bash
SourcePackage: autofs5
Related branches
Changed in autofs5 (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
I use the line "/lan /etc/auto.smb -gid=1000,uid=1000" to call auto.smb and mount the shares as the primary user. I found that I had to 'borrow' Karmic files when I upgraded to Lucid as the /etc/auto.* installed with Lucid didn't work. Rather than chase down the problem, I just restored the previous auto.master and auto.smb to get things going.
I was curious as to why the smb sample line was removed from auto.master.
One thing I need to check is if the root permissions bug, the one that requires the gid, uid options, is still there. Without those options, the shares get mounted unavailable to users.
The new auto.smb does not seem to use the credentials file option like the old one does. You can see in auto.smb where the options setup line is but I haven't tried using that for the uid,gid options, just mount options (like the credentials file for login). I note that there are some variations of auto.smb around for problems like these.