OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / autofs / draft / man5 / autofs.5
1 .\" t
2 .\" $Id: autofs.5,v 1.8 2004/05/18 12:22:40 raven Exp $
3 .\"
4 .\" Japanese Version Copyright (c) 2005 Yuichi SATO
5 .\"         all rights reserved.
6 .\" Translated Sun Jul  3 04:41:33 JST 2005
7 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
8 .\"
9 .\"O .TH AUTOFS 5 "6 Apr 1998"
10 .TH AUTOFS 5 "14 Jan 2000"
11 .\"O .SH NAME
12 .SH Ì¾Á°
13 .\"O autofs \- Format of the automounter maps
14 autofs \- ¥ª¡¼¥È¥Þ¥¦¥ó¥È¥·¥¹¥Æ¥à¥Þ¥Ã¥×¤Î½ñ¼°
15 .\"O .SH "DESCRIPTION"
16 .SH ÀâÌÀ
17 .\"O The automounter maps are files or NIS maps referred to by the master map of
18 .\"O the automounter (see
19 .\"O .BR auto.master (5)).
20 ¥ª¡¼¥È¥Þ¥¦¥ó¥È¥·¥¹¥Æ¥à¥Þ¥Ã¥×¤Ï¡¢¥ª¡¼¥È¥Þ¥¦¥ó¥È¥·¥¹¥Æ¥à¤Î¥Þ¥¹¥¿¥Þ¥Ã¥×
21 .RB ( auto.master (5)
22 ¤ò»²¾È) ¤Ë¤è¤Ã¤Æ»²¾È¤µ¤ì¤ë
23 ¥Õ¥¡¥¤¥ë¤Þ¤¿¤Ï NIS ¥Þ¥Ã¥×¤Ç¤¢¤ë¡£
24 .\"O The automounter maps describe how file systems below the mountpoint of the map
25 .\"O (given in the auto.master file) are to be mounted.  This describes the
26 .\"O .B sun
27 .\"O map format; if another map format is specified (e.g. \fBhesiod\fP),
28 .\"O this documentation does not apply.
29 ¥ª¡¼¥È¥Þ¥¦¥ó¥È¥·¥¹¥Æ¥à¥Þ¥Ã¥×¤Ï (auto.master ¥Õ¥¡¥¤¥ë¤Ç»ØÄꤵ¤ì¤ë) 
30 ¥Þ¥Ã¥×¤Î¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È°Ê²¼¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¤É¤Î¤è¤¦¤Ë
31 ¥Þ¥¦¥ó¥È¤µ¤ì¤ë¤«¤òµ­½Ò¤¹¤ë¡£
32 ¤³¤Î man ¥Ú¡¼¥¸¤Ç¤Ï¡¢
33 .B sun
34 ¥Þ¥Ã¥×¤Î½ñ¼°¤Ë¤Ä¤¤¤Æµ­½Ò¤·¤Æ¤¤¤ë¡£
35 ¾¤Î¥Þ¥Ã¥×½ñ¼° (Î㤨¤Ð \fBhesiod\fP) ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
36 ¤³¤Î man ¥Ú¡¼¥¸¤ÏŬÍѤǤ­¤Ê¤¤¡£
37 .\"O Maps can be changed on the fly and the automouter will recognize those
38 .\"O changes on the next operation it performs on that map.  This is not
39 .\"O true for the
40 .\"O .B auto.master
41 .\"O map!
42 ¥Þ¥Ã¥×¤Ï¨»þ¤ËÊѹ¹²Äǽ¤Ç¡¢¥ª¡¼¥È¥Þ¥¦¥ó¥È¥·¥¹¥Æ¥à¤Ï¤½¤Î¥Þ¥Ã¥×¤ËÂФ·¤Æ
43 ¼¡¤ÎÁàºî¤¬¹Ô¤ï¤ì¤¿¤È¤­¤ËÊѹ¹¤òǧ¼±¤Ç¤­¤ë¡£
44 ¤³¤ì¤Ï
45 .B auto.master
46 ¥Þ¥Ã¥×¤Ë¤Ä¤¤¤Æ¤ÏÅö¤Æ¤Ï¤Þ¤é¤Ê¤¤¡£
47 .\"O .SH "FORMAT"
48 .SH ½ñ¼°
49 .\"O This is a description of the text file format.  Other methods of specifying
50 .\"O these files may exist.  All empty lines or lines beginning with # are
51 .\"O ignored. The basic format of one line in such maps is:
52 ¤³¤ì¤Ï¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤Î½ñ¼°¤ÎÀâÌÀ¤Ç¤¢¤ë¡£
53 ¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤ò»ØÄꤹ¤ëÊ̤ÎÊýË¡¤â¤¢¤ë¡£
54 ¶õ¹Ô¤È # ¤Ç»Ï¤Þ¤ë¹Ô¤ÏÁ´¤Æ̵»ë¤µ¤ì¤ë¡£
55 ¥Þ¥Ã¥×Æâ¤Î 1 ¹Ô¤Î´ðËÜŪ¤Ê½ñ¼°¤Ï¡¢°Ê²¼¤ÎÄ̤ê¤Ç¤¢¤ë:
56 .P
57 .BI "key [" -options "] location"
58
59 .SS key
60 .\"O For indirect mounts this is the part of the pathname between the mountpointi
61 .\"O and the path into the filesystem mounted. Usually you can think about the
62 .\"O key as a subdirectory name below the mountpoint.
63 ´ÖÀÜ¥Þ¥¦¥ó¥È¤Î¾ì¹ç¡¢¤³¤ì¤Ï¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤È
64 ¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Ë¤¢¤ë¥Ñ¥¹¤È¤Î´Ö¤Î¥Ñ¥¹Ì¾¤Î°ìÉôʬ¤Ç¤¢¤ë¡£
65 ¤³¤Î¥­¡¼¤ÏÄ̾ï¤Ï¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È°Ê²¼¤Î¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê̾¤È¹Í¤¨¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
66
67 .\"O For direct mounts this is the full path of the mountpoint. This map is always
68 .\"O associated with the /- mountpoint in the master map. 
69 ľÀÜ¥Þ¥¦¥ó¥È¤Î¾ì¹ç¡¢¤³¤ì¤Ï¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤Î´°Á´¤Ê¥Ñ¥¹¤Ç¤¢¤ë¡£
70 ¤³¤Î¥Þ¥Ã¥×¤Ï¥Þ¥¹¥¿¥Þ¥Ã¥×¤Ë¤ª¤±¤ë /- ¤È¤¤¤¦¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤È
71 ¾ï¤Ë´ØÏ¢¤Å¤±¤é¤ì¤Æ¤¤¤ë¡£
72
73 .SS options
74 .\"O Options are optional.  Options can also be given in the 
75 .\"O .B auto.master
76 .\"O file in which case both values are cumulative (this is a difference
77 .\"O from SunOS).  The options are a list of comma separated options as
78 .\"O customary for the
79 .\"O .BR mount (8)
80 .\"O command. There are two special options
81 .\"O .I -fstype=
82 .\"O used to specify a filesystem type if the filesystem is not of the default
83 .\"O NFS type.  This option is processed by the automounter and not by the mount
84 .\"O command.
85 options ¤Ï¸ºß¤·¤Æ¤â¤·¤Ê¤¯¤Æ¤â¤è¤¤¡£
86 options ¤Ï
87 .B auto.master
88 ¥Õ¥¡¥¤¥ë¤Ç¤â»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
89 ξÊý¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢Î¾Êý¤ÎÃͤ¬Â­¤·¹ç¤ï¤µ¤ì¤ë
90 (¤³¤ì¤¬ SunOS ¤È¤Î°ã¤¤¤Ç¤¢¤ë)¡£
91 options ¤Ï¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿¥ª¥×¥·¥ç¥ó¤Î¥ê¥¹¥È¤Ç¡¢
92 .BR mount (8)
93 ¥³¥Þ¥ó¥É¤ËÄ̾ïÍ¿¤¨¤Æ¤¤¤ë¤â¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
94 2 ¤Ä¤ÎÆüì¤Ê¥ª¥×¥·¥ç¥ó¤¬¤¢¤ë¡£
95 .I -fstype=
96 ¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¥Ç¥Õ¥©¥ë¥È¤Î
97 NFS ¥¿¥¤¥×¤Ç¤Ê¤¤¾ì¹ç¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¿¥¤¥×¤ò»ØÄꤹ¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë¡£
98 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï mount ¥³¥Þ¥ó¥É¤Ç¤Ï¤Ê¤¯¡¢¥ª¡¼¥È¥Þ¥¦¥ó¥È¥·¥¹¥Æ¥à¤Ç½èÍý¤µ¤ì¤ë¡£
99 .\"O .I -strict
100 .\"O is used to treat errors when mounting file systems as fatal. This is important when
101 .\"O multiple file systems should be mounted (`multimounts'). If this option
102 .\"O is given, no file system is mounted at all if at least one file system
103 .\"O can't be mounted.
104 .I -strict
105 ¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤¹¤ë¤È¤­¤Î¥¨¥é¡¼¤ò
106 Ã×̿Ū¤Ê¤â¤Î¤È¤·¤Æ°·¤¦¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
107 ¤³¤ì¤ÏÊ£¿ô¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤ë
108 (`multimounts') »þ¤Ë½ÅÍפǤ¢¤ë¡£
109 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
110 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ 1 ¤Ä¤Ç¤â¥Þ¥¦¥ó¥È¤Ç¤­¤Ê¤¤¾ì¹ç¤Ï¡¢
111 Á´¤Æ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤Ê¤¤¡£
112
113 .SS location
114 .\"O The location specifies from where the file system is to be mounted.  In the
115 .\"O most cases this will be an NFS volume and the usual notation
116 .\"O .I host:pathname
117 .\"O is used to indicate the remote filesystem and path to be mounted.  If
118 .\"O the filesystem to be mounted begins with a / (such as local
119 .\"O .I /dev
120 .\"O entries or smbfs shares) a : needs to be prefixed (e.g. 
121 .\"O .IR :/dev/sda1 ).
122 location ¤Ï¤É¤³¤«¤é¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤¹¤ë¤«¤ò»ØÄꤹ¤ë¡£
123 ¿¤¯¤Î¾ì¹ç¡¢¤³¤ì¤Ï NFS ¥Ü¥ê¥å¡¼¥à¤ÇÄ̾ï¤Ï
124 .I host:pathname
125 ¤È¤¤¤¦µ­Ë¡¤¬»È¤ï¤ì¡¢
126 ¥ê¥â¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤È¥Þ¥¦¥ó¥È¤µ¤ì¤ë¥Ñ¥¹¤ò¼¨¤¹¡£
127 ¥Þ¥¦¥ó¥È¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ (¥í¡¼¥«¥ë¤Î
128 .I /dev
129 ¥¨¥ó¥È¥ê¤ä smbfs ¶¦Í­¤Î¤è¤¦¤Ë) / ¤Ç»Ï¤Þ¤ë¾ì¹ç¤Ï¡¢
130 : ¤òÁ°¤ËÉÕ¤±¤ëɬÍפ¬¤¢¤ë (Îã:
131 .IR :/dev/sda1 )¡£
132 .\"O .SH EXAMPLE
133 .SH Îã
134 .sp
135 .RS +.2i
136 .ta 1.0i 3.0i
137 .nf
138 kernel  -ro,soft,intr   ftp.kernel.org:/pub/linux
139 boot    -fstype=ext2    :/dev/hda1
140 windoze -fstype=smbfs   ://windoze/c
141 removable       -fstype=ext2    :/dev/hdd
142 cd      -fstype=iso9660,ro      :/dev/hdc
143 floppy  -fstype=auto    :/dev/fd0
144 server  -rw,hard,intr   / -ro myserver.me.org:/ \\
145                         /usr myserver.me.org:/usr \\
146                         /home myserver.me.org:/home
147 .fi
148 .RE
149 .sp
150 .\"O In the first line we have a NFS remote mount of the kernel directory on
151 .\"O .IR ftp.kernel.org .
152 1 ¹ÔÌܤǤÏ
153 .I ftp.kernel.org
154 ¤Ë¤¢¤ë¥«¡¼¥Í¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î NFS ¥ê¥â¡¼¥È¥Þ¥¦¥ó¥È¤ò»ØÄꤷ¤Æ¤¤¤ë¡£
155 .\"O This is mounted read-only.  The second line mounts an ext2 volume on a
156 .\"O local ide drive.  The third makes a share exported from a Windows
157 .\"O machine available for automounting.  The rest should be fairly
158 .\"O self-explanatory. The last entry (the last three lines) is an example
159 .\"O of a multi-map (see below).
160 ¤³¤ì¤ÏÆɤ߹þ¤ßÀìÍѤǥޥ¦¥ó¥È¤µ¤ì¤ë¡£
161 2 ¹ÔÌÜ¤Ç¤Ï¥í¡¼¥«¥ë¤Î ide ¥É¥é¥¤¥Ö¾å¤Î ext2 ¥Ü¥ê¥å¡¼¥à¤ò¥Þ¥¦¥ó¥È¤·¤Æ¤¤¤ë¡£
162 3 ¹ÔÌܤϠWindows ¥Þ¥·¥ó¤Ç¶¦Í­¤Ç¸ø³«¤µ¤ì¤Æ¤¤¤ë¥É¥é¥¤¥Ö¤Î
163 ¼«Æ°¥Þ¥¦¥ó¥È¤ò²Äǽ¤Ë¤·¤Æ¤¤¤ë¡£
164 »Ä¤ê¤ÏÁ´¤¯ÀâÌÀ¤ÎɬÍפ¬¤Ê¤¤¤À¤í¤¦¡£
165 ºÇ¸å¤Î¥¨¥ó¥È¥ê (ºÇ¸å¤Î 3 ¹Ô) ¤Ï¥Þ¥ë¥Á¥Þ¥Ã¥× (²¼µ­¤ò»²¾È) ¤ÎÎã¤Ç¤¢¤ë¡£
166
167 .\"O If you use the automounter for a filesystem without access permissions
168 .\"O (like \fBvfat\fP), users usually can't write on such a filesystem
169 .\"O because it is mounted as user \fBroot\fP.
170 (\fBvfat\fP ¤Î¤è¤¦¤Ë) ¥¢¥¯¥»¥¹µö²Ä¤ò»ý¤¿¤Ê¤¤¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÂФ·¤Æ
171 ¥ª¡¼¥È¥Þ¥¦¥ó¥È¥·¥¹¥Æ¥à¤ò»È¤Ã¤¿¾ì¹ç¤Ï¡¢
172 \fBroot\fP ¥æ¡¼¥¶¤È¤·¤Æ¥Þ¥¦¥ó¥È¤µ¤ì¤ë¤Î¤Ç¡¢
173 (°ìÈ̤Î) ¥æ¡¼¥¶¤ÏÄ̾ï¤Ï¤½¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë½ñ¤­¹þ¤à¤³¤È¤¬¤Ç¤­¤Ê¤¤¡£
174 .\"O You can solve this problem by passing the option \fIgid=<gid>\fP,
175 .\"O e. g. \fIgid=floppy\fP. The filesystem is then mounted as group
176 .\"O \fBfloppy\fP instead of \fBroot\fP. Then you can add the users
177 .\"O to this group, and they can write to the filesystem. Here's an
178 .\"O example entry for an autofs map:
179 ¤³¤ÎÌäÂê¤Ï (\fIgid=floppy\fP ¤Î¤è¤¦¤Ë)
180 ¥ª¥×¥·¥ç¥ó \fIgid=<gid>\fP ¤òÅϤ¹¤³¤È¤Ç²ò·è¤Ç¤­¤ë¡£
181 ¤½¤¦¤¹¤ë¤È¡¢¤½¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï \fBroot\fP ¤Ç¤Ï¤Ê¤¯
182 ¥°¥ë¡¼¥× \fBfloppy\fP ¤Ç¥Þ¥¦¥ó¥È¤µ¤ì¤ë¡£
183 ¤½¤·¤Æ¥æ¡¼¥¶¤ò¤½¤Î¥°¥ë¡¼¥×¤ËÄɲ乤뤳¤È¤Ç¡¢
184 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë½ñ¤­¹þ¤à¤³¤È¤¬¤Ç¤­¤ë¡£
185 °Ê²¼¤Ï autofs ¥Þ¥Ã¥×¤Î¥¨¥ó¥È¥ê¤ÎÎã¤Ç¤¢¤ë:
186 .sp
187 .RS +.2i
188 .ta 1.0i 3.0i
189 .nf
190 floppy-vfat  -fstype=vfat,sync,gid=floppy,umask=002  :/dev/fd0
191 .fi
192 .RE
193 .sp
194 .\"O .SH FEATURES
195 .SH µ¡Ç½
196 .\"O .SS Map Key Substitution
197 .SS ¥Þ¥Ã¥×¤Î¥­¡¼¤ÎÃÖ´¹
198 .\"O An & character in the
199 .\"O .B location
200 .\"O is expanded to the value of the 
201 .\"O .B key
202 .\"O field that matched the line (which probably only makes sense together with
203 .\"O a wildcard key).
204 .B location
205 ¤Ë¤ª¤±¤ë & Ê¸»ú¤Ï¡¢¤½¤Î¹Ô¤Ë¥Þ¥Ã¥Á¤¹¤ë
206 .B key
207 ¥Õ¥£¡¼¥ë¥É¤ÎÃͤËŸ³«¤µ¤ì¤ë
208 (¤³¤ì¤Ï¥ï¥¤¥ë¥É¥«¡¼¥É¥­¡¼¤È¶¦¤Ë»È¤Ã¤¿¾ì¹ç¤Ë¤Î¤ß°ÕÌ£¤¬¤¢¤ë¤À¤í¤¦)¡£
209 .\"O .SS Wildcard Key
210 .SS ¥ï¥¤¥ë¥É¥«¡¼¥É¥­¡¼
211 .\"O A * in the
212 .\"O .B key
213 .\"O field of indirect maps matches all keys.  An example for the usefulness
214 .\"O is the following entry:
215 ´ÖÀܥޥåפÎ
216 .B key
217 ¥Õ¥£¡¼¥ë¥É¤Ë¤ª¤±¤ë * ¤ÏÁ´¤Æ¤Î¥­¡¼¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
218 ¼ÂÍÑŪ¤ÊÎã¤È¤·¤Æ¤Ï¡¢°Ê²¼¤Î¥¨¥ó¥È¥ê¤¬¤¢¤ë:
219 .sp
220 .RS +.2i
221 .ta 1.0i
222 .nf
223 *       &:/home/&
224 .fi
225 .RE
226 .sp
227 .\"O This will enable you to access all the home directory of local hosts using
228 .\"O the path
229 .\"O .RI / mountpoint / hostname / local-path .
230 ¤³¤ì¤Ë¤è¤ê¡¢¥Ñ¥¹
231 .RI / mountpoint / hostname / local-path
232 ¤ò»È¤Ã¤Æ¡¢¥í¡¼¥«¥ë¤Ë¤¢¤ë¥Û¥¹¥ÈÁ´¤Æ¤Î home ¥Ç¥£¥ì¥¯¥È¥ê¤Ë
233 ¥¢¥¯¥»¥¹¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ë¡£
234 .\"O .SS Variable Substitution
235 .SS ÊÑ¿ô¤ÎÃÖ´¹
236 .\"O The following special variables will be substituted in the key and location
237 .\"O fields of an automounter map if prefixed with $ as customary from shell
238 .\"O scripts (Curly braces can be used to separate the fieldname):
239 ¥ª¡¼¥È¥Þ¥¦¥ó¥È¥Þ¥Ã¥×¤Î key ¤ª¤è¤Ó location ¥Õ¥£¡¼¥ë¥É¤Ç¡¢
240 ¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ç¤ª¤Ê¤¸¤ß¤Î $ ¤òÀèƬ¤ËÉÕ¤±¤Æ
241 (¥Õ¥£¡¼¥ë¥É̾¤ò¶èÀڤ뤿¤á¤ËÃæ³ç¸Ì (curly brace) ¤â»ÈÍѲÄ)
242 °Ê²¼¤ÎÆÃÊ̤ÊÊÑ¿ô¤ò»È¤Ã¤¿¾ì¹ç¡¢¼¡¤Î¤è¤¦¤ÊÃͤËÃÖ¤­´¹¤¨¤é¤ì¤ë:
243 .sp
244 .RS +.2i
245 .ta 1.5i
246 .nf
247 .\"O ARCH       Architecture (uname -m)
248 ARCH    ¥¢¡¼¥­¥Æ¥¯¥Á¥ã (uname -m)
249 .\"O CPU        Processor Type
250 CPU     ¥×¥í¥»¥Ã¥µ¥¿¥¤¥×
251 .\"O HOST       Hostname (uname -n)
252 HOST    ¥Û¥¹¥È̾ (uname -n)
253 .\"O OSNAME     Operating System (uname -s)
254 OSNAME  ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à (uname -s)
255 .\"O OSREL      Release of OS (uname -r)
256 OSREL   OS ¤Î¥ê¥ê¡¼¥¹ (uname -r)
257 .\"O OSVERS     Version of OS (uname -v)
258 OSVERS  OS ¤Î¥Ð¡¼¥¸¥ç¥ó (uname -v)
259 .fi
260 .RE
261 .sp
262 .\"O Additional entries can be defined with the -Dvariable=Value map-option to
263 .\"O .BR automount (8).
264 .BR automount (8)
265 ¤Î -Dvariable=Value ¥Þ¥Ã¥×¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¡¢
266 Äɲäǥ¨¥ó¥È¥ê¤òÄêµÁ¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
267 .\"O .SS Executable Maps
268 .SS ¼Â¹Ô²Äǽ¥Þ¥Ã¥×
269 .\"O A map can be marked as executable.  The init script that parses the
270 .\"O auto.master map will pass this as a
271 .\"O .B program
272 .\"O map to the automounter.  A
273 .\"O .B program
274 .\"O map will be called as a script with the key as an argument.  It may
275 .\"O return no lines of output if there's an error, or one or more lines
276 .\"O containing a map (with \\ quoting line breaks).
277 ¥Þ¥Ã¥×¤Ë¼Â¹Ô²Äǽ¤Î¥Þ¡¼¥¯¤òÉÕ¤±¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
278 auto.master ¥Þ¥Ã¥×¤ò²òÀϤ¹¤ë½é´ü²½¥¹¥¯¥ê¥×¥È¤Ï¡¢¤³¤ì¤ò
279 .B program
280 ¥Þ¥Ã¥×¤È¤·¤Æ¥ª¡¼¥È¥Þ¥¦¥ó¥È¥·¥¹¥Æ¥à¤ËÅϤ¹¡£
281 .B program
282 ¥Þ¥Ã¥×¤Ï key ¤ò°ú¤­¿ô¤È¤·¤¿¥¹¥¯¥ê¥×¥È¤È¤·¤Æ¸Æ¤Ó½Ð¤µ¤ì¤ë¡£
283 ¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¡¢½ÐÎϤϠ1 ¹Ô¤âÊÖ¤µ¤ì¤Ê¤¤¡£
284 À®¸ù¤·¤¿¾ì¹ç¤Ï¡¢¥Þ¥Ã¥×¤ò´Þ¤à 1 ¹Ô°Ê¾å¤¬
285 (²þ¹Ô¤Ï \\ ¤Ç¥¯¥©¡¼¥È¤µ¤ì¤Æ) ÊÖ¤µ¤ì¤ë¡£
286 .P
287 .\"O To use a 
288 .\"O .B program
289 .\"O map, the
290 .\"O .BR automount (8)
291 .\"O daemon has to be started with the program type instead of the file
292 .\"O type.  This is implemented in the initialization script.
293 .B program
294 ¥Þ¥Ã¥×¤ò»È¤¦¤¿¤á¤Ë¤Ï¡¢
295 .BR automount (8)
296 ¥Ç¡¼¥â¥ó¤Ï file ¥¿¥¤¥×¤Ç¤Ï¤Ê¤¯ program ¥¿¥¤¥×¤È¤·¤Æ
297 ³«»Ï¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
298 ¤³¤ì¤Ï½é´ü²½¥¹¥¯¥ê¥×¥È¤ÎÃæ¤Ç¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¡£
299 .P
300 .\"O A executable map can return an errorcode to indicate the failure in addition
301 .\"O to no output at all.  All output sent to stderr is logged into the system
302 .\"O logs.
303 ¼Â¹Ô²Äǽ¥Þ¥Ã¥×¤Ï¡¢¥¨¥é¡¼¤Î¾ì¹ç¡¢
304 Á´¤¯½ÐÎϤò¹Ô¤ï¤Ê¤¤¤³¤È¤Ë²Ã¤¨¤Æ¼ºÇÔ¤òɽ¤¹¥¨¥é¡¼¥³¡¼¥É¤òÊÖ¤¹¤³¤È¤¬¤Ç¤­¤ë¡£
305 ɸ½à¥¨¥é¡¼½ÐÎϤØÁ÷¤é¤ì¤ëÁ´¤Æ¤Î½ÐÎϤϡ¢¥·¥¹¥Æ¥à¥í¥°¤Ëµ­Ï¿¤µ¤ì¤ë¡£
306 .\"O .SS Multiple Mounts
307 .SS ¥Þ¥ë¥Á¥Þ¥¦¥ó¥È
308 .\"O A
309 .\"O .B multi-mount map
310 .\"O can be used to name multiple filesystems to mount.  It takes the form:
311 .B multi-mount
312 ¥Þ¥Ã¥×¤ÏÊ£¿ô¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤¹¤ë¤Î¤Ë»ÈÍѤµ¤ì¤ë¡£
313 ¤³¤ì¤Ï°Ê²¼¤Î·Á¼°¤Ç¤¢¤ë:
314 .sp
315 .RS +.2i
316 .ta 1.0i
317 .nf
318 .BI "key [" -options "] [mountpoint [" -options "] location...]..."
319 .fi
320 .RE
321 .sp
322 .P
323 .\"O This may extend over multiple lines, quoting the line-breaks with \`\\\'.
324 .\"O If present, the per-mountpoint mount-options are appended to the
325 .\"O default mount-options.
326 ²þ¹Ô¤ò \`\\\' ¤Ç¥¯¥©¡¼¥È¤¹¤ì¤Ð¡¢Ê£¿ô¹Ô¤ËÅϤäƽñ¤¯¤³¤È¤â¤Ç¤­¤ë¡£
327 ¤³¤Î¥Þ¥Ã¥×¤¬Â¸ºß¤¹¤ë¾ì¹ç¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó¤Ë²Ã¤¨¤Æ¡¢
328 ¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥ÈËè¤Î¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó¤¬Äɲ䵤ì¤ë¡£
329 .\"O .SS Replicated Server
330 .SS ¥ì¥×¥ê¥±¡¼¥È¤µ¤ì¤¿¥µ¡¼¥Ð
331 .sp
332 .RS +.2i
333 .ta 1.5i
334 .nf
335 .\"O Multiple replicated hosts, same path:
336 ¥Ñ¥¹¤¬Æ±¤¸Ê£¿ô¤Î¥ì¥×¥ê¥±¡¼¥È¤µ¤ì¤¿¥Û¥¹¥È:
337 <path> host1,host2,hostn:/path/path
338
339 .\"O Multiple hosts, some with same path, some with another
340 ¤¢¤ë¤â¤Î¤Ï¥Ñ¥¹¤¬Æ±¤¸¤Ç¡¢¤¢¤ë¤â¤Î¤Ï¥Ñ¥¹¤¬°Û¤Ê¤ëÊ£¿ô¤Î¥Û¥¹¥È:
341 <path> host1,host2:/blah host3:/some/other/path
342
343 .\"O Multiple replicated hosts, different (potentially) paths:
344 ¥Ñ¥¹¤¬°Û¤Ê¤ë (²ÄǽÀ­¤¬¤¢¤ë) Ê£¿ô¤Î¥ì¥×¥ê¥±¡¼¥È¤µ¤ì¤¿¥Û¥¹¥È:
345 <path> host1:/path/pathA host2:/path/pathB
346
347 .\"O Mutliple weighted, replicated hosts same path:
348 ½Å¤ßÉÕ¤±¤¬°Û¤Ê¤ê¡¢¥Ñ¥¹¤¬Æ±¤¸¥ì¥×¥ê¥±¡¼¥È¤µ¤ì¤¿¥Û¥¹¥È:
349 <path> host1(5),host2(6),host3(1):/path/path
350
351 .\"O Multiple weighted, replicated hosts different (potentially) paths:
352 ½Å¤ßÉÕ¤±¤¬°Û¤Ê¤ê¡¢°Û¤Ê¤ë (²ÄǽÀ­¤¬¤¢¤ë) ¥Ñ¥¹¤Î¥ì¥×¥ê¥±¡¼¥È¤µ¤ì¤¿¥Û¥¹¥È:
353 <path> host1(3):/path/pathA host2(5):/path/pathB
354
355 .\"O Anything else is questionable and unsupported, but these variations will also work:
356 ¤½¤Î¾¤Î½ñ¼°¤ÏÉÔ¼«Á³¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤¬¡¢
357 ÊÑ·Á¤·¤¿¤³¤ì¤é¤Î½ñ¼°¤Ç¤âÆ°ºî¤¹¤ë:
358 <path> host1(3),host:/blah
359 .fi
360 .RE
361 .sp
362 .\"O .SH UNSUPPORTED
363 .SH ¥µ¥Ý¡¼¥ÈÈϰϳ°
364 .\"O This version of the automounter supports direct maps for FILE, NIS and LDAP maps only
365 .\"O and handles SunOS-style replicated filesystems only to the extent that
366 .\"O .BR mount (8)
367 .\"O does.
368 ¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¥ª¡¼¥È¥Þ¥¦¥ó¥È¥·¥¹¥Æ¥à¤Ï FILE, NIS, LDAP ¥Þ¥Ã¥×¤ËÂФ¹¤ë
369 ľÀܥޥåפΤߤò¥µ¥Ý¡¼¥È¤·¤Æ¤ª¤ê¡¢
370 SunOS ·Á¼°¤Î¥ì¥×¥ê¥±¡¼¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤Ä¤¤¤Æ¤Ï
371 .BR mount (8)
372 ¤¬¥µ¥Ý¡¼¥È¤¹¤ëÈϰϤǤΤ߼è¤ê°·¤¦¡£
373 .\"O .SH CAVEATS
374 .SH ·Ù¹ð
375 .\"O Unlike Sun's multi-mount syntax, the mountpoint is mandatory for all
376 .\"O mounts.
377 Sun ¤Î multi-mount ½ñ¼°¤È¤Ï°Û¤Ê¤ê¡¢
378 Á´¤Æ¤Î¥Þ¥¦¥ó¥È¤Ë¤ª¤¤¤Æ¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤Ïɬ¿Ü¤Ç¤¢¤ë¡£
379 .\"O .SH "SEE ALSO"
380 .SH ´ØÏ¢¹àÌÜ
381 .BR automount (8),
382 .BR auto.master (5),
383 .BR autofs (8),
384 .BR mount (8).
385 .\"O .SH AUTHOR
386 .SH Ãø¼Ô
387 .\"O This manual page was written by Christoph Lameter <chris@waterf.org>,
388 .\"O for the Debian GNU/Linux system.  Edited by H. Peter Anvin
389 .\"O <hpa@transmeta.com>, Jeremy Fitzhardinge <jeremy@goop.org> and
390 .\"O Ian Kent <raven@themaw.net>.
391 ¤³¤Î man ¥Ú¡¼¥¸¤Ï Christoph Lameter <chris@waterf.org> ¤Ë¤è¤Ã¤Æ
392 Debian GNU/Linux ¥·¥¹¥Æ¥à¤Î¤¿¤á¤Ë½ñ¤«¤ì¤¿¡£
393 H. Peter Anvin <hpa@transmeta.com>, Jeremy Fitzhardinge <jeremy@goop.org>,
394 Ian Kent <raven@themaw.net> ¤Ë¤è¤Ã¤ÆÊÔ½¸¤µ¤ì¤¿¡£