OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / sudo / draft / man8 / visudo.8
1 .\" Copyright (c) 1996,1998-2005, 2007-2008
2 .\"     Todd C. Miller <Todd.Miller@courtesan.com>
3 .\" 
4 .\" Permission to use, copy, modify, and distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies.
7 .\" 
8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16 .\" 
17 .\" Sponsored in part by the Defense Advanced Research Projects
18 .\" Agency (DARPA) and Air Force Research Laboratory, Air Force
19 .\" Materiel Command, USAF, under agreement number F39502-99-1-0512.
20 .\" 
21 .\" Japanese Version Copyright (c) 2000-2002 Yuichi SATO
22 .\"   and 2009 Yoichi Chonan
23 .\"         all rights reserved.
24 .\" Translated Sat Oct  7 14:39:18 JST 2000
25 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
26 .\" Updated & Modified Fri Dec  6 04:40:44 JST 2002 by Yuichi SATO
27 .\" New Translation (sudo-1.6.9p17) Fri Jan 23 10:31:17 JST 2009
28 .\"         by Yoichi Chonan <cyoichi@maple.ocn.ne.jp>
29 .\" Updated & Modified (sudo-1.7.2p1) Sat Nov 14 21:15:16 JST 2009
30 .\"         by Yoichi Chonan
31 .\"
32 .\" $Sudo: visudo.man.in,v 1.34 2009/06/11 20:29:12 millert Exp $
33 .\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05)
34 .\"
35 .\" Standard preamble:
36 .\" ========================================================================
37 .de Sh \" Subsection heading
38 .br
39 .if t .Sp
40 .ne 5
41 .PP
42 \fB\\$1\fR
43 .PP
44 ..
45 .de Sp \" Vertical space (when we can't use .PP)
46 .if t .sp .5v
47 .if n .sp
48 ..
49 .de Vb \" Begin verbatim text
50 .ft CW
51 .nf
52 .ne \\$1
53 ..
54 .de Ve \" End verbatim text
55 .ft R
56 .fi
57 ..
58 .\" Set up some character translations and predefined strings.  \*(-- will
59 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
60 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
61 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
62 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
63 .\" nothing in troff, for use with C<>.
64 .tr \(*W-
65 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
66 .ie n \{\
67 .    ds -- \(*W-
68 .    ds PI pi
69 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
70 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
71 .    ds L" ""
72 .    ds R" ""
73 .    ds C` 
74 .    ds C' 
75 'br\}
76 .el\{\
77 .    ds -- \|\(em\|
78 .    ds PI \(*p
79 .    ds L" ``
80 .    ds R" ''
81 'br\}
82 .\"
83 .\" Escape single quotes in literal strings from groff's Unicode transform.
84 .ie \n(.g .ds Aq \(aq
85 .el       .ds Aq '
86 .\"
87 .\" If the F register is turned on, we'll generate index entries on stderr for
88 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
89 .\" entries marked with X<> in POD.  Of course, you'll have to process the
90 .\" output yourself in some meaningful fashion.
91 .ie \nF \{\
92 .    de IX
93 .    tm Index:\\$1\t\\n%\t"\\$2"
94 ..
95 .    nr % 0
96 .    rr F
97 .\}
98 .el \{\
99 .    de IX
100 ..
101 .\}
102 .\"
103 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
104 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
105 .    \" fudge factors for nroff and troff
106 .if n \{\
107 .    ds #H 0
108 .    ds #V .8m
109 .    ds #F .3m
110 .    ds #[ \f1
111 .    ds #] \fP
112 .\}
113 .if t \{\
114 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
115 .    ds #V .6m
116 .    ds #F 0
117 .    ds #[ \&
118 .    ds #] \&
119 .\}
120 .    \" simple accents for nroff and troff
121 .if n \{\
122 .    ds ' \&
123 .    ds ` \&
124 .    ds ^ \&
125 .    ds , \&
126 .    ds ~ ~
127 .    ds /
128 .\}
129 .if t \{\
130 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
131 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
132 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
133 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
134 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
135 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
136 .\}
137 .    \" troff and (daisy-wheel) nroff accents
138 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
139 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
140 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
141 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
142 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
143 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
144 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
145 .ds ae a\h'-(\w'a'u*4/10)'e
146 .ds Ae A\h'-(\w'A'u*4/10)'E
147 .    \" corrections for vroff
148 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
149 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
150 .    \" for low resolution devices (crt and lpr)
151 .if \n(.H>23 .if \n(.V>19 \
152 \{\
153 .    ds : e
154 .    ds 8 ss
155 .    ds o a
156 .    ds d- d\h'-1'\(ga
157 .    ds D- D\h'-1'\(hy
158 .    ds th \o'bp'
159 .    ds Th \o'LP'
160 .    ds ae ae
161 .    ds Ae AE
162 .\}
163 .rm #[ #] #H #V #F C
164 .\" ========================================================================
165 .\"
166 .IX Title "VISUDO 8"
167 .TH VISUDO 8 "June 11, 2009" "1.7.2p1" "MAINTENANCE COMMANDS"
168 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
169 .\" way too many mistakes in technical documents.
170 .if n .ad l
171 .nh
172 .\"O .SH "NAME"
173 .SH "̾Á°"
174 \"O visudo \- edit the sudoers file
175 visudo \- sudoers ¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤¹¤ë
176 .\"O .SH "SYNOPSIS"
177 .SH "½ñ¼°"
178 .IX Header "SYNOPSIS"
179 \&\fBvisudo\fR [\fB\-c\fR] [\fB\-q\fR] [\fB\-s\fR] [\fB\-V\fR] [\fB\-f\fR \fIsudoers\fR]
180 .\"O .SH "DESCRIPTION"
181 .SH "ÀâÌÀ"
182 .IX Header "DESCRIPTION"
183 .\"O \&\fBvisudo\fR edits the \fIsudoers\fR file in a safe fashion, analogous to
184 .\"O \&\fIvipw\fR\|(8).  \fBvisudo\fR locks the \fIsudoers\fR file against multiple
185 .\"O simultaneous edits, provides basic sanity checks, and checks
186 .\"O for parse errors.  If the \fIsudoers\fR file is currently being
187 .\"O edited you will receive a message to try again later.
188 .\"O .PP
189 \&\fBvisudo\fR ¤Ï \fIvipw\fR\|(8) ¤Ë¤è¤¯»÷¤¿°ÂÁ´¤Ê¤ä¤êÊý¤Ç 
190 \&\fIsudoers\fR ¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤¹¤ë¡£ \fBvisudo\fR ¤Ï \fIsudoers\fR 
191 ¥Õ¥¡¥¤¥ë¤ò¥í¥Ã¥¯¤·¤Æ¡¢½ÅÊ£¤·¤¿ÊÔ½¸¤¬Æ±»þ¤Ë¹Ô¤ï¤ì¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤È¤È¤â¤Ë¡¢
192 À°¹çÀ­¤ò¤¶¤Ã¤ÈÄ´¤Ù¡¢Ê¸Ë¡¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¡£ \fIsudoers\fR ¥Õ¥¡¥¤¥ë
193 ¤¬¸½ºßÊÔ½¸Ãæ¤À¤Ã¤¿¾ì¹ç¤Ï¡¢¡Ötry again later¡×¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤òüËö¤Ë
194 ɽ¼¨¤¹¤ë¡£
195 .PP
196 .\"O There is a hard-coded list of editors that \fBvisudo\fR will use set
197 .\"O at compile-time that may be overridden via the \fIeditor\fR \fIsudoers\fR
198 .\"O \&\f(CW\*(C`Default\*(C'\fR variable.  This list defaults to the path to \fIvi\fR\|(1) on
199 .\"O your system, as determined by the \fIconfigure\fR script.  Normally,
200 .\"O \&\fBvisudo\fR does not honor the \f(CW\*(C`VISUAL\*(C'\fR or \f(CW\*(C`EDITOR\*(C'\fR environment
201 .\"O variables unless they contain an editor in the aforementioned editors
202 .\"O list.  However, if \fBvisudo\fR is configured with the \fI\-\-with\-enveditor\fR
203 .\"O option or the \fIenv_editor\fR \f(CW\*(C`Default\*(C'\fR variable is set in \fIsudoers\fR,
204 .\"O \&\fBvisudo\fR will use any the editor defines by \f(CW\*(C`VISUAL\*(C'\fR or \f(CW\*(C`EDITOR\*(C'\fR.
205 .\"O Note that this can be a security hole since it allows the user to
206 .\"O execute any program they wish simply by setting \f(CW\*(C`VISUAL\*(C'\fR or \f(CW\*(C`EDITOR\*(C'\fR.
207 .\"O .PP
208 \&\fBvisudo\fR ¤¬»ÈÍѤ¹¤ë¥¨¥Ç¥£¥¿¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥³¥ó¥Ñ¥¤¥ë»þ¤ËÀßÄꤵ¤ì¤¿
209 ¥¨¥Ç¥£¥¿¤Î¥ê¥¹¥È¤¬¥×¥í¥°¥é¥à¤ËËä¤á¹þ¤Þ¤ì¤Æ¤¤¤ë¤¬¡¢\fIsudoers\fR ¥Õ¥¡¥¤¥ë¤Î 
210 \&\f(CW\*(C`Defaults\*(C'\fR ¹Ô¤Ç \fIeditor\fR ¥ª¥×¥·¥ç¥ó¤ò»È¤¨¤Ð¡¢
211 ¤½¤ì¤òÊѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£¤³¤Î¥ê¥¹¥È¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢
212 »ÈÍѤ·¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤Ë¤ª¤±¤ë \fIvi\fR\|(1) ¤Î¥Ñ¥¹¤Ç¤¢¤ê¡¢
213 \&\fIconfigure\fR ¥¹¥¯¥ê¥×¥È¤Ë¤è¤Ã¤Æ³ä¤ê½Ð¤µ¤ì¤¿¤â¤Î¤À¡£
214 Ä̾ï \fBvisudo\fR ¤Ï¡¢´Ä¶­ÊÑ¿ô \f(CW\*(C`VISUAL\*(C'\fR ¤ä
215 \&\f(CW\*(C`EDITOR\*(C'\fR ¤ÎÃͤ¬¾å½Ò¤Î¥¨¥Ç¥£¥¿¡¦¥ê¥¹¥È¤Ë´Þ¤Þ¤ì¤ë
216 ¥¨¥Ç¥£¥¿¤Ç¤Ê¤¤¤«¤®¤ê¡¢¤½¤¦¤·¤¿´Ä¶­ÊÑ¿ô¤ò»ÈÍѤ·¤Ê¤¤¡£¤È¤Ï¸À¤¨¡¢\fBvisudo\fR ¤¬
217 \&\fI\-\-with\-env\-editor\fR ¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Æ configure ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ä¡¢
218 \&\fIsudoeres\fR ¥Õ¥¡¥¤¥ë¤Î \f(CW\*(C`Defaults\*(C'\fR ¹Ô¤Ç
219 \&\fIenv_editor\fR ¥ª¥×¥·¥ç¥ó¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢\fBvisudo\fR ¤Ï
220 \&\f(CW\*(C`VISUAL\*(C'\fR ¤ä \f(CW\*(C`EDITOR\*(C'\fR ¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿
221 ¤É¤ó¤Ê¥¨¥Ç¥£¥¿¤Ç¤â»ÈÍѤ¹¤ë¤³¤È¤Ë¤Ê¤ë¡£¤³¤ì¤¬¥»¥­¥å¥ê¥Æ¥£¥Û¡¼¥ë¤Ë
222 ¤Ê¤ê¤«¤Í¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤Û¤·¤¤¡£Ã±¤Ë \f(CW\*(C`VISUAL\*(C'\fR ¤ä
223 \&\f(CW\*(C`EDITOR\*(C'\fR ¤òÀßÄꤹ¤ë¤À¤±¤Ç¡¢¥æ¡¼¥¶¤¬Ç¤°Õ¤Î¥×¥í¥°¥é¥à¤ò
224 ¼Â¹Ô¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¤«¤é¤À¡£
225 .PP
226 .\"O \&\fBvisudo\fR parses the \fIsudoers\fR file after the edit and will
227 .\"O not save the changes if there is a syntax error.  Upon finding
228 .\"O an error, \fBvisudo\fR will print a message stating the line number(s)
229 .\"O where the error occurred and the user will receive the
230 .\"O \&\*(L"What now?\*(R" prompt.  At this point the user may enter \*(L"e\*(R"
231 .\"O to re-edit the \fIsudoers\fR file, \*(L"x\*(R" to exit without
232 .\"O saving the changes, or \*(L"Q\*(R" to quit and save changes.  The
233 .\"O \&\*(L"Q\*(R" option should be used with extreme care because if \fBvisudo\fR
234 .\"O believes there to be a parse error, so will \fBsudo\fR and no one
235 .\"O will be able to \fBsudo\fR again until the error is fixed.
236 .\"O If \*(L"e\*(R" is typed to edit the  \fIsudoers\fR file after a parse error
237 .\"O has been detected, the cursor will be placed on the line where the
238 .\"O error occurred (if the editor supports this feature).
239 \&\fBvisudo\fR ¤ÏÊÔ½¸¤¬½ª¤ï¤ë¤È¡¢\fIsudoers\fR ¥Õ¥¡¥¤¥ë¤Îʸˡ²òÀϤò¹Ô¤¤¡¢
240 ʸˡ¥¨¥é¡¼¤¬¤¢¤ì¤Ð¡¢Êѹ¹¤òÊݸ¤·¤Ê¤¤¡£\fBvisudo\fR ¤Ï¥¨¥é¡¼¤òȯ¸«¤¹¤ë¤È¡¢
241 ¥¨¥é¡¼¤¬µ¯¤­¤¿¹ÔÈÖ¹æ¤òÃΤ餻¤ë¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤·¡¢\*(L"What now?\*(R" ¤È
242 ¤¤¤¦¥×¥í¥ó¥×¥È¤ò½Ð¤¹¡£¤³¤Î¤È¤­¡¢\*(L"e\*(R" ¤ò²¡¤»¤Ð¡¢
243 \&\fIsudoers\fR ¥Õ¥¡¥¤¥ë¤òºÆÊÔ½¸¤Ç¤­¤ë¡£\*(L"x\*(R" ¤ò²¡¤»¤Ð¡¢
244 Êѹ¹¤òÊݸ¤»¤º½ªÎ»¤À¤·¡¢\*(L"Q\*(R" ¤ò²¡¤»¤Ð¡¢Êѹ¹¤òÊݸ¤·¤Æ½ªÎ»¤À¡£
245 \&\*(L"Q\*(R" ¤ÎÁªÂò¤Ï¡¢¤¯¤ì¤°¤ì¤â¿µ½Å¤Ë¤ä¤Ã¤Æ¤Û¤·¤¤¡£¤Ê¤¼¤Ê¤é¡¢
246 \&\fBvisudo\fR ¤¬Ê¸Ë¡¥¨¥é¡¼¤¬¤¢¤ë¤È¹Í¤¨¤ë¤Î¤Ê¤é¡¢\fBsudo\fR ¤â
247 ƱÍͤ˹ͤ¨¤ë¤Ï¤º¤Ç¤¢¤ê¡¢¥¨¥é¡¼¤¬ÄûÀµ¤µ¤ì¤ë¤Þ¤Ç¡¢¤â¤¦Ã¯¤Ë¤â \fBsudo\fR ¤¬
248 »È¤¨¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤«¤é¤À¡£Ê¸Ë¡¥¨¥é¡¼¤¬È¯¸«¤µ¤ì¤¿¤È¤­¡¢\*(L"e\*(R" ¤ò
249 ²¡¤·¤Æ \fIsudoers\fR ¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤·¤è¤¦¤È¤¹¤ë¤È¡¢¥«¡¼¥½¥ë¤¬¥Õ¥¡¥¤¥ë¤Î
250 ¥¨¥é¡¼¤¬µ¯¤­¤¿¹Ô¤ËÈô¤Ö (¥¨¥Ç¥£¥¿¤Ë¤½¤Îµ¡Ç½¤¬¤¢¤ì¤Ð¤À¤¬)¡£
251 .\"O .SH "OPTIONS"
252 .SH "¥ª¥×¥·¥ç¥ó"
253 .IX Header "OPTIONS"
254 .\"O \&\fBvisudo\fR accepts the following command line options:
255 \&\fBvisudo\fR ¤Ç¤Ï°Ê²¼¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤¬»ÈÍѤǤ­¤ë¡£
256 .IP "\-c" 12
257 .IX Item "-c"
258 .\"O Enable \fBcheck-only\fR mode.  The existing \fIsudoers\fR file will be
259 .\"O checked for syntax and a message will be printed to the
260 .\"O standard output detailing the status of \fIsudoers\fR.
261 .\"O If the syntax check completes successfully, \fBvisudo\fR will
262 .\"O exit with a value of 0.  If a syntax error is encountered,
263 .\"O \&\fBvisudo\fR will exit with a value of 1.
264 \&\fBcheck-only\fR ¥â¡¼¥É¤òÍ­¸ú¤Ë¤¹¤ë¡£¸½ºß¤Î \fIsudoers\fR ¥Õ¥¡¥¤¥ë¤Î
265 ʸˡ¤ò¥Á¥§¥Ã¥¯¤·¡¢¥á¥Ã¥»¡¼¥¸¤òɸ½à½ÐÎϤËɽ¼¨¤·¤Æ¡¢
266 \fIsudoers\fR ¤Î¾õÂÖ¤ò¾ÜºÙ¤ËÊó¹ð¤¹¤ë¡£Ê¸Ë¡¥Á¥§¥Ã¥¯¤¬À®¸ùΣ¤Ë½ª¤ï¤Ã¤¿¾ì¹ç¡¢
267 \&\fBvisudo\fR ¤ÏÊÖ¤êÃÍ 0 ¤Ç½ªÎ»¤¹¤ë¡£Ê¸Ë¡¥¨¥é¡¼¤Ë½Ð²ñ¤Ã¤¿¾ì¹ç¤Î
268 ÊÖ¤êÃͤϠ1 ¤Ç¤¢¤ë¡£
269 .IP "\-f \fIsudoers\fR" 12
270 .IX Item "-f sudoers"
271 .\"O Specify and alternate \fIsudoers\fR file location.  With this option
272 .\"O \&\fBvisudo\fR will edit (or check) the \fIsudoers\fR file of your choice,
273 .\"O instead of the default, \fI/etc/sudoers\fR.  The lock file used
274 .\"O is the specified \fIsudoers\fR file with \*(L".tmp\*(R" appended to it.
275 \&\fIsudoers\fR ¥Õ¥¡¥¤¥ë¤Î°ÌÃÖ¤ò»ØÄꡦÊѹ¹¤¹¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò
276 ÉÕ¤±¤ë¤È¡¢ \fBvisudo\fR ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î \fI/etc/sudoers\fR ¤Ç¤Ï¤Ê¤¯¡¢
277 ¥æ¡¼¥¶¤¬Áª¤ó¤À \fIsudoers\fR ¥Õ¥¡¥¤¥ë¤òÊÔ½¸ (¤¢¤ë¤¤¤Ï¡¢¥Á¥§¥Ã¥¯) ¤¹¤ë
278 ¤³¤È¤Ë¤Ê¤ë¡£¥í¥Ã¥¯¥Õ¥¡¥¤¥ë¤È¤·¤Æ¤Ï¡¢»ØÄꤵ¤ì¤¿ \fIsudoers\fR ¥Õ¥¡¥¤¥ë¤Î
279 ̾Á°¤ÎËöÈø¤Ë \*(L".tmp\*(R" ¤òÉÕ¤±¤¿¤â¤Î¤¬»È¤ï¤ì¤ë¡£
280 .IP "\-q" 12
281 .IX Item "-q"
282 .\"O Enable \fBquiet\fR mode.  In this mode details about syntax errors
283 .\"O are not printed.  This option is only useful when combined with
284 .\"O the \fB\-c\fR option.
285 \&\fBquiet\fR ¥â¡¼¥É¤òÍ­¸ú¤Ë¤¹¤ë¡£¤³¤Î¥â¡¼¥É¤Ç¤Ï¡¢Ê¸Ë¡¥¨¥é¡¼¤Î¾ÜºÙ¾ðÊó¤Ï
286 ɽ¼¨¤µ¤ì¤Ê¤¤¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë°ÕÌ£¤¬¤¢¤ë¤Î¤Ï¡¢\fB\-c\fR ¥ª¥×¥·¥ç¥ó¤È
287 ÁȤ߹ç¤ï¤»¤¿¤È¤­¤À¤±¤Ç¤¢¤ë¡£
288 .IP "\-s" 12
289 .IX Item "-s"
290 .\"O Enable \fBstrict\fR checking of the \fIsudoers\fR file.  If an alias is
291 .\"O used before it is defined, \fBvisudo\fR will consider this a parse
292 .\"O error.  Note that it is not possible to differentiate between an
293 .\"O alias and a hostname or username that consists solely of uppercase
294 .\"O letters, digits, and the underscore ('_') character.
295 \&\fIsudoers\fR ¥Õ¥¡¥¤¥ë¤Î\fB¸·Ì©\fR (\fBstrict\fR) ¥Á¥§¥Ã¥¯¤òÍ­¸ú¤Ë¤¹¤ë¡£
296 ¥¨¥¤¥ê¥¢¥¹¤òÄêµÁ¤¹¤ëÁ°¤Ë»ÈÍѤ¹¤ë¤È¡¢\fBvisudo\fR ¤¬¤½¤ì¤òʸˡ¥¨¥é¡¼¤È
297 ¸«¤Ê¤¹¤è¤¦¤Ë¤Ê¤ë¤ï¤±¤À¡£¥Û¥¹¥È̾¤ä¥æ¡¼¥¶Ì¾¤¬¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤ÎÂçʸ»ú¡¢
298 ¿ô»ú¡¢¥¢¥ó¥À¡¼¥¹¥³¥¢ ('_') ¤À¤±¤«¤é¹½À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤¦¤·¤¿¤â¤Î¤È
299 ¥¨¥¤¥ê¥¢¥¹¤È¤Î¶èÊ̤ÏÉÕ¤«¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤Û¤·¤¤¡£
300 .IP "\-V" 12
301 .IX Item "-V"
302 .\"O The \fB\-V\fR (version) option causes \fBvisudo\fR to print its version number
303 .\"O and exit.
304 ¥ª¥×¥·¥ç¥ó¤Ë \fB\-V\fR (version) ¤òÉÕ¤±¤ë¤È¡¢\fBvisudo\fR ¤Ï
305 ¥Ð¡¼¥¸¥ç¥ó¥Ê¥ó¥Ð¡¼¤òɽ¼¨¤·¤Æ¡¢½ªÎ»¤¹¤ë¡£
306 .\"O .SH "ENVIRONMENT"
307 .SH "´Ä¶­ÊÑ¿ô"
308 .IX Header "ENVIRONMENT"
309 .\"O The following environment variables may be consulted depending on
310 .\"O the value of the \fIeditor\fR and \fIenv_editor\fR \fIsudoers\fR variables:
311 °Ê²¼¤Î´Ä¶­ÊÑ¿ô¤¬»²¾È¤µ¤ì¤ë¤«¤É¤¦¤«¤Ï¡¢\fIsudoers\fR ¤Î \fIeditor\fR ¤ä
312 \&\fIenv_editor\fR ¥ª¥×¥·¥ç¥ó¤ÎÃͼ¡Âè¤Ç¤¢¤ë¡£
313 .ie n .IP "\*(C`VISUAL\*(C'" 16
314 .el .IP "\f(CW\*(C`VISUAL\*(C'\fR" 16
315 .IX Item "VISUAL"
316 .\"O Invoked by visudo as the editor to use
317 visudo ¤¬µ¯Æ°¤¹¤ë¥¨¥Ç¥£¥¿
318 .ie n .IP "\*(C`EDITOR\*(C'" 16
319 .el .IP "\f(CW\*(C`EDITOR\*(C'\fR" 16
320 .IX Item "EDITOR"
321 .\"O Used by visudo if \s-1VISUAL\s0 is not set
322 \&\s-1VISUAL\s0 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤È¤­ visudo ¤¬»ÈÍѤ¹¤ë¥¨¥Ç¥£¥¿
323 .\"O .SH "FILES"
324 .SH "¥Õ¥¡¥¤¥ë"
325 .IX Header "FILES"
326 .ie n .IP "\fI/etc/sudoers\fR" 24
327 .el .IP "\fI/etc/sudoers\fR" 24
328 .IX Item "/etc/sudoers"
329 .\"O List of who can run what
330 郎²¿¤ò¼Â¹Ô¤Ç¤­¤ë¤«¤Î¥ê¥¹¥È
331 .ie n .IP "\fI/etc/sudoers.tmp\fR" 24
332 .el .IP "\fI/etc/sudoers.tmp\fR" 24
333 .IX Item "/etc/sudoers.tmp"
334 .\"O Lock file for visudo
335 visudo ¤¬»È¤¦¥í¥Ã¥¯¥Õ¥¡¥¤¥ë
336 .\"O .SH "DIAGNOSTICS"
337 .SH "¥á¥Ã¥»¡¼¥¸¤Ë¤è¤ë¿ÇÃÇ"
338 .IX Header "DIAGNOSTICS"
339 .IP "sudoers file busy, try again later." 4
340 .IX Item "sudoers file busy, try again later."
341 .\"O Someone else is currently editing the \fIsudoers\fR file.
342 ¸½ºß¡¢¤Û¤«¤Î狼¤¬ \fIsudoers\fR ¥Õ¥¡¥¤¥ë¤òÊÔ½¸Ãæ¤À¡£
343 .ie n .IP "/etc/sudoers.tmp: Permission denied" 4
344 .el .IP "\f(CW@sysconfdir\fR@/sudoers.tmp: Permission denied" 4
345 .\"O .IX Item "/etc/sudoers.tmp: Permission denied"
346 .\"O You didn't run \fBvisudo\fR as root.
347 \&\fBvisudo\fR ¤ò root ¤È¤·¤Æ¼Â¹Ô¤·¤Ê¤«¤Ã¤¿¡£
348 .IP "Can't find you in the passwd database" 4
349 .IX Item "Can't find you in the passwd database"
350 .\"O Your userid does not appear in the system passwd file.
351 ¤¢¤Ê¤¿¤Î¥æ¡¼¥¶ ID ¤Ï¥·¥¹¥Æ¥à¤Î passwd ¥Õ¥¡¥¤¥ë¤ËºÜ¤Ã¤Æ¤¤¤Ê¤¤¡£
352 .IP "Warning: {User,Runas,Host,Cmnd}_Alias referenced but not defined" 4
353 .IX Item "Warning: {User,Runas,Host,Cmnd}_Alias referenced but not defined"
354 .\"O Either you are trying to use an undeclare {User,Runas,Host,Cmnd}_Alias
355 .\"O or you have a user or hostname listed that consists solely of
356 .\"O uppercase letters, digits, and the underscore ('_') character.  In
357 .\"O the latter case, you can ignore the warnings (\fBsudo\fR will not
358 .\"O complain).  In \fB\-s\fR (strict) mode these are errors, not warnings.
359 User_Alias, Runas_Alias, Host_Alias, Cmnd_Alias ¤Î¤É¤ì¤«¤ò¡¢
360 ÄêµÁ¤·¤Ê¤¤¤Þ¤Þ»ÈÍѤ·¤è¤¦¤È¤·¤Æ¤¤¤ë¡£
361 ¤¢¤ë¤¤¤Ï¡¢µ­ºÜ¤·¤¿¥æ¡¼¥¶Ì¾¤«¥Û¥¹¥È̾¤ÎÃæ¤Ë¡¢¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤ÎÂçʸ»ú¡¢
362 ¿ô»ú¡¢¥¢¥ó¥À¡¼¥¹¥³¥¢ ('_') ¤Î¤ß¤«¤é¤Ê¤ë¤â¤Î¤¬¤¢¤ë¡£¸å¼Ô¤Î¾ì¹ç¤Ï¡¢
363 ¤³¤Î warning ¤ò̵»ë¤·¤Æ¹½¤ï¤Ê¤¤ (\fBsudo\fR ¤Ï·Ù¹ð¤ò½Ð¤µ¤Ê¤¤¤Ê¤¤¤À¤í¤¦)¡£
364 \&\fB\-s\fR (strict) ¥â¡¼¥É¤Ç¤Ï¡¢warning ¤Ç¤Ï¤Ê¤¯¡¢error ¤Ë¤Ê¤ë¡£
365 .IP "Warning: unused {User,Runas,Host,Cmnd}_Alias" 4
366 .IX Item "Warning: unused {User,Runas,Host,Cmnd}_Alias"
367 .\"O The specified {User,Runas,Host,Cmnd}_Alias was defined but never
368 .\"O used.  You may wish to comment out or remove the unused alias.  In
369 .\"O \&\fB\-s\fR (strict) mode this is an error, not a warning.
370 »ØŦ¤µ¤ì¤¿ User_Alias (¤¢¤ë¤¤¤Ï¡¢Runas_Alias, Host_Alias, Cmnd_Alias) ¤Ï
371 ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤¬¡¢°ìÅÙ¤â»ÈÍѤµ¤ì¤Æ¤¤¤Ê¤¤¡£¤½¤¦¤·¤¿»ÈÍѤ·¤Ê¤¤¥¨¥¤¥ê¥¢¥¹¤Ï¡¢
372 ¥³¥á¥ó¥È¥¢¥¦¥È¤¹¤ë¤Ê¤ê¡¢¾Ãµî¤¹¤ë¤Ê¤ê¤·¤Æ¤â¤è¤¤¤À¤í¤¦¡£
373 \&\fB\-s\fR (strict) ¥â¡¼¥É¤Ç¤Ï¡¢warning ¤Ç¤Ï¤Ê¤¯¡¢error ¤Ë¤Ê¤ë¡£
374 .\"O .SH "SEE ALSO"
375 .SH "´ØÏ¢¹àÌÜ"
376 .IX Header "SEE ALSO"
377 \&\fIvi\fR\|(1), \fIsudoers\fR\|(5), \fIsudo\fR\|(8), \fIvipw\fR\|(8)
378 .\"O .SH "AUTHOR"
379 .SH "ºî¼Ô"
380 .IX Header "AUTHOR"
381 .\"O Many people have worked on \fIsudo\fR over the years; this version of
382 .\"O \&\fBvisudo\fR was written by:
383 .\"O .PP
384 \&\fIsudo\fR ¤ÎÀ½ºî¤Ë¤Ï¡¢Â¿¿ô¤Î¿Í¡¹¤¬Ä¹Ç¯¤ËÅϤäƼè¤êÁȤó¤Ç¤­¤¿¡£
385 \fBvisudo\fR ¤ÎÅö¥Ð¡¼¥¸¥ç¥ó¤ò½ñ¤¤¤¿¤Î¤Ï¡¢
386 .PP
387 .Vb 1
388 \& Todd Miller
389 .Ve
390 .PP
391 .\"O See the \s-1HISTORY\s0 file in the sudo distribution or visit
392 .\"O http://www.sudo.ws/sudo/history.html for more details.
393 ¤Ç¤¢¤ë¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢ÇÛÉÛʪÃæ¤Î \s-1HISTORY\s0 ¥Õ¥¡¥¤¥ë¤«¡¢
394 http://www.sudo.ws/sudo/history.html ¤ò¸æÍ÷¤Ë¤Ê¤Ã¤Æ¤¤¤¿¤À¤­¤¿¤¤¡£
395 .\"O .SH "CAVEATS"
396 .SH "·Ù¹ð"
397 .IX Header "CAVEATS"
398 .\"O There is no easy way to prevent a user from gaining a root shell if 
399 .\"O the editor used by \fBvisudo\fR allows shell escapes.
400 \&\fBvisudo\fR ¤¬»ÈÍѤ¹¤ë¥¨¥Ç¥£¥¿¤Ç¥·¥§¥ë¡¦¥¨¥¹¥±¡¼¥×¤¬²Äǽ¤Ê¤«¤®¤ê¡¢
401 ¥æ¡¼¥¶¤¬¥ë¡¼¥È¡¦¥·¥§¥ë¤ò³ÍÆÀ¤¹¤ë¤Î¤òËɻߤ¹¤ë´Êñ¤ÊÊýË¡¤Ï¤Ê¤¤¡£
402 .\"O .SH "BUGS"
403 .SH "¥Ð¥°"
404 .IX Header "BUGS"
405 .\"O If you feel you have found a bug in \fBvisudo\fR, please submit a bug report
406 .\"O at http://www.sudo.ws/sudo/bugs/
407 \&\fBvisudo\fR ¤Ë¥Ð¥¯¤òȯ¸«¤·¤¿¤È»×¤Ã¤¿¤é¡¢²¼µ­¤Î¥Ú¡¼¥¸¤Ë¥¢¥¯¥»¥¹¤·¤Æ¡¢
408 ¥Ð¥°¥ì¥Ý¡¼¥È¤òÄó½Ð¤·¤Æ¤¤¤¿¤À¤­¤¿¤¤¡£
409 .br
410 http://www.sudo.ws/sudo/bugs/
411 .\"O .SH "SUPPORT"
412 .SH "¥µ¥Ý¡¼¥È"
413 .IX Header "SUPPORT"
414 .\"O Limited free support is available via the sudo-users mailing list,
415 .\"O see http://www.sudo.ws/mailman/listinfo/sudo\-users to subscribe or
416 .\"O search the archives.
417 ¤¢¤ëÄøÅÙ¤Î̵ÎÁ¥µ¥Ý¡¼¥È¤¬ sudo-users ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤òÄ̤·¤ÆÍøÍѤǤ­¤ë¡£
418 ¹ØÆɤ䥢¡¼¥«¥¤¥Ö¤Î¸¡º÷¤Ë¤Ï²¼µ­ URL ¤ò¸æÍ÷¤Ë¤Ê¤ë¤³¤È¡£
419 .br
420 http://www.sudo.ws/mailman/listinfo/sudo\-users
421 .\"O .SH "DISCLAIMER"
422 .SH "ÌÈÀÕ"
423 .IX Header "DISCLAIMER"
424 .\"O \&\fBvisudo\fR is provided ``\s-1AS\s0 \s-1IS\s0'' and any express or implied warranties,
425 .\"O including, but not limited to, the implied warranties of merchantability
426 .\"O and fitness for a particular purpose are disclaimed.  See the \s-1LICENSE\s0
427 .\"O file distributed with \fBsudo\fR or http://www.sudo.ws/sudo/license.html
428 .\"O for complete details.
429 \&\fBvisudo\fR ¤Ï¡Ö¸½¾õ¤Î¤Þ¤Þ¡×Ä󶡤µ¤ì¤ë¡£ÌÀ¼¨Åª¤Ê¡¢¤¢¤ë¤¤¤ÏÌÛ¼¨Åª¤Ê
430 ¤¤¤«¤Ê¤ëÊݾڤ⡢¾¦ÉÊÀ­¤äÆÃÄêÌÜŪ¤Ø¤ÎŬ¹çÀ­¤Ë¤Ä¤¤¤Æ¤ÎÌÛ¼¨Åª¤ÊÊݾڤò´Þ¤á¡¢
431 ¤Þ¤¿¤½¤ì¤Î¤ß¤Ë»ß¤Þ¤é¤º¡¢¤³¤ì¤òÈÝǧ¤¹¤ë¡£¾ÜºÙ¤ÊÁ´Ê¸¤Ë¤Ä¤¤¤Æ¤Ï¡¢
432 \&\fBsudo\fR ¤È°ì½ï¤ËÇÛÉÛ¤µ¤ì¤Æ¤¤¤ë \s-1LICENSE\s0 ¥Õ¥¡¥¤¥ë¤ä
433 ²¼µ­ Web ¥Ú¡¼¥¸¤ò¸æÍ÷¤¤¤¿¤À¤­¤¿¤¤¡£
434 .br
435 http://www.sudo.ws/sudo/license.html