This file is indexed.

/usr/share/doc/HOWTO/ja-html/Path-7.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>PATH HOWTO: ¥æ¡¼¥¶¡¼ID¤ÎÊѹ¹</TITLE>
 <LINK HREF="Path-8.html" REL=next>
 <LINK HREF="Path-6.html" REL=previous>
 <LINK HREF="Path.html#toc7" REL=contents>
</HEAD>
<BODY>
<A HREF="Path-8.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Path-6.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Path.html#toc7">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s7">7. ¥æ¡¼¥¶¡¼ID¤ÎÊѹ¹</A></H2>

<P>
<P>
<H2><A NAME="ss7.1">7.1 su</A>
</H2>

<P>su¥³¥Þ¥ó¥É¤Ï¿·¤·¤¤¥æ¡¼¥¶¡¼ID¤ò»È¤¦¤¿¤á¤Î¤â¤Î¤Ç¤¹¡£¥æ¡¼¥¶¡¼ID¤ò»ØÄꤷ¤Ê¤¤¤È
root¤¬»È¤ï¤ì¤Þ¤¹¡£
<P>ÉáÄÌ¡¢su¤Ï°ã¤¦¥æ¡¼¥¶¡¼ID¤Ç¥µ¥Ö¥·¥§¥ë¤ò¼Â¹Ô¤·¤Þ¤¹¡£°ú¿ô<B>-</B>(ºÇ¶á¤Î
¥·¥Î¥Ë¥à¤Ï<CODE>-l</CODE>¤¢¤ë¤¤¤Ï<CODE>--login</CODE>)¤Ç¡¢¥í¥°¥¤¥ó¥·¥§¥ë¤Î¤è¤¦¤Ë
¥·¥§¥ë¤ò¼Â¹Ô¤·¤Þ¤¹¡£¤·¤«¤·¥í¥°¥¤¥ó¥×¥í¥°¥é¥à¤ò»È¤¤¤Þ¤»¤ó
<P>
<P>Ä̾ï¤Î¥æ¡¼¥¶¡¼¡§
<BLOCKQUOTE><CODE>
<PRE>
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:. 
</PRE>
</CODE></BLOCKQUOTE>
<P>root¥æ¡¼¥¶¡¼¡§
<BLOCKQUOTE><CODE>
<PRE>
/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
</PRE>
</CODE></BLOCKQUOTE>
<P>su¤Ï¿¤¯¤ÎºÙ¤«¤¤´Ä¶­¤âÊѹ¹¤·¤Þ¤¹¡£
<P>
<H2><A NAME="ss7.2">7.2 sudo</A>
</H2>

<P>¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¥³¥Þ¥ó¥É¤ò°ÂÁ´¤Ë»È¤¦¤¿¤á¤Î¥³¥Þ¥ó¥É¤Î¥°¥ë¡¼¥×¤¬
¤¢¤ê¤Þ¤¹¡£¤è¤¤¥í¥°¥¤¥ó¡¢¥æ¡¼¥¶¡¼¥Ù¡¼¥¹¤ÎÀ©¸Â¡¢¸Ä¡¹¤Î¥Ñ¥¹¥ï¡¼¥É¤Î
»È¤¤Êý¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£¤â¤Ã¤È¤â¤è¤¯»È¤ï¤ì¤Æ¤¤¤ë¤Î¤Ï<B>sudo</B>¤Ç¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
$ sudo env
</PRE>
</CODE></BLOCKQUOTE>
<P>¤Ï¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¤È¤·¤Æ¥³¥Þ¥ó¥É<B>env</B>¤ò¼Â¹Ô¤·¤Þ¤¹(»È¤¨¤ë¤è¤¦¤Ë
ÀßÄꤵ¤ì¤Æ¤¤¤ë»þ)¡£
<P>sudo¥³¥Þ¥ó¥É¤Ï¥Ñ¥¹Áàºî¤Î°Û¤Ê¤ë¥¢¥×¥í¡¼¥Á¤ò¤â¤Ã¤Æ¤¤¤Þ¤¹¡£sudo¤Ï¸¡º÷¥Ñ¥¹¤ò
½¤Àµ¤·¤Æ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤ÏºÇ¸å¤Ë¤Ê¤ê¤Þ¤¹¡£¤·¤«¤·PATH´Ä¶­ÊÑ¿ô¤ÏÊѹ¹¤·¤Þ
¤»¤ó¡£<B>sudo env</B>¤ä<B>env</B>¤ÏPATHÊÑ¿ô¤ÈƱ¤¸ÃͤòÊÖ¤·¤Þ¤¹¡£
sudo¤Ï<CODE>SUDO_USER</CODE>¤È¤¤¤Ã¤¿£²¤Ä¤Î´Ä¶­ÊÑ¿ô¤òÄɲä·¤Þ¤¹¡£
<P>
<P>
<P>
<HR>
<A HREF="Path-8.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Path-6.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Path.html#toc7">Ìܼ¡¤Ø</A>
</BODY>
</HTML>