以下に含まれるその他のドキュメントサポート リソース | PDF 文書ファイルをダウンロードする (1868 KB)
Autofs ReferenceThe rest of this chapter describes more advanced autofs features and topics. MetacharactersAutofs recognizes some characters as having a special meaning. Some are used for substitutions, some to protect other characters from the autofs map parser. Ampersand (&)If you have a map with many subdirectories specified, as in the following, consider using string substitutions.
You can use the ampersand character (&) to substitute the key wherever it appears. If you use the ampersand, the previous map changes to:
You could also use key substitutions in a direct map, in situations like this:
which you can also write as:
Notice that the ampersand substitution uses the whole key string, so if the key in a direct map starts with a / (as it should), the slash is carried over, and you could not do, for example, the following:
because autofs would interpret it as:
Asterisk (*)You can use the universal substitute character, the asterisk (*), to match any key. You could mount the /export file system from all hosts through this map entry.
Each ampersand is substituted by the value of any given key. Autofs interprets the asterisk as an end-of-file character. Special CharactersIf you have a map entry that contains special characters, you might have to mount directories that have names which confuse the autofs map parser. The autofs parser is sensitive to names containing colons, commas, spaces, and so on. These names should be enclosed in double quotations, as in the following:
|
||||||||