[Bug 1680224] Re: auto.smb fails on Windows administrative shares

Andreas Hasenack andreas at canonical.com
Wed Jun 6 17:20:13 UTC 2018

I can't get it to work without also removing the quoting in the awk script in /etc/auto.smb, i.e.:
@@ -76,7 +76,7 @@
 		  loc = $2
 		  # Enclose mount dir and location in quotes
 		  # Double quote "$" in location as it is special
-		  gsub(/\$$/, "\\$", loc);
+		  #gsub(/\$$/, "\\$", loc);
 		  print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""

and I'm a bit afraid of doing that. I wouldn't want to have the shell suddenly expanding variables or even executing commands there $(), depending on how mount.cifs is called of course.

tl;dr to get C$ mounted I need to apply both patches and change auto.smb
like above.

You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.

  auto.smb fails on Windows administrative shares

To manage notifications about this bug go to:

More information about the Ubuntu-server-bugs mailing list