1 .\"$Id: suauth.5,v 1.3 2001/01/25 10:43:51 kloczek Exp $
3 .\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
4 .\" all rights reserved.
5 .\" Translated Fri 14 Feb 1997
6 .\" by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
7 .\" Modified Tue 18 Sep 2002 by NAKNAO Takeo <nakano@apm.seikei.ac.jp>
9 .TH SUAUTH 5 "Feb 14, 1996"
13 .\"O suauth \- Detailed su control file
14 suauth \- su ¤ò¾ÜºÙ¤ËÀ©¸æ¤¹¤ë¤¿¤á¤Î¥Õ¥¡¥¤¥ë
22 .\"O is referenced whenever the su command is called. It can change the
23 .\"O behaviour of the su command, based upon
26 su ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë¤¿¤Ó¤Ë»²¾È¤µ¤ì¤ë¡£
27 ¤³¤Î¥Õ¥¡¥¤¥ë¤òÍѤ¤¤ë¤È¡¢
28 °Ê²¼¤Î¾ðÊó¤Ë´ð¤Å¤¤¤Æ su ¥³¥Þ¥ó¥É¤ÎÆ°ºî¤òÊѹ¹¤Ç¤¤ë¡£
32 .\"O 1) the user su is targetting
33 1) su ¤ÇÀ®¤êÂå¤ï¤í¤¦¤È¤·¤Æ¤¤¤ë¥æ¡¼¥¶
35 .\"O 2) the user executing the su command (or any groups he might be
37 2) su ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¤¤ë¥æ¡¼¥¶
38 (¤â¤·¤¯¤Ï¤½¤Î¥æ¡¼¥¶¤¬Â°¤¹¤ë¥°¥ë¡¼¥×¤Î¤¤¤º¤ì¤«)
41 .\"O The file is formatted like this, with lines starting with a #
42 .\"O being treated as comment lines and ignored;
43 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¼¡¤ÎÍͤʽñ¼°¤ò¤·¤Æ¤¤¤ë¡£
44 # ¤Ç»Ï¤Þ¤ë¹Ô¤Ï¥³¥á¥ó¥È¤È¤·¤Æ°·¤ï¤ì¡¢Ìµ»ë¤µ¤ì¤ë¡£
50 .\"O Where to-id is either the word
52 .\"O a list of usernames
53 .\"O delimited by "," or the words
55 .\"O followed by a list
56 .\"O of usernames delimted by ","
60 ¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿¥æ¡¼¥¶Ì¾¤Î¥ê¥¹¥È¡¢
62 ¤È¤¤¤¦Ã±¸ì°Ê¹ß¤ËÃÖ¤«¤ì¤¿ "," ¶èÀÚ¤ê¤Î¥æ¡¼¥¶Ì¾¥ê¥¹¥È¡¢
65 .\"O from-id is formatted the same as to-id except the extra word
68 .\"O .B ALL EXCEPT GROUP
69 .\"O is perfectly valid too.
72 .\"O appears one or more group names, delimited by
73 .\"O ",". It is not sufficient to have primary group id of the
74 .\"O relevant group, an entry in
75 .\"O .BR /etc/group (5)
77 from-id ¤Ï to-id ¤ÈƱ¤¸½ñ¼°¤Ç¤¢¤ê¡¢¹¹¤Ë
79 ¤È¤¤¤¦Ã±¸ì¤â»ÈÍѤǤ¤ë¡£
81 ¤È¤¤¤¦»È¤¤Êý¤âƱÍͤËÍøÍѤǤ¤ë¡£
83 ¤Î¸å¤Ë¤Ï°ì¤Ä°Ê¾å¤Î¥°¥ë¡¼¥×̾¤ò "," ¤Ç¶èÀڤäƵ¤¹¡£
84 ¤½¤Î¥°¥ë¡¼¥×¤ò¼ç¥°¥ë¡¼¥× id ¤È¤·¤Æ»ý¤Ä¤À¤±¤Ç¤Ï¤À¤á¤Ç¡¢
86 ¤Î¥¨¥ó¥È¥ê¤Ë¥æ¡¼¥¶Ì¾¤¬µ¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
88 .\"O Action can be one only of the following currently supported
90 ACTION ¤Ë¤Ï¡¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Î¤¤¤º¤ì¤«°ì¤Ä¤ò»ØÄê¤Ç¤¤ë¡£
94 .\"O The attempt to su is stopped before a password is even asked for.
95 ¥Ñ¥¹¥ï¡¼¥É¤òʹ¤¯Á°¤Ë su Æ°ºî¤òÃæ»ß¤¹¤ë¡£
99 .\"O The attempt to su is automatically successful; no password is
101 ¼«Æ°Åª¤Ë su ¤ÏÀ®¸ù¤·¡¢¥Ñ¥¹¥ï¡¼¥É¤Ï¿Ò¤Í¤Ê¤¤¡£
105 .\"O For the su command to be successful, the user must enter
106 .\"O his or her own password. They are told this.
107 su ¤¬À®¸ù¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
108 ¥æ¡¼¥¶¤¬¼«Ê¬¤Î¥Ñ¥¹¥ï¡¼¥É¤òÆþÎϤ·¤Ê¤¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
109 ¥Ñ¥¹¥ï¡¼¥É¤òÆþÎϤ¹¤ë¤è¤¦¤ËÍ׵ᤵ¤ì¤ë¡£
111 .\"O Note there are three separate fields delimted by a colon. No
112 .\"O whitespace must surround this colon. Also note that the file
113 .\"O is examined sequentially line by line, and the first applicable
114 .\"O rule is used without examining the file further. This makes it
115 .\"O possible for a system administrator to exercise as fine control
116 .\"O as he or she wishes.
117 ¥³¥í¥ó¤Ë¤è¤Ã¤Æ¶èÀÚ¤é¤ì¤¿ÊÌ¡¹¤Î¥Õ¥£¡¼¥ë¥É¤¬»°¤Ä¤¢¤ëÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
118 ¥³¥í¥ó¤ÎÁ°¸å¤Ë¶õÇò¤¬¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
119 ¥Õ¥¡¥¤¥ë¤Ï°ì¹ÔËè¤Ë½çÈ֤˶ãÌ£¤µ¤ì¡¢
120 ºÇ½é¤Ë¥Þ¥Ã¥Á¤·¤¿µ¬Â§¤¬ÍѤ¤¤é¤ì¡¢
121 ¥Õ¥¡¥¤¥ë¤Î»Ä¤ê¤Ï¤½¤ì°Ê¾åÁܺº¤µ¤ì¤Ê¤¤¡£
123 ¥·¥¹¥Æ¥à´ÉÍý¼Ô¤Ï˾¤à¸Â¤ê¤ÎÈùÄ´À°¤ò¹Ô¤¦¤³¤È¤¬²Äǽ¤È¤Ê¤ë¡£
128 .\"O # sample /etc/suauth file
130 .\"O # A couple of privileged usernames may
131 .\"O # su to root with their own password.
133 # /etc/suauth¥Õ¥¡¥¤¥ë¤ÎÎã
135 # Æó¿Í¤ÎÆø¢¥æ¡¼¥¶¤¬¡¢¼«Ê¬¤Î¥Ñ¥¹¥ï¡¼¥É¤ò
136 # ÍѤ¤¤Æ root ¤Ë su ¤Ç¤¤ë¡£
138 root:chris,birddog:OWNPASS
140 .\"O # Anyone else may not su to root unless in
141 .\"O # group wheel. This is how BSD does things.
144 # ¾¤Î¥æ¡¼¥¶¤Ï wheel ¥°¥ë¡¼¥×¤Ë°¤·¤Æ¤¤¤Ê¤¤¸Â¤ê
145 # root ¤Ë su ¤Ç¤¤Ê¤¤¡£¤³¤ì¤Ï BSD ¤ÈƱ¤¸Æ°ºî¤Ç¤¢¤ë¡£
147 root:ALL EXCEPT GROUP wheel:DENY
149 .\"O # Perhaps terry and birddog are accounts
150 .\"O # owned by the same person.
151 .\"O # Access can be arranged between them
152 .\"O # with no password.
155 # ¤ª¤½¤é¤¯ terry ¤È birddog ¤ÏƱ¤¸¿Í´Ö¤¬
156 # ½êͤ¹¤ë¥¢¥«¥¦¥ó¥È¤Ç¤¢¤ë¡£
157 # ¥Ñ¥¹¥ï¡¼¥É̵¤·¤Ç¸ß¤¤¤Ë¾Êý¤Ë su ¤Ç¤¤ë¡£
168 .\"O There could be plenty lurking. The file parser is particularly
169 .\"O unforgiving about syntax errors, expecting no spurious whitespace
170 .\"O (apart from beginning and end of lines), and a specific token
171 .\"O delimiting different things.
172 ¿¤¯¤Î¥Ð¥°¤¬Àø¤ó¤Ç¤¤¤ë²ÄǽÀ¤¬¤¢¤ë¡£
173 ¤È¤ê¤ï¤±¡¢¥Õ¥¡¥¤¥ë¥Ñ¡¼¥¶¤Ï½ñ¼°¥¨¥é¡¼¤Ë´²Âç¤Ç¤Ï¤Ê¤¯¡¢
174 (¹Ô¤Î»Ï¤áµÚ¤Ó½ª¤ï¤ê°Ê³°¤Ë) ̵Â̤ʶõÇò¤¬¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¤·¡¢
175 ÆÃÄê¤Î¥È¡¼¥¯¥ó¤¬ÊÌ¡¹¤Î¤â¤Î¤ò¶èÀÚ¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
178 .\"O An error parsing the file is reported using
182 ¥Õ¥¡¥¤¥ë¤ò¥Ñ¡¼¥¹¤¹¤ëºÝ¤Î¥¨¥é¡¼¤Ï
184 ¤òÄ̤·¤Æ¡¢AUTH ¥Õ¥¡¥·¥ê¥Æ¥£¤Î ERR ¥ì¥Ù¥ë¤ÇÄÌÃΤµ¤ì¤ë¡£
191 Chris Evans (lady0110@sable.ox.ac.uk)