Hi,

> automount[18849]: cache_ghost: entry in file:/etc/auto.direct not valid map 
> format, key /...
> 
> It appears that someone was trying sanity tests (disallow /. and /..),
> but didn't contemplate their being anything after /.. (like another .,
> or any other character)...
> 
> Clearly, the length of the key must also be taken into consideration !

no, this is in fact a safety measure: from the README.direct of autofs v4:

] NOTE: Due to current design limitations, direct maps will take over an
]   entire directory hierarchy.  What this means is, if your direct map key
]   is /usr/share/bilbo, then /usr will become an automount mount point,
]   mounting over the existing /usr.

And adding a direct autofs mountpoint '/...' would obscure everything else
below '/', which is quite fatal. (The check that emits the above warning
simply checks that there is a slash later on in the path.)

I suggest moving on to autofs v5 which can handle direct mounts without
obscuring the rest of the filesystem.


Regards,

Jan

Attachment: signature.asc
Description: Digital signature

Reply via email to