All of lore.kernel.org
 help / color / mirror / Atom feed
* Changes to special character escaping?
@ 2017-04-07 22:56 Mark Fox
  2017-04-10  7:49 ` Ian Kent
  2017-04-10  8:07 ` Ian Kent
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Fox @ 2017-04-07 22:56 UTC (permalink / raw)
  To: autofs

Has something changed regarding escaping of special characters? The
methods used to deal with special characters in maps that are included
in distributions (ie. Ubuntu 16.04.2, so automount 5.1.1) no longer
seem to work.

Without special characters, autofs works wonderfully on all sorts of
CIFS shares. However, with a CIFS administrative share (C$), or a
share with an ampersand, I've had no luck. The shares work fine
through smbclient or when mounted by hand, but I haven't stumbled onto
how to get it working under autofs.

My problem setup is simple:

--- /etc/auto.master ---
+auto.master
/cifs /etc/auto.cifs --timeout=300 --ghost
------

--- /etc/auto.cifs ---
CDC1 -fstype=cifs,rw,noperm,credentials=/etc/creds/CDC1 \
     "/C$" "://CDC1/C\$"
------

It doesn't work as configured above. The output from 'automount -f -v' is:

------
attempting to mount entry /cifs/CDC1/C$
>> Retrying with upper case share name
>> mount error(6): No such device or address
>> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount(generic): failed to mount //CDC1/C\$ (type cifs) on /cifs/CDC1/C$
failed to mount /cifs/CDC1/C$
------

If the escaping of '$' is removed from auto.cifs, the last two lines
of output change to:

------
mount(generic): failed to mount //CDC1/C (type cifs) on /cifs/CDC1/C$
failed to mount /cifs/CDC1/C$
------

More slashes don't help.

What is the correct way, if any, to escape a special character in the
situation I've outlined?

This problem aside, autofs has allowed us to greatly simplify the
interaction between our backup system and Windows servers. A heartfelt
thank-you to everyone involved.


Mark
--
To unsubscribe from this list: send the line "unsubscribe autofs" in

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-10  8:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-07 22:56 Changes to special character escaping? Mark Fox
2017-04-10  7:49 ` Ian Kent
2017-04-10  8:07 ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.