I've retested this with autofs 5.1.5 (eoan), and @ahasenack's suggested
change to auto.smb is definitely required. With the $ escaped, mount
fails as it's given a literal \$ in the path.
For older versions of autofs, the following workaround works (tested with
autofs 5.1.2 on bionic):
/etc/default/autofs:
# Use OPTIONS to add automount(8) command line options that
# will be used when the daemon is started.
#
OPTIONS="-Ddollar='$'"
/etc/auto.smb:
@@ -76,7 +76,7 @@
loc = $2
# Enclose mount dir and location in quotes
# Double quote "$" in location as it is special
- gsub(/\$$/, "\\$", loc);
+ gsub(/\$$/, "$dollar", loc);
gsub(/\&/,"\\\\&",loc)
print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
}
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1680224
Title:
auto.smb fails on Windows administrative shares
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1680224/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs