autofs/automount and admin shares

Admin shares are those ones that end in $ and are available “automatically” from Windows. I tried to add a /etc/auto.misc entry to auto-mount one of them, but it was attempting to mount share “c” instead of “c$”

The “trick” wasn’t to add quoting (my first guess) but instead a backslash to escape the $ (presumably they’re doing variable expansion?)

Example line:

jessica -fstype=smbfs,ro,credentials=/root/.windows-admin-creds ://jessica/c\$

Advertisements