[Bug 1680224] Re: auto.smb fails on Windows administrative shares
Based on case history, to fully address this to all still supported Ubuntu releases: autofs | 5.1.2-1ubuntu3 | bionic | autofs | 5.1.2-1ubuntu3.1 | bionic-updates | autofs | 5.1.2-4ubuntu2 | disco | autofs | 5.1.5-1ubuntu1 | eoan| autofs | 5.1.6-2 | focal | we need (possibly): Ubuntu Bionic: ef48867 autofs-5.1.2 - increase worker thread per-thread stack size 95dafa1 autofs-5.1.2 - fix offset mount location multiple expansion 2d8d7d0 autofs-5.1.2 - use malloc for expanded map location Ubuntu Eoan: a change to /etc/auto.smb Ubuntu Focal: a change to /etc/auto.smb I have done the Bionic SRU merge attempt: https://code.launchpad.net/~rafaeldtinoco/ubuntu/+source/autofs/+git/autofs/+merge/382338 and asked @ahasenack to review it. -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1680224] Re: auto.smb fails on Windows administrative shares
** Also affects: autofs (Ubuntu Eoan) Importance: Undecided Status: New ** Also affects: autofs (Ubuntu Bionic) Importance: Undecided Status: New ** Changed in: autofs (Ubuntu Bionic) Status: New => Confirmed ** Changed in: autofs (Ubuntu Eoan) Status: New => Confirmed ** Changed in: autofs (Ubuntu Bionic) Importance: Undecided => Medium ** Changed in: autofs (Ubuntu Eoan) Importance: Undecided => Medium ** Changed in: autofs (Ubuntu) Status: Triaged => Confirmed -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1680224] Re: auto.smb fails on Windows administrative shares
I haven't revisited this yet due to lack of time. Whoever gets to this next should check the current version of autofs, and also the list of available patches for the version shipped in older ubuntu releases. -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1680224] Re: auto.smb fails on Windows administrative shares
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); 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. 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1680224] Re: auto.smb fails on Windows administrative shares
@mark-fox, were those two patches the only changes you needed, or was the change to the awk script (removing the quoting of $) also needed? -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1680224] Re: auto.smb fails on Windows administrative shares
ok, the worker-thread patch I think was just a case of an incorrect patch description in lp. -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1680224] Re: auto.smb fails on Windows administrative shares
And https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v5/patches-5.1.3/autofs-5.1.2 -fix-offset-mount-location-multiple-expansion.patch, mentioned in comment #10 too -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1680224] Re: auto.smb fails on Windows administrative shares
I believe these are the upstream patches: https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v5/patches-5.1.3/autofs-5.1.2-use-malloc-for-expanded-map-location.patch https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v5/patches-5.1.3/autofs-5.1.2-increase-worker-thread-per-thread-stack-size.patch -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs