Unmet dependencies or better documentation needed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
The autofs package seems to rely on samba-common when trying to mount smb shares. This was pretty obvious, although some documentation would have been nice. A bigger problem is that is also relies on smbclient, which is far less obvious, and should be clearly documented somewhere.
The auto.smb file mentions that "smbclient -L" is needed to obtain a list of shares, but doesn't specify that:
a. It isn't installed by default, or
b. It's needed even if you don't plan on browsing shares.
I would recommend adding this in caps near the top of the auto.smb file:
# PLEASE INSTALL THE smbclient PACKAGE TO USE SMB SHARES WITH AUTOFS. YOU CAN DO THIS BY RUNNING
# sudo apt install smbclient.
You may be good if you don't use caps as long as you put it near the top of the file.
BONUS POINTS if you get autofs/automount to display meaningful error messages. Even with -d it didn't mention smbclient.
A final thing, since you're here. Autofs does not work with smb mounts the way it does with, say, nfs. The auto.smb script works just fine after you install the dependencies, but a map file with mount options fails every time. This is what I used (note, credentials are the same as for the auto.smb script):
auto.master:
/mnt/medianas /etc/auto.
auto.smb.medianas:
media01 -fstype=
media02 -fstype=
Automount startup includes:
master_do_mount: mounting /mnt/medianas
automount_
lookup_
do_init: parse(sun): init gathered global options: (null)
mounted indirect on /mnt/medianas with timeouts disabled
st_ready: st_ready(): state = 0 path /mnt/medianas
Error from automount:
handle_packet: type = 3
handle_
attempting to mount entry /mnt/medianas/
lookup_mount: lookup(program): looking up media01
lookup(program): lookup for media01 failed
dev_ioctl_
failed to mount /mnt/medianas/
handle_packet: type = 3
handle_
dev_ioctl_
In any case, thanks, and I hope this helps.
tags: | removed: server-triage-discuss |
Thank you for taking the time to report this bug Jason!
What version of Ubuntu are you seeing this issue on?