Red Hat Linux - Archive RedHat

advertisement
Red Hat Linux 9
Red Hat Linux
½›
Red Hat Linux 9: Red Hat Linux
‘
‘
2003 Red Hat, Inc.
ÇY
½›
Red Hat, Inc.
1801 Varsity Drive
Raleigh NC 27606-2072 USA
+1 919 754 3700
888 733 4281
+1 919 754 3701
PO Box 13588
Research Triangle Park NC 27709 USA
ž›Õ
ž›Õ
]Õ
rhl-cg(ZH-CN)-9-Print-RHI (2003-02-20T01:08)
© 2003 Red Hat, Inc.
Open Publication License V1.0
http://www.opencontent.org/openpub/
ÇY
Ç
ýýîãŽó8ñǎ,Ã
Ä ÝÍcÇý{Qq
Ã!cÇýø •
Ä
–‹ÇYċV{ÒhŽ,Ç¢Žq”©l{ÕÁ•{Çý
ø:/,ÇYċVÿÜzŽ,Ç¢Ž&~[)ïÒ\ÄV÷Â*Ûø{q”*¬Ý,”*¬Msñ{*
¬
Red HatRed Hat dRed HatShadow ManÀ)RPMMaximum RPMRPM À)Linux
LibraryPowerToolsLinux UndercoverRHmemberRHmember MoreRough CutsRawhide 1ùċä•Red Hat
{Û)ZÀ)4Û)ÝRed Hat, Inc. ó›)ZÙÇ){Õ~Û)
Linux 4Linus Torvalds {Õ~Û)
Motif ZUNIX 4The Open Group {Õ~Û)
Intel ZPentium 4Intel Corporation {Õ~Û)Itanium ZCeleron 4Intel Corporation {Û)
AMDAMD AthlonAMD Duron1ùAMD K6 4Advanced Micro Devices, Inc. {Û)
Netscape 4Netscape Communications Corporation ó›)ZÙÇ){Õ~Û)
Windows 4Microsoft Corporation {Õ~Û)
SSH ZSecure Shell 4SSH Communications Security, Inc.{Û)
FireWire 4Apple Computer Corporation {Û)
ýV¥ÄZ~{ċÙÇÛ)ZÇYþaÙp‹Vċ
security@redhat.com ·Ø{GPG «4Õ
CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E
ø9
ë ........................................................................................................................................................ i
1. ýV{Í# ............................................................................................................................. i
2. ©lÕ½................................................................................................................................ ii
3. ™u{jß ........................................................................................................................... iv
3.1. ”b{'b ........................................................................................................ iv
4. Õ~|Ñ................................................................................................................................ v
I. ©Gø: ............................................................................................................................................. i
1. ext3 ©Gø: ........................................................................................................................ 1
1.1. ext3 {u ............................................................................................................ 1
1.2. OÇext3 ©Gø: .......................................................................................... 1
1.3. ݦtext3 ©Gø: ............................................................................................. 2
1.4. ¤Ætext2 ©Gø: ............................................................................................. 2
2. b¦8-................................................................................................................................ 3
2.1. b¦8-4 ..................................................................................................... 3
2.2. b¦8- ......................................................................................................... 3
2.3. Íøb¦8- ......................................................................................................... 4
2.4. #Äb¦8- ......................................................................................................... 5
3. ÕÁc›jïÃRAIDÄ ............................................................................................... 7
3.1. RAID 4?........................................................................................................ 7
3.2. xa”&~RAID ................................................................................................... 7
3.3. mGRAID ZžGRAID ........................................................................................ 7
3.4. RAID ÿ/Z"o|Ñ .......................................................................................... 8
4. \öò®ìÃLVMÄ ...................................................................................................... 11
5. ®cÑ?K .................................................................................................................. 13
5.1. †IK, ........................................................................................................... 13
5.2. OIK............................................................................................................... 14
5.3. ÍøIK............................................................................................................... 16
5.4. ­c™IIKLB................................................................................................ 16
6. "c{ ...................................................................................................................... 19
6.1. {˜c{ ....................................................................................................... 19
6.2. ®c{ ....................................................................................................... 21
6.3. ÙÇýî............................................................................................................... 23
II. ¦“ã#{få ......................................................................................................................... 25
7. kickstart “ã ...................................................................................................................... 27
7.1. kickstart “ã4Ú ........................................................................................ 27
7.2. ˜[‰qkickstart “ã ........................................................................................ 27
7.3. Okickstart ©G ................................................................................................ 27
7.4. kickstart 1 ....................................................................................................... 28
7.5. žGÝ ........................................................................................................... 41
7.6. ½“ãlý ........................................................................................................... 42
7.7. “ã€lý ........................................................................................................... 43
7.8. ˜[&kickstart ©G,ú¼~ ............................................................................. 44
7.9. ؓãd ........................................................................................................... 45
7.10. )kickstart “ã .............................................................................................. 46
8. Kickstart {˜ì ................................................................................................................ 49
8.1. äý{˜............................................................................................................... 49
8.2. “ã0............................................................................................................... 50
8.3. ZsãñǓ 1................................................................................................ 51
8.4. IKfå............................................................................................................... 52
8.5. d{˜............................................................................................................... 54
8.6. èy ...................................................................................................................... 55
8.7. 3Û{˜ ........................................................................................................... 56
8.8. X {˜ .................................................................................................................. 57
žGÝ ........................................................................................................... 60
½“ãlý ......................................................................................................... 60
“ã€lý ......................................................................................................... 61
â?©G............................................................................................................. 63
9. äýø:Á… ...................................................................................................................... 65
9.1. žD¯............................................................................................................... 65
9.2. ZsœÍÇÜ* ................................................................................................... 65
9.3. Zsœ\~’Ü*................................................................................................ 67
9.4. Zsœ›úÜ* ................................................................................................... 67
10. žGRAID {˜ ................................................................................................................. 69
11. LVM {˜.......................................................................................................................... 73
III. ¦d#{{˜ ........................................................................................................................ 77
12. d{˜............................................................................................................................ 79
12.1.  .................................................................................................................... 79
12.2. OÁ1ÔËz ................................................................................................. 80
12.3. OÁISDN Ëz .................................................................................................. 81
12.4. OÁ®›‰®ìËz .......................................................................................... 83
12.5. OÁxDSL Ëz .................................................................................................. 84
12.6. OÁY)¢Ëz ................................................................................................. 86
12.7. OÁCIPE Ëz ................................................................................................... 87
12.8. OÁÃ"Ëz ..................................................................................................... 88
12.9. ®DNS ÷˜.................................................................................................... 89
12.10. ®Ìå........................................................................................................... 90
12.11. íÙ÷÷........................................................................................................... 91
12.12. &~{˜©G ................................................................................................... 92
12.13. ÷÷/Ö........................................................................................................... 93
13. äý3Û{˜ ................................................................................................................ 95
13.1. “\ÿ/{˜Óä.............................................................................................. 95
13.2. GNOME Lokkit ............................................................................................... 97
13.3. íÙiptables qÖ ........................................................................................ 100
14. ;›éqÖ{6¯........................................................................................................... 101
14.1. äqÿ/........................................................................................................... 101
14.2. TCP ÌwǓ .................................................................................................. 102
14.3. qÖ{˜Óä ................................................................................................... 102
8.9.
8.10.
8.11.
8.12.
14.4. ntsysv............................................................................................................... 104
14.5. chkconfig ...................................................................................................... 104
14.6.
........................................................................................................... 105
15. OpenSSH......................................................................................................................... 107
15.1.
SSH ............................................................................................ 107
15.2.
OpenSSH
...................................................................................... 107
15.3.
OpenSSH
.......................................................................................... 107
15.4.
........................................................................................................... 111
16.
NFS ................................................................................................... 113
16.1.
NFS ............................................................................................ 113
16.2.
NFS
........................................................................................... 113
16.3.
NFS
........................................................................................... 114
16.4.
........................................................................................................... 118
17. Samba.............................................................................................................................. 119
17.1.
Samba ........................................................................................ 119
17.2.
Samba
........................................................................................... 119
17.3.
Samba
............................................................................................... 124
17.4.
........................................................................................................... 125
18.
DHCP ........................................................................................ 127
18.1.
DHCP ............................................................................................ 127
18.2.
DHCP
........................................................................................... 127
ÙÇýî
&~ Ú
{˜
qÖì
{˜
0’
ÙÇýî
d©Gø:Ã Ä
&~ Ú
ñ ©Gø:
sñ ©Gø:
ÙÇýî
&~ Ú
{˜
qÖì
Ëz
á0
ÙÇýî
ÄÕÌå{˜NFà Ä
&~
{˜
qÖì
{˜
0’
ÙÇýî
qÖì{˜
äý÷˜
å€÷˜
ŠÌå÷˜
qÖì÷˜
®ru
â?÷˜
ÙÇýî
“\qÖì{˜
ë
¦“\#{žGݖc
yVZ“\–c
&~.?ØÒZyV
yV¡n
ÄØÒ
Ä˜É {yV>F
Oü{yV
AyV
6¯qÖì
ÙÇýî
{˜
t5ÌK
5ÌK
,KL
èy{˜
~’få
èy
×qÇý
…GQS®Ã Ä{˜
IV. ø:{˜
;›Ñ6¯
¢~/,
å
¢~;›ÑǓ6¯
¢~ċ;›Ñ6¯
½B;›Ñ
&©G,,;›Ñ6¯
ÙÇa~Ǔé~;›Ñ6¯
k
~’Zk{˜
c~’
•~’au
ck
•kau
×q{˜
éŸÇ{‰:
Bøø:få
ø:ŸÇ
?~Þ
©Gø:
mG
ÙÇýî
K\å{˜
ýK\å
18.3.
DHCP
............................................................................................... 131
18.4.
........................................................................................................... 132
19. Apache HTTP
.............................................................................................. 133
19.1.
........................................................................................................... 133
19.2.
........................................................................................................... 135
19.3.
................................................................................................... 140
19.4.
....................................................................................................... 143
19.5.
........................................................................................................... 144
19.6.
........................................................................................................... 145
19.7.
........................................................................................................... 145
20. Apache HTTP
...................................................................................... 147
20.1.
.................................................................................................................. 147
20.2.
................................................................................ 147
20.3.
............................................................................................... 149
20.4.
........................................................................................ 149
20.5.
........................................................................................................... 150
20.6.
........................................................................................................... 151
20.7.
CA
............................................................................. 152
20.8.
............................................................................................... 153
20.9.
........................................................................................................... 154
20.10.
..................................................................................................... 154
20.11.
......................................................................................................... 155
21. BIND
...................................................................................................................... 157
21.1.
................................................................................................... 157
21.2.
................................................................................................... 159
21.3.
....................................................................................................... 161
22.
.......................................................................................................................... 163
22.1.
........................................................................................................... 163
22.2.
.................................................................................................................. 164
22.3.
....................................................................................................... 166
23.
MTA
........................................................................................... 169
..................................................................................................................................... 171
24.
...................................................................................................................... 173
24.1.
Ctrl-Alt-Del
.............................................................................. 173
24.2.
........................................................................................ 173
24.3.
........................................................................................ 174
24.4.
....................................................................................................... 174
24.5.
.................................................................................... 174
24.6.
..................................................................... 175
24.7. floppy
.................................................................................................... 175
25.
.............................................................................................................. 177
25.1.
....................................................................................................... 177
25.2.
................................................................................................... 178
25.3.
....................................................................................................... 179
25.4.
................................................................................................... 179
25.5.
....................................................................................................... 180
25.6.
................................................................................................... 183
26.
.................................................................................................................. 185
26.1.
........................................................................................................... 185
26.2.
........................................................................................................... 187
26.3.
........................................................................................................... 188
26.4.
.................................................................................................................. 189
26.5.
........................................................................................................... 190
27.
...................................................................................................................... 193
27.1.
............................................................................................... 194
ÇIPP K\å ........................................................................................ 195
ÏÇUNIX (LPD) K\å ......................................................................... 196
Samba (SMB) K\å ............................................................................... 197
Novell NetWare (NCP) K\å ................................................................ 198
JetDirect K\å ....................................................................................... 199
K\ånRZˆe .................................................................................... 200
K\A ....................................................................................................... 201
•?K\å ............................................................................................... 201
â?{˜©G ................................................................................................. 203
×q{˜ ..................................................................................................... 204
®K\* ................................................................................................. 205
á0K\å ..................................................................................................... 207
#¦K\ø: ................................................................................................. 210
ÙÇýî......................................................................................................... 210
28. Ě{Ö .................................................................................................................. 213
27.2.
27.3.
27.4.
27.5.
27.6.
27.7.
27.8.
27.9.
27.10.
27.11.
27.12.
27.13.
27.14.
27.15.
28.1. cron .................................................................................................................. 213
28.2. anacron............................................................................................................. 215
28.3. at batch ......................................................................................................... 216
28.4.
........................................................................................................... 218
29.
.......................................................................................................................... 219
29.1.
................................................................................................... 219
29.2.
................................................................................................... 219
29.3.
................................................................................................... 220
30.
.......................................................................................................................... 221
30.1. 2.4
................................................................................................. 221
30.2.
........................................................................................................... 221
30.3.
............................................................................................ 222
30.4.
........................................................................................................... 223
30.5.
RAM
................................................................................. 223
30.6.
............................................................................................ 223
31.
.......................................................................................................................... 227
31.1.
................................................................................................... 227
31.2.
........................................................................................................... 229
................................................................................................................................... 231
32.
RPM
................................................................................................. 233
32.1. RPM
............................................................................................. 233
32.2.
RPM.......................................................................................................... 234
32.3.
............................................................................................ 238
32.4. RPM
........................................................................... 240
32.5.
........................................................................................................... 241
33.
.............................................................................................................. 243
33.1.
....................................................................................................... 243
33.2.
....................................................................................................... 244
34. Red Hat
................................................................................................................... 247
............................................................................................................................................. 251
A.
................................................................................................................... 253
A.1.
............................................................................................................ 253
A.2.
............................................................................................................ 253
A.3.
................................................................................................ 255
A.4.
............................................................................................................ 256
B. Gnu Privacy Guard
.................................................................................................. 257
B.1.
............................................................................................................ 257
B.2.
............................................................................................................ 257
B.3.
........................................................................................................ 258
B.4.
............................................................................................. 260
Z
ÙÇýî
†“©G
½ †“©G
††“©G
5††“©G
ÿX
Çý{X
ï÷ÿ
ñÿê{X
‰qÿ
Dèð) cn4
DèZsãñǓ
XÜL
XÜLÓä
ÙÇýî
V. žGÝ®
&~ u®žGÝ
{÷ø)
&~
5†žGÝ{üÖ
~ óŠŒÁLüC
ÙÇýî
žGÝ®Óä
“ãžGÝ
ÍøžGÝ
d
VI. Ž9
O轛X
Oèê÷
OèX
Oè\šX
ÙÇýî
œ {˜©G
´·>å
ÄØÒé
ÄPBïyV
ÂZ
€
sñÚØ
sœÚØ
jhüÖóý°Ú
ÙÇýî
B.5.
............................................................................................................ 260
B.6.
............................................................................................................ 262
B.7.
............................................................................................. 262
B.8.
............................................................................................................ 263
................................................................................................................................................... 265
................................................................................................................................................... 275
ë
¡h&~Red Hat Linux ½›
Red Hat Linux ½›Ý9•˜[½›Red Hat Linux ø:uw{‰{få˜*
‰ýZ½IÒÁ5Ö{uÐÏ{˜Z½›ø:ÇYýVÒ4{®. ýVÿ
XêŽõ¥
Ý{1ÇÇ¢ÝiÕ
• ÷˜ÃNICÄ
• ‰qkickstart “ã
• {˜Samba á0
• &~RPM u®žG
• g½ø:få
• ÿX
ýVúIÄÁÇÌ\IÕ
• ¦“ã#{få
• ¦d#{{˜
• ø:{˜
• žGÝ®
”"½éRed Hat Linux ø:.‹äý{ꉘ*‰õùäý1{kýîǞ
˜{˜óÁÝB8QªcÇ>kÝRed Hat Linux œ ˜*‰Í°ÿ{©lǞ
˜Red Hat Linux ©Gø:Ç>kÝRed Hat Linux k
Red Hat Linux  C ~ {HTML ZPDF Ç ý ó © l c Þ , 1 I t Ç Ç ¢ , 1
óhttp://www.redhat.com/docs/ 5¥It
Õ
¯lýV¦,'nê!cfåÇa”ÝÖRed Hat Linux qÕuÜzó·¢{©l½¶ƒ
¤–uzùÝi{fåÇ¢,1óRed Hat Linux {‘<cÞItÇ,1ó1ŒÞItÕ
http://www.redhat.com/docs/manuals/linux
1.
ýV{Í#
ýVó,{äúÞ)êJVÇÝiêRed Hat Linux 9 ¥{cÕÇ1ùŽõúÖVF{1
ýV¥{­•#ÝiÕ
"c{
‘
cêY9u‰:˜[{˜Z®c{
èy{˜
‘
cêY9u‰:˜[&~èy{˜Óä
ë
ii
~’{˜
‘
ý9új0uÝi®~’Zk{×qÓäÇ?%‰:êø:Þêc~’€{<
o
Samba
ý9újßuÝic{Samba qÖì{˜Óä
K\å{˜
‘
ý9c{K\å{˜ÓäŽÁGNOME K\®ì1ùÁÆÞ{V8K\åC)­
cÞU
‘
Kickstart
1.úÍcuÝiRed Hat Linux 9 ¥{c 1Kickstart {˜ìY9ú
ÍcuÝiJcÕ
d{˜
‘
ý9.!c{d®ÓäŽÁZÕÍc
-Z†Ï{˜
‘
ý9.ú#tRed Hat Linux œ 
‘
2.
kickstart
©lÕ½
óÝÖYýC~{ÇÌÕ?tìJ#&~êX3{LBZ/ûY«Bñ+4
‹Ý,¬{Ö~3ZÂuS,X3#1,ÒÇ¢a•3¡n~Y«0*uS,{È«#
¡nÝiÕ
command
‘
×Ã1ùÙÇv*ø:{×Ç¥&~{›Ä~Y«0*S,Ç5,Ò,1ó
×q¥Eœ#Ý#l€•[Enter] Eué~׋Ç×¥ÌÝia~«0*
+{#þ˜©GÖÄÇóY«<YÇÇ¢ú@×{\IÇOrÇ#ÑÌú
+×¾˜Õ
&~cat testfile ×u†hÓ*ø9¥Çw)testfile {©G
Linux
filename
‘
©GÖø9Ö4»1ùRPM žGÝÖ~Y«0*S,Ç,Òó{Red Hat Linux
ø:Þ?óøÇwYÇÖÁ{©GÝø9¾˜Õ
{Ìø9¥{.bashrc ©GÝi~{bash shell ½BZ/Ö
/etc/fstab ©GÝi•X3ø:÷÷Z©Gø:{få
˜*.&~Çy‘qÖ솓©GIÛǓ{›Ç“ãwebalizer RPM
application
‘
Y«0*5,ҔǓ4Ǫà~’{a~Ǔæø:žG#龘Õ
&~Mozilla u¨y‘
ë
iii
[key]
‘
EcÞ{•E~Y«0*S,¾˜Õ
&~[Tab] EV\ÇEœÇnl€•[Tab] E{ªàåÞÒÌ+ø9¥åD
Çn{©Gï,
[key]-[combination]
ÇâE{\~Y«0*S,¾˜Õ
[Ctrl]-[Alt]-[Backspace] âE\ÌRñ{CơDz(ÃtCo~9¶ôÝ;›Ñ
GUI ŽÁÞ{©ý
‘
óGUI ŽÁ¶ôÝ=¥{)#ÎÝáªÌ~Y«0*+Ç~u)ÒìÇGUI ¶
ôÝGUI ¶ôÞ{ìÇãޘ¦… 'Ýã#{©ýľ˜Õ
˜*.ó{¶ôâÇ“*ŽF={›Ç ‰=… '
GUI ¶ôÝ=Þ{!Þÿh\
‘
~Y«0*,+{#Î,ÒÇ •Çnh\{!Þÿ˜*óGUI ¶ôޚâêYÇ
#Çañh\{ÙÇ\I¾˜Õ
óGNOME ªà{©GÇÌtcO)ü 1ÇÇãŽó3=¥Kõ
Çshell +
˜*‰óGUI h\ޚâøï×{›ÇǢ̘Á{¾¥Ä+Õ
šâÁÆÞ{Ìh\=> Ç => EmacsuéÄEmacs ©ýöì
GUI ¶ôÝ=¥{•<
‘
Y«0*,ÒÇ4GUI ¶ôÞ,šâ{•<¾˜Õ
šâ€R•<u(Ãt¦b†{
‘
computer output
‘
Y¡0*{©ý,ÒÇ4®åó×q¥+{QñEœ×{'aFصå1
ùǓÝlý¥5FQœ{Ä*
+ÇÑ4~Y«Â*uS,{¾˜Õ
&~ls ×u+ø9{ŽÕ
$ ls
Desktop
Mail
about.html
backupfiles
logs
mail
paulwesterberg.png
reports
×(Ã{QñÃóÞÁ{¾¥Ç4ø9{ŽÄ~Y«0*u+
prompt
‘
+4®åó5,ÒÇóV{QœÇÌ~Y«0*u+¾˜Õ
$
#
[stephen@maturin stephen]$
leopard login:
user input
‘
~’Eœ{©ýÃX4ó×q¥¤4óGUI ¶ôÞ{©ý'{QœÑÌ~Y«0*u
+óÁ{¾¥Çtext ~Y«0*+Õ
²{ø:Zsœä•©ý{“ãǓljóboot: +Eœtext ×
ë
iv
ø$ƒiÇ·¢¤&~«X3{0*u®ìJfå•Lfåé{ø:{­ÇÝÇÇ¢ú
)Õ" ­BeÝ´·¾˜Õ
Õ
#ÇLinux KILBU¦é›€Çrose X4ROSE ÝrOsE
" ø9/usr/share/doc Ýiê•{ø:ޓã{žGÝ{Žfå
­
˜*•êDHCP {˜©GÇYJ•#ó­éDHCP EŸÇƒ€bÌH
Be
X1Ê~’üPu‰q†žÖ— &~Ǟ{~’ARÇø:‰&~ÊARuŸqø:®
Ö
´·
˜* XŸqCÓIKÇqÖì“ãÌÍøċ“ãê{mcPÄìÞ{?IKø:hf–
‹‰â{jâÇ>X Y«“ã¡n
3.
™u{jß
Red Hat Linux ½›4Red Hat Red Hat Linux ~’
Øù‹H{|ÑÄ)ñ{ËL¥
{\I±øcÓäZcǓ{qÇýÌújßuÝiYJcÓäZcǓ
3.1.
”b{'b
˜*óRed Hat Linux ½›¥êF/ÇÝV‹•ŸýV{OFÇ·¢iæ‚B
t3{u<¼>5BugzillaÃhttp://bugzilla.redhat.com/bugzilla/Ä
bP•rhl-cg {ç·
ó
bç·{Ç>Òh½ýV{)Õ
rhl-cg(ZH-CN)-9-Print-RHI (2003-02-20T01:08)
‹½Yý{)Ç·¢bh#ê‰3{{Çý
ë
v
˜*‹•ŸýV{OFÇ>¦,-û˜Ò˜*êFØÇ>ÝiÄó9ùãaÇO
$·¢,144†It
4.
Õ~|Ñ
˜*‹PRed Hat Linux 9 {t*ÇýÇ>ÔÕ~1"ÜzRed Hat ú0,10I{ÃõY
C
âéo{Red Hat Linux —¬½Ç,10I\IÝ\\1ïÞ{YCÕ
• Red Hat |Ñ— ,Red Hat, Inc. {|Ñ¥Üz•“ã¯{ÐÏ
• Red Hat d— 4”Íc{žGÝÇ1ùzB{ø:½›{“\/-<>k
Ýhttp://rhn.redhat.com
• Under the Brim: The Red Hat E-Newsletter — šÇÛ,†z,Red Hat ÜR!c{cªZ—¬f
å
Õ~Ç>6¯Õhttp://www.redhat.com/apps/activate/,1óRed Hat Linux —¬]{g
ºyºZ¸º{~ÞIt{—¬ID
•Red Hat Linux {b|Ñ{-ûýîÇ>kÝRed Hat Linux “㍥{Ž9ÕÜR
b|Ñ
¡\3 êRed Hat Linux¼Ö3#~¼¼
Red Hat ©l
vi
ë
I.
©Gø:
©Gø:ÃFile systemčSÑ?ó®åÞ{©GZø9©Gø:,1‹X3{Â*Çw)©
Gø:¡nÃfile system typesÄYJÂ*û½få4˜[úÑ?©GZø9ìJ©Gø:
¡nÑ?­…jâÇìJ©Gø:¡nOmcPÄì{?R¤ÝYÇ\IÿXext3b¦
KRAIDZLVM ©Gø:¡nǤÿXêparted YÇ~’®IK{Óä
ø9
©Gø: ................................................................................................................................... 1
b¦8-............................................................................................................................................ 3
ÕÁc›jïÃRAIDÄ ........................................................................................................... 7
\öò®ìÃLVMÄ.................................................................................................................. 11
®cÑ?K .............................................................................................................................. 13
"c{ .................................................................................................................................. 19
1. ext3
2.
3.
4.
5.
6.
1.
ext3
©Gø:
,Red Hat Linux 7.2 qÇý)Çå€{©Gø:.,ext2 Â*ݦÄ~*ext3 ©Gø:
1.1. ext3
{u
Ó1ƒÇext3 ©Gø:4ext2 ©Gø:{ŸÇýYJŸ
Øê1€ÖuÕ
,~u
‘
óIžäžÝø:ÿdÑÁX‡ø:åÇunclean system shutdownÄǚÇóø:
Þñê{ext2 ©Gø:Œ&~e2fsck Ǔu5†Ù—uY4ÇiD{,ÇÇ
/4ó5†Ý9LÞ©G{jL©GòÇÇÌLLYºZs-óYÏ-Ç©GòÞ
{ċjâÑXú6¯
„ext3 ©Gø:
Ø{~ç,0*?›øX‡ø:倖òŸq$¡©Gø:5
†&~ext3 ø:Ǘu5†óìJ>D{mGHØmcPÄìHÄ<Yb
X‡ø:å€Çext ©Gø:{Á…-XÊâ©Gø:{LBÝ©G{jÞ½Ç
4Êâ~•‘—u{~†“ÃjournalÄ{LB½Êâ{mG¤ÝÇå€{~
†“‰“LÕƨuÁ…
jâqPu
‘
ext3 ©Gø:ó˜êX‡ø:å
ØÍH{jâqPuext3 ©Gø:㎠{jâzI{⏡nZÿ/Red Hat Linux 9 å€{˜ext3 ©GòuâÑj⦩Gø
:çÕ{°Ý—u
¤Ý
‘
¦ext3 ²jâUœXŽ'ÇÇ{ÿ®Åóõj<YB…ext2 ø:°Y4O
ext3 {~ç,0*€šêmcPÄì{>äÄ,1,®«~Ü*¥ u€š¤
ÝÇb4Y)ÌóâÑjâqPu0Á)ñJã
;4ݦ
‘
,144ޏX²­cÂ*š²ext2 ݦext3 ø:Ç,ÜzH{~*©Gø
:{€Öu>kݑ1.3  uÜR˜[qÄYÖ{€Ò
˜*‰qRed Hat Linux 9 {qr“ãÇúI{Éø:{Linux IK{倩Gø:Ò4ext3
˜*,ìÇ&~ext2 IK{Red Hat Linux Çý¥ÿǓãǓÒÌ㎲YJIKݦ
ext3 IKÇ?%XÌ¿jâû>kÝRed Hat Linux “ã{Ž9ÿ?ø
:
1ȁ̍sŸqext3 IK{OZ‡®˜*‹ext2 IKÇ?óäqRed Hat Linux 9Ç
,1!,1{IKZÂ*š9Ç†zÝt‘1.3 
1.2.
OÇext3 ©Gø:
“ã€Ç‹Ì‹OÇc{ext3 ©Gž˜Ç˜*ÉRed Hat Linux ø:ê
Çc{cPÄìÇ,.ÉYÇcPÄìIKÇ?&~ext3 ©Gø:
Oext3 ©Gø:{Z½˜ÄïÕ
1. &~parted Ýfdisk uOIK
2. &~mkfs u²IKÂ*šext3 ©Gø:
2
1. ext3
©Gø:
&~e2label ÉIK)ü
Oñš
5. ²IKt/etc/fstab ©G¥
•‰qYJZ½{fåÇ>kݑ59
3.
4.
1.3.
ݦtext3 ©Gø:
ǓêX•#IKÞ{.?jâuÉ?{ext2 ©Gø:Ç~ç,˜*©
Gø:ó•¦Ï-.úñǔ~ç,ÒÌú+©Gø:{Êø9¥{.journal ©G˜
*©Gø:–‹úñÇ~ç,ÒÌú[uÇÊýÒXÌñó©Gø:¥
²ext2 ©Gø:ݦÄext3Ç~9Ê~’€EœÕ
tune2fs
/sbin/tune2fs -j /dev/hdbX
ó1ÞץDz/dev/hdb ¦Ä÷÷ÖDzX ¦ÄIKRh
1Þ׉qq€Ç>h½²/etc/fstab ©G¥{ext2 ©Gø:•Äext3 ©Gø:
˜*óݦ{Ê©Gø:ÇR‰&~Çinitrd n4ÃÝRAM cÄuZsO
ÇÇäqmkinitrd Ǔ•&~mkinitrd ×{fåÇ>Eœman mkinitrd¤>h½
{GRUB ÝLILO {˜Ìñœinitrd
˜*•¦–‹ÄÕÇø:…ÎêZsǐX,©Gø:RÌúñext2 X4ext3
1.4.
¤Ætext2 ©Gø:
Oext3 #éu€vcÇìJcÓä,¤X|ÑǾ˜Ç,‰&~resize2fs u
ÀBìIKǔ×X|Ñext3óY«<YÇ,̋²©Gø:ö¤ÆÄext2
¤ÆIKnjDWñIK04~9Ê~’Çl€EœÕ
umount /dev/hdbX
ó1ÞץDz/dev/hdb ¦Ä÷÷ÖÁDzX ¦ÄIKRhý1€{+¾×RÌ&
~hdb1 uS,÷÷ZIK
ZDz©Gø:¡n•Ãext2Ç1Ê~’üPEœ1×Õ
/sbin/tune2fs -O ^has_journal /dev/hdb1
1Ê~’üPEœ1×u5†IK{FØÕ
/sbin/e2fsck -y /dev/hdb1
l€/,Eœ1×u²IK­cñext2 ©Gø:Õ
mount -t ext2 /dev/hdb1 /mount/point
ó1ÞץDz/mount/point ¦ÄIK{ñš
ZÇÍøÊø9{.journal ©G04ݦtIK{ñø9¥Çl€EœÕ
rm -f .journal
óҋÇext2 IKê
˜*{ȏ²IK•¦Äext2Ç>ÔÍc/etc/fstab ©G
2.
b¦82.1.
b¦8-4
¥{b¦8-ÃSwap spaceÄóÔ®?ÃRAMÄúßwú&~˜*ø:‰Íõ{
?ýÍÇÔ®?.²ßwÇ?¥XÙ×{ÒÌú#tb¦8-V¯lb¦8-,1
Q‹èÞ?{åì
ØÐÏÇb4Y«0Xa”úh)4é?{RSb¦8- •mcP
ÄìÞÇǟœÔ®?z
b¦8-,14ÇÛ~{b¦IKÃM?{0ÄÇb¦©GÇÝÜV{\
b¦8-{LBa”#h•{®å?{ÜõZ32 MBYÜNJ¥vL{ÇÇb4ÇX
§,2048 MBÃ2 GBÄ
Linux
2.2.
b¦8-
‹Ç̋ó“ã€Íõ{b¦8-¾˜Ç²ø:?,64 MB ÿt128 MBÇ
b4‹128 MB {b¦?˜*‰q{4LÞ&~?{v*Ýäq‰LÞ?{Ç
“Dzb¦Kt256 MB ,Ì鋼
‹Ü« ÕÇb¦IKÝÇb¦©GM?Çb¦IKÇX,Ç¥–
‹õè88-,~ÇOb¦IK,ÌXLŽ4
Çb¦IKÃ"÷/dev/hdb2 4.{b¦IKÄÕ
1. mcPÄìXóú&~ÃIKXúñÇb¦IKXúé~ÄHtYø{{!
;\04óÍÇÜ*Zs{ø:>kݑ99uÜzRø:ZsœÍÇÜ*{€Ò
h
+ñ©Gø:Ç !,
˜*PÄìXÝ9[ú&~{IKǤ,1WñYJIKÇ&~swapoff ×um
cPÄìÞ{ċb¦8-
2. &~parted Ýfdisk uOb¦IKparted fdisk &~åuÍ0"ÇO$ǐ
‹parted óY°Ìú€Ò&~parted uOb¦IKÕ
• óshell +1Ê~’üPEœ×Õparted /dev/hdbY°{/dev/hdb 4{Q‹
88-{mcPÄì{÷÷ÖÁ
• ó(parted) +ÇEœprint u†?{IKZ88-{jÞ厊1MB 
\ g½mcPÄìÞ{88-jÞÇ1ù.ÉcO{b¦IKI{{8-jÞ
• ó(parted) + Ç E œmkpartfs part-type linux-swap start end Ç
Y°{part-type 4primaryextendedlogical ¥{ÇÇstart 4IK{å)
šÇend 4IK{ªŽš
´·
•#ÌÁýÇóEœ>ž,/
•
Eœquit uRñparted
óÇÒ,1Ob¦IKêÇ&~mkswap ×u÷˜b¦IKóshell +1Ê~
’üPEœ1×Õ
mkswap /dev/hdb2
4. Áýé~b¦IKÇEœ1×Õ
3.
4
2.
b¦8-
swapon /dev/hdb2
óZsé~Çö/etc/fstab ©GuÝi1qÕ
/dev/hdb2
swap
swap defaults
00
óø:'ZsÇÇÒÌé~cO{b¦IK
6. cêb¦IK?é~ǃ€Ç>†cat /proc/swaps Ýfree ×{Qñuhâb¦
IK.úé~ê
b¦©GÕ
1. g½cb¦©G{LBÇRLBÆ11024 ug½L{LB¾˜ÇLB{64 MB {b¦©
G{LLB65536
2. óshell +1Ê~’üPEœ1×ÇÙ¥{count •.{LLBÕ
dd if=/dev/zero of=/swapfile bs=1024 count=65536
3. &~1×u÷˜b¦©GÕ
mkswap /swapfile
4. Áýé~b¦©GX4óZsÄé~Ç&~1×Õ
swapon /swapfile
5. óZsé~Çö/etc/fstab ©GuÝ91qÕ
/swapfile
swap
swap defaults
00
ø:'ZsÇÇÒÌé~cO{b¦©G
6. cêb¦IK?é~ǃ€Ç>†cat /proc/swaps Ýfree ×{Qñuhâb¦
IK.úé~ê
5.
2.3.
Íøb¦8-
Íøb¦IKÕ
1. mcPÄìXóú&~ÃIKXúñÇb¦IKXúé~ÄHtYø{{!
;\04óÍÇÜ*Zs{ø:>kݑ99uÜzRø:ZsœÍÇÜ*{€Ò
h
+ñ©Gø:Ç !,
˜*PÄìXÝ9[ú&~{IKǤ,1WñYJIKÇ&~swapoff ×um
cPÄìÞ{ċb¦8-
2. óshell +1Ê~’üPEœ1×uh½b¦IK.ú¢~ÃY°{/dev/hdb2 4
b¦IKÄÕ
swapoff /dev/hdb2
3. ,/etc/fstab ©G¥ÍøYÇ1ø
4. &~parted Ýfdisk uÍøIK‹parted óY°Ìú€Ò&~parted uÍøI
KÕ
• óshell +1Ê~’üPEœ×Õparted /dev/hdbY°{/dev/hdb 4{Q‹
b¦8-{mcPÄì{÷÷ÖÁ
• ó(parted) +ÇEœprint u†?{IK?g½.Íø{b¦IK{'R
h
• ó(parted) +ÇEœrm MINORÇY°{MINOR 4.Íø{IK{'Rh
2.
b¦8-
5
´·
•#ÌÁýnjEœth{'Rh
•
Eœquit uRñparted
Íøb¦©GÕ
1. óshell +1Ê~’üP‰q1×u¢~b¦©GÃY°{/swapfile 4b¦©
GÄÕ
swapoff /swapfile
2. ,/etc/fstab ¥Íø”1ø
3. Íø"©GÕ
rm /swapfile
2.4.
#Äb¦8-
²b¦8-,ìÿ#tÿÇ>D$¬Íøb¦8-{€ÒÇò$¬b¦8-{€Ò
6
2.
b¦8-
3.
ÕÁc›jïÃRAIDÄ
3.1. RAID
4?
{äýø{4²õÇBnÍ${cPÄì\?ÄjïuHtLn›"{PÄìÄÃ
Ht{uݐ›uYÇPÄìjïó®åڥҘ3Ç\{\öÑ?\ÃÝPÄì
RAID 4«óõÇcÞI±få{0Ç&~cIÃdisk stripingÇRAID ÿ/0Ä
cº4Ãdisk mirroringÇRAID ÿ/1ÄZQ‹ÛSDè{cIÃdisk striping with parityÇRAID ÿ/5ă¡{buHt›uÇ>„o-Ç?%ÃÝVÄcÖU{Q
PÇ
°,mcÿd¥Á…{Å
RAID {äýÆ®4ÇjâŒ&~—{o*úI±tjï¥{PÄìÞKtYÇø{Çj
âŒúI¿ÄLB—{LÃLB/ž432K Ý64KÇ,&~X3LBĚLÑÌÊ
âÄ~{RAID ÿ/UœÙ¥{ÇmcPÄìhjâúÖRÇYǟÇÒÌ',uŸ
qÇÄÇõÇPÄìP64ÇLPÄì{"6
RAID
3.2.
xa”&~RAID
3.3.
mGRAID ZžGRAID
[‰&LÞjâþC,ù{|ØÄ{ø:®ÊÄÑ,1,RAID b¥IC&
~RAID {ÌÆOÝiÕ
• O¤Ý
• &~NJcÇ,Ñ?ŽÞ
• >ècHQu{X¼k/
RAID
b‹Ü«ÕmGRAID ZžGRAID
3.3.1.
mGRAID
3.3.2.
žGRAID
ä•mG{ø:ÕÁ•Ìåƒiu®RAID ø:Ç?%ÇóÌåÿ~ÇcuS,š
RAID jï
ËztSCSI ;›ì{DzRAID jï,+\ÇSCSI PÄì{÷÷Ò4ÇmGRAID {¾
Çi\{RAID ø:²Ä‹RAID ÿ®œÑÝ#t •\cø:¥{;›ì¥r
Çø:Ñ4/,ÇÊ/{SCSI ;›ìËztÌåÞÇéÌåÓÇÇÒ6Ç\{c
RAID ;›ì¤1{o*ñÇßhv*ø:{SCSI ;›ìÇbe;›Ä‹PÄìýü{"
/µóYJ<YDzPÄ삜tRAID ;›ì¥ÇҘ3SCSI ;›ìÄÇb4Çó
Yƒ€Ç²Ç¢tRAID ;›ì{{˜°Çv*ø:ûXÌwÙ¥{K/
žGRAID óXcÃL÷÷Äh¥"È¡RAID ÿ/OÇX‰›"{c;›ì
Ýyb¦Žc ǞGRAID Øê!Í${‰û0Ǥ,1~óv"({IDE c1ùSCSI
c&~˜†{O¤CPUǞGRAID {uê§ñmGRAID
1
1.
yb¦ŽcãŽXÉø:äž#ømcPÄì
8
3.
ÕÁc›jïÃRAIDÄ
X{MD PÄǓ4RAID ‰û0™{ǾÇq\ÕÁ•mG䕞G{jï{
uÕÁ•qÖìCPU {uZñރi
•óRed Hat Linux “ãǓ¥{˜žGRAID {fåÇ>kݑ109
1 JéžGRAID Õ¡lU{~’ïÞêJÇ{!­{uÕ
• &~"Ç{­OŸÇ
• ä•X{{˜
• X­O,óLinux åì-#‡jï
• &~8{ø:ýÍó€Ñ­Ojï
• é,yb¦{PÄì{|Ñ
• éCPU {Ä51"¼~ìJCPU €šÕ
Linux
3.4. RAID
ÿ/Z"o|Ñ
|ÑÈ¡{˜ÇÝiÿ/0145Z"oYJRAID ¡n{½B˜Õ
ÿ/0 — RAID ÿ/0DzžúÁ*IÇÇ4Á5u{IjânóbY?›øú
Uœjï{jâúI¿ÄÇl€úUœjï¥{ÙÇcÄÊÇ,㎄D~{°ÝI/O u
Çb4ÇX
ؐ›uÿ/0 jï{Ñ?Å•mGRAID ċÄÊc{Åݞ
GRAID ¥Ä‹ÄÊIK{Å
ÿ/1 — RAID ÿ/1Çݺ4Çú&~{ϟ•[ÙÇo*{RAIDÿ/1 /,ój
ï¥{šÇÄÊcÞUœ#3{jâÃócÞǺ4‚ýÄu
ؐ›u„•º
4{;\uZ°Ý{jâ,~uÇÇø…liq&~ÜÇ1Þcv*{ÿ/1 ,Ìó
ÖR&~?q6¯uÜz°¤jâQÇb4Ç͞~{4ÕÁv*1
Ø°¤I/O QG
ÿ/1 Øêô{jâ,"uÇ?
°êÖRÖ$­{Ǔ{‰quÇb4Ç#é{D~
v° ÿ/1 jï{Ñ?ŦmGRAID ¥º4{mcƒÝžGRAID ¥º4{IKƒ
{û?Å#3
ÿ/4 — ÿ/4 &~ø¥t\ÇcPÄìÞ{ÛSDè uâjâÇÍ7\•/Öu{I/O
X4Ln©GQ„•Û…{ÛSDècS,êû‹´¶Çÿ/4 ôèó–‹UÃ¥?ƒ
¡{bz3{<Y&~¯lÿ/4 óìJIK0™¥4«, 1øÇÇóRed Hat Linux
RAID “ã¥eX4ÇãŽ{ 1 mGÿ/4 {Ñ?Å#é•Ä‹ÄÊcV«Ç€
{Ñ?ŞGÿ/4 {Ñ?Å#é•Ä‹ÄÊIKV«Ç€{Ñ?ÅØ*Ç¢{L
B#3{݀
ÿ/5 — Y4!Ê({RAID ¡n/,óìJÝ\\jïÄÊcPÄì¥IYÛSD
èÇRAID ÿ/5 ½êÿ/4 ¥û‹{Uœ´¶{u´¶4ÛS®ŸÇ&~S
{CPU ZžGRAIDÇY«<Y/žX4L¯¦ÿ/4 øÇو*4:éÁuÇÖ
RLL§,êUœuÿ/5 ²ž¦UÃ¥?å&~u>„Y«:éÁumGÿ/5 {
Ñ?Å#h•Ä‹ÄÊcV«Ç€{Ñ?ŞGRAID ÿ/5 {Ñ?Å#h•Ä‹
ÄÊIKV«Ç€{Ñ?ÅØ*Ç¢{LB#3Ä
RAID
•
•
2
•
3
4
•
RAID ÿ/1 {S$i°ÇO²#3{fåUœjï¥{ċcÇYŒDêPÄì8-ž˜Ç˜
*÷ÁêRAID ÿ/1ÇO{ÊIKÃ/Ä?ó•ÜÇ40G {PÄìÞǯlá‹80G 8-Çe
6¯Ù¥{40GÇOi{40G Ҙ340G {º4ø
3. ÛSDè{få4ä•jï¥{ÙÇcÄÊ{Žu®{hjï¥{ìÇcÞ{jâHÇ
YfåÒÌú~u­Ojâl€Çó¦HcƒÇú­O{jâ,1~uw½cÞ{I/O >
FÖó¦Hcƒ€ÇÇ,1~uóccÞ­Ojâ
4. RAID ÿ/4 ¦ÿ/5 Ä38-#3Çb4ÿ/5 e€•ÿ/4„•YÇÆOÇÿ/4 Xú|Ñ
2.
3.
•
ÕÁc›jïÃRAIDÄ
9
"oRAID — "oRAID 4«;\{PÄìà1"OÇvL{ŠPÄìó"
oRAID ¥ÇKL,ÇÄÊPÄìtÇÄÊPÄìú'I{ǐ‹ó‘ÇPÄìúq
\߀ÇbÝtÇPÄìY«à–‹
Ø[u0Á{¼CÇOI/O v*XÔ,
óÄÊPÄì-úI"oRAID –‹
Ø[›uÇ/"ÞÇÇ\„ê,"u— ˜
*[ÇÄÊPÄìHêÇrÇjïÑXú&~Ç{Ñ?Å4ċÄÊc{Z
10
3.
ÕÁc›jïÃRAIDÄ
4.
\öò®ìÃLVMÄ
,Red Hat Linux 8.0 )Ç\öò®ìÃLVMÄ,1ómcPÄìI{Þ&~
LVM 4«²mcPÄì8-I{Ä\öò{0ÇYømcÒX&~IKú;4­™L
B
&~LVMÇmcPÄìÝmcPÄìø\ÒÌI{ÉÇÝõÇÔ®òÃphysical volumesÄÔ
®òÃJÖÇ1ÞPÄì
Ô®òú\?Ä\öòÃlogical volume groupÄǍ{¾i4/boot IK/boot IKX
•\öòÇOZsãñǓÃÖRǘ*.²/ IK8ó\öòÞljOÇ
I{/boot IKÇÇXa•ò{\I
„•Ô®òÃJÖÇ1ÞPÄìǘ*.t\öòJÖÇ1ÞPÄìÇÒa”óPÄ
ìÞOÇÝõÇÔ®ò
C4-1. \öò
\öòúIÄ\öòÃlogical volumesÄÇÇ¢úI{êñšÃ˜/home Z/ÄÇ1ù©Gø
:¡nØext3ÄhIKHtêÇ¢{ô!Ç\öò¥{88-Ò,1úÉ\öò
uIK{LBhìÇc{mcPÄìútø:ÞÇÇ,1út\öò¥Ç\öò
4,1j0{IK
C4-2. \öò
12
4.
\öò®ìÃLVMÄ
0Áǘ*ø:&~ext3 ©Gø:uIKÇmcPÄìRúIÅč½LB{IK˜*ìI
KúwÇj0”IK{LB?X Ž4ý"ìIKú#tÇmcPÄìÞÇÆu{m
cPÄì8-Œzú­cI{X3{IKÝXú&~
LVM |ьúHœXå€{Red Hat Linux 9 X¥.HœêLVM |Ñ
ê‰óRed Hat Linux “ã,Ç¥{˜LVM {-<Ç>kݑ119
5.
®cÑ?K
ó“ãêRed Hat Linux ø:€Ç,.†?{IK,Ǖ#IK{LBÇÍøIKÇÝ
,88-ݎ{mcPÄìÞIKparted ÓäÌ㎉qYJÖý9ÿX˜[
&~parted ×u‰q©Gø:Ö$iǤ,1&~fdisk u‰qõj$¡ÖÃø­c
™IIK1iÄÜzfdisk {ÍõfåÇ>ÝÖـÒVÃmanÄÝfåÃinfoÄ
˜*.†Ý)@ø:{c8-~ÞÇ>k‘26.3 
Œ“ãêparted žGÝb&~parted ÓäéÄpartedÇóshell +1Ê~
’üPEœ×parted /dev/hdbÇY°{/dev/hdb 4.{˜{÷÷ÖÁÌt
Ç(parted) +Eœhelp u†,~×{ï,
˜*.OÍøIKÝ­c™IIKLBÇIKÄó÷÷Xtóú&~ÃIKXú
ñÇ?%b¦8-Xúé~ÄHtYÇø{{!;\04óÍÇÜ*¥Zsø:>k
‘99uÜzZstÍÇÜ*{€Òh
+ñ©Gø:Ç !,
˜*PÄìXÝ9[tóú&~{IKÇ,1&~umount ×uWñIKÇ&~swapoff ×
umcPÄìÞ{b¦8-
,5-1Ý9ï!ž~{parted ×±€{9-û‰:êÙ¥{\I
×
check minor-num
cp from to
help
mklabel label
mkfs minor-num file-system-type
mkpart part-type fs-type start-mb
end-mb
mkpartfs part-type fs-type start-mb
end-mb
move minor-num start-mb end-mb
print
quit
resize minor-num start-mb end-mb
rm minor-num
select device
set minor-num flag state
,5-1. parted ×
Ãc
‰q©Gø:{;\5†
²©Gø:,ÇIK…›tÇI
KÖfrom Zto 4IK{'Rh
+,~{×ï,
IK,Oc)ü
O¡nfile-system-type {©Gø:
XOc©Gø:›*IK
›*IK?O½{©Gø:
#ÄIK
+IK,
Quit parted
­c™IIKLBÇ,start-mb tend-mb
ÍøIK
Ç÷÷u{˜
óIKÞ÷˜)“Östate 4onǏ
4off
14
5.
5.1.
®cÑ?K
†IK,
éÄêparted €ÇEœ1×u†IK,Õ
print
A table similar to the following will appear:
Disk geometry for /dev/hda: 0.000-9765.492 megabytes
Disk label type: msdos
Minor Start
End Type Filesystem Flags
1
0.031 101.975 primary ext3
boot
2
101.975 611.850 primary linux-swap
3
611.851 760.891 primary ext3
4
760.891 9758.232 extended
lba
5
760.922 9758.232 logical ext3
‘q+êc{LB֑q+êc)ü¡n֛{Qñ+êIK
, ó I K , ¥ ÇMinorà ' Ä ) ü 4 I K R h ¾ ˜ Ç ' R h 1 { I K
Z/dev/hda1 # é Startà ) Ä ZEndà ˆ e Ä Š 1MB  \ Typeà ¡ n Ä
4primaryextendedlogical ¥ { Ç Filesystemà © G ø : Ä 4 © G ø : { ¡ n Ç
Ç , 1 4ext2ext3FAThfsjfslinux-swapntfsreiserfshp-ufssun-ufs
Ýxfs ƒ Flagsà ) “ Ä ï ï ñ ê I K ú ÷ ˜ { ) ï , ~ { ) “
‹Õbootrootswaphiddenraidlvm Ýlba
" X­céÄparted u X3{÷÷Ç&~select ×Çò›Ë÷÷Öǘ/dev/hdbl€Ç",
1†Ý{˜Ç{IK,
5.2.
OIK
´·
XACótóú&~{÷÷ÞOIK
óOIKÇZsœÍÇÜ*ÃÝWñ÷÷Þ{ċIK?÷÷Þ{b¦8-Ä
éÄpartedÇ/dev/hda 4óÙ¥OIK{÷÷Õ
parted /dev/hda
†h{IK,ug½÷÷Þ4d‹ê{88-
print
˜*88-XêÇ,1­c™I?IK{LB-<>kݑ5.4 
5.
®cÑ?K
5.2.1.
15
›*IK
ÊâIK,uû½cIK{厚ZIK¡nšÇ÷÷ސ‹ÇÌIKÃÃj0IKĘ
*.‹Ç1ÞIKÇ,1‹®ÇÌIKÇÇj0IKÇój0IK,1‹õÇ\öI
K•cIK{–cÇ>kÝRed Hat Linux “㍥{Ž9An Introduction to Disk
Partitions
¾˜ÇóìÇmcPÄìÞ,1024 MB t2048 MB -OÇ©Gø:ext2 {ÌIKÇEœ
1×Õ
mkpart primary ext3 1024 2048
" ˜*&~mkpartfs ×ÇIKO€©Gø:ÌúOlÇparted X|ÑOext3 ©Gø:
O$ǘ*.OÇext3 ©Gø:Ç>&~mkpartÇl€&~ã€Ì€Ò{mkfs ×uO©Gø
:mkpartfs ,1ólinux-swap ©Gø:¡nÞ&~
‹•[Enter]EǕ#ÒÌÇO$ó‰q>5†×
OêIK€Ç&~print ×uh€ÄOIKóIK,¥Ç?ä÷th{IK¡n©Gø:¡
nZLB¤‰ÔcIK{'RhÇYøb,1ÉÇÕ1)üa”†
cat /proc/partitions
{Qñuh½Xê#/YÇcIK
5.2.2.
Â*šIK
IK󤖋©Gø:~Á{×uO©Gø:Õ
/sbin/mkfs -t ext3 /dev/hdb3
´·
Â*šIKÌ{ȏ» ø?ó•”IKÞ{[jâ
5.2.3.
ÉIKÕÒ)ü
ZÇÉIKÕÒ)ü¾˜Ç˜*cIK4/dev/hda3Ç.²Ç)/workÕ
e2label /dev/hda3 /work
“ãǓå€&~IK{ñš*IK{)üuh½)ü{Õu,1&~
[.~{)ü
Red Hat Linux
16
5.
5.2.4.
®cÑ?K
Oñš
1Ê~’üPOñšÕ
mkdir /work
5.2.5.
t/etc/fstab
1Ê~’üPö/etc/fstab ©GuÝicIKc{Yqa”¡‘Õ
LABEL=/work
/work
ext3
defaults
12
‘ïa”Ý9LABEL=Çl€Ë±ÉIKÕÒ{)ü‘ïa”Ý9cIK{ñšÇ
ïa”4©Gø:¡nØext3 ÝswapĘ*.ê‰Íõ•Â*š{fåÇ>ÝÖman
fstab {€ÒVÃmanÄ
˜*‘ï4defaults YÇ#ÇIKÒÌóZsúñX­cZsñIKÇ1Ê~’
üPEœ1×Õ
mount /work
5.3.
ÍøIK
´·
XACÍøtóú&~{÷÷Þ{IK
óÍøIKÇZsœÍÇÜ*ÃÝWñ÷÷Þ{ċIKÇ÷÷Þ{b¦8-Ä
éÄpartedÇY°{/dev/hda 4óÙ¥ÍøIK{÷÷Õ
parted /dev/hda
†h{IK,ug½Íø{IK{'RhÕ
print
&~rm uÍøIK¾˜ÇÍø'Rh3 {IKÕ
rm 3
‹•[Enter]EǕ#ÒÌÇO$ó‰q>5†×
ÍøêIK€Ç&~print ×uh€IKóIK,¥.úÍø¤a”†
cat /proc/partitions
{Qñuh½XwIK.úÍø
!€Z4²Ç,/etc/fstab ©G¥ÍøItZ.úÍø{IK#a{qÇl€,©G¥Íø
Ç
5.
®cÑ?K
5.4.
17
­c™IIKLB
´·
XAC­c™Itóú&~{÷÷Þ{IK{LB
ó­c™IIKLBÇZsœÍÇÜ*ÃÝWñ÷÷Þ{ċIK?÷÷Þ{b¦8-Ä
éÄpartedÇ/dev/hda 4óÙ¥­c™IIKLB{÷÷Õ
parted /dev/hda
†h{IK,ug½­™LB{IK{'Rh1ùÇ{厚Õ
print
´·
­™LB{IKÞ.~{8-ŒL•cO{LB
­c™IIKLBÇ&~resize ×Çl€Ë±IK{'RhÇ1MB \ {å)šZª
Žš¾˜Õ
resize 3 1024 2048
IKú­c™IêLB€Ç&~print ×uh€IK.úth­c™IêLBÇ?%ä÷th
{IK¡nZ©Gø:¡n
ótžÜ*­cZsêø:€Ç&~df ×uh½IK.úñÇ?%Ç¢{cLB.ú#
/
18
5.
®cÑ?K
6.
"c{
øê)@ø:Þ&~{c8-Ã>kݑ26.3.1 ÄǤ,1/,"c{u!›c8
-ÇO$h~’&~ê,õ{c8-ÝIKRßwÇø:®ÊÒÌzt´·
c{,1Ç~’{˜,1~’{˜Y«ÙuêɚÇ~’I{ÇvB{
{uÿ®Ç|©G؞…GZç·ÄǑãŽêÆ¢t,/{1øêp‹vL{{
Ã"½1ø‹{kÄ
ø$1iÇ{Xêú÷˜ÄéÄ~cLjÞ{;›Ç¤êú÷˜Ä遚jÞ{;
›„•šÝ9©G#{fåÇ遚{;›ê;›,úO{©GjÞ
"c{Çquota RPM Œóø:Þú“ã•“ãRPM žGÝ{-<Ç>kݑV \
I
6.1.
{˜c{
"c{Ç>&~1Z½Õ
1. •/etc/fstabué~šÇ©Gø:{{
2. ­cñ©Gø:
3. O{©GÇ­cÄc~Þ,
4. I{{
1ÞZ½óÁȁ¥ú-ûÿX
6.1.1.
é~{
1Ê~’üP&~õ¡{öìuɉ{{©Gø:usrquota ZÃÝÄgrpquota 1Õ
LABEL=/
/
ext3 defaults
11
LABEL=/boot
/boot
ext3 defaults
12
none
/dev/pts
devpts gid=5,mode=620 0 0
LABEL=/home
/home
ext3 defaults,usrquota,grpquota 1 2
none
/proc
proc defaults
00
none
/dev/shm
tmpfs defaults
00
/dev/hda2
swap
swap defaults
00
/dev/cdrom
/mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0
/mnt/floppy auto noauto,owner,kudzu 0 0
óÞÁ{¾¥Ç/home ©Gø:Þé~ê~’Zk{
6.1.2.
­cñ©Gø:
êuserquota Zgrpquota 1€Ç­cñšÇ#afstab øú•{©Gø:˜*
ì©Gø:–‹ú[ŸÇ&~Ç&~umount ׀ò›Ëømount ×u­cñYÇ©Gø
:˜*ì©Gø:tóú&~Ç­cñ”©Gø:{!;„04­cZsø:
20
6.
6.1.3.
"c{
O{©G
­cñêšÇé~ê{{©Gø:€Çø:óÒê&~c{êX,Ç©Gø:ýü
ß%X|Ñ{Z4äqquotacheck ×
quotacheck ×5†é~ê{{©Gø:Ç?šÇ©Gø:OÁÇhc~u{,”
,Ìú~uÍcv*ø:{c~Þ©G$iÇ©Gø:{c{©GúÍc
ó©Gø:ÞO{©GÃaquota.user Zaquota.groupÄÇ&~quotacheck ×{-c
1¾˜Ç˜*~’Zk{я/home IKé~êÇó/home ø9OYJ©GÕ
quotacheck -acug /home
1?›øó/etc/mtab ¥Ä‹ñê{:NFS ©Gø:ÑÌú5†uû½4dé~ê{
-c 1½šÇé~ê{{©Gø:Ña”O{©GÇ-u 1½5†~’{Ç-g
1½5†k{
˜*-u Ý-g 1ú½Ç‹~’{©GúO˜*½ê-g 1ǐ‹k{©G
ÌúO
©GúO€Çäq1×uĚÇé~ê{{©Gø:{hc~Þ,Õ
-a
quotacheck -avug
Ä~ 1˜Õ
• a — 5†Ä‹é~ê{{óýñ{©Gø:
• v — ó5†{,Ç¥+-û{çÕfå
• u — 5†~’c{få
• g — 5†kc{få
quotacheck äqq€ÇZé~{Ã~’Z/ÝkÄ#a{{©G¥ÒÌUœ~•šÇé
~ê{{©Gø:Ø/homeÄ{jâ
6.1.4.
š~’I{{
!€Z4&~edquota ×I{c{
~’{˜{Ç1Ê~’üPóshell +‰q1×Õ
edquota username
 š Ç . " { { ~ ’ ‰ q ” Z ½ ¾ ˜ Ç ˜ * ó/etc/fstab ¥ /home I K
Ã/dev/hda3Äé~ê{ljqêedquota testuser ׀Çø:å€{öì¥Ò̋˜
+Õ
Disk quotas for user testuser (uid 501):
Filesystem
blocks
soft
hard inodes
/dev/hda3
440436
0
0 37418
0
soft
0
hard
Õ
&~EDITOR ¢¸#ÞĽB{©ýöì•#YÇöìDzEDITOR ¢¸#Þ÷˜t
¥{öì{qr4»
edquota
6.
"c{
21
‘ï4é~ê{{©Gø:{ÖÁ‘ï+ê~’h&~{Lj±€{Üï~u÷˜
~’ó”©Gø:Þ{žmL!Ýinodes ï+ê~’h&~{šjÞ!€Üï~u
÷˜~’ó”©Gø:Þ{žmš!Ý
m!4~’Ýk,1&~{c8-{ýé!LŠHtê”!݀Çc8-ÒXòú~’
Ýk&~ê
ž!½B,ú&~{!Lc8-ÞZm!X3{4Ǟ!,1óãÏú§,YãÏ
úÁ,ÞÏÃgrace periodÄ,ÞÏ,1~ƨI¨Bj±jÝÛj,+
˜*1ފ¥{[Çú÷˜0Ç Ç!ÝÒXÌú÷˜ó©ýöì¥Ç•#.{!
ݘÕ,
Disk quotas for user testuser (uid 501):
Filesystem
blocks
soft
hard inodes soft
/dev/hda3
440436 500000 550000 37418
0
hard
0
Dè~’{{4dú÷˜Ç&~1×Õ
quota testuser
6.1.5.
škI{{
{¤,1ÊâkuI{¾˜Çdevel k÷˜k{Ç&~1×Ãó÷˜k{
ǔkŒ?óÄÕ
edquota -g devel
1Þ×ó©ýöì¥+?{k{Õ
Disk quotas for group devel (gid 505):
Filesystem
blocks
soft
hard inodes
/dev/hda3
440400
0
0 37418
0
soft
0
hard
•!ÝÇâ?©GÇl€{˜{
Dèk{4dú÷˜Ç&~1×Õ
quota -g devel
6.1.6.
š©Gø:I{{
ÊâšÇé~êk{©Gø:uI{{Ç&~1×Õ
edquota -t
ZÇedquota ×#‘ÇYÇ×Ìó©ýöì¥Kh{©Gø:{Õ
Grace period before enforcing soft limits for users:
Time units may be: days, hours, minutes, or seconds
Filesystem
Block grace period Inode grace period
/dev/hda3
7days
7days
•#L,ÞÏ݁š,ÞÏÇâ?é©G{•#Çl€Rñ©ýöì
22
6.2.
6.
"c{
®c{
˜*{ú"ÇǢ҉ú‘— ̑0*4
‰†{4dú§ñ?hâ{{
thuhlǘ*~’B'§ñÆ¢{{ÝVљHtÆ¢{ž!Çø:®ÊÒ,1Êâ
~’¡nZc8-éÆ¢Ó*{k/u)ñ«û|®Ê,1ÐÏ~’u5Âéc8-{
&~Ç,1•‰~’{{
6.2.1.
ç·c{
Oc~Þ緉äqrepquota Ó侘Çrepquota /home ×ÌÄ1QñÕ
*** Report for user quotas on device /dev/hda3
Block grace time: 7days; Inode grace time: 7days
Block limits
File limits
User
used soft hard grace used soft hard grace
---------------------------------------------------------------------root -36
0
0
4 0 0
tfox -- 540
0
0
125 0 0
testuser -- 440400 500000 550000
37418 0 0
†Ä‹é~ê{{©Gø:{c~ÞÇ&~1×Õ
repquota -a
YPç·¯låui;\Njš…‰)€Ò+óšÇ~’€Á{-- 4«gä~
’4d§ñÙL!Ý݁š!Ý{O¤0˜*[Ǟ!ú§ñÇ#a{- qÒÌú- S
֑Ç- S,L!ÝǑÇS,š!Ý
grace ï/ž48¸˜*ìǞ!ú§ñÇYïÒÌÝ9,ÞÏ¥{›-˜*,ÞÏ.
§,êÇÙ¥ÒÌ+none
6.2.2.
âÑ{{thu
hì©Gø:–‹úqrWñØDŽ•ø:ÿdÄÇYҋäqquotacheckX,Çý
"ø:–‹ÿdÇquotacheck ,1ú½Ï²žäq½Ïäq1×uâÑ{{thu
ÃÄ~ 1ó‘6.1.1 ¥úÃcÄÕ
quotacheck -avug
½ÏäqÇ{!;\04&~cron1Ê~’üPÇ,1&~crontab -e ×u®Ý
½Ï{quotacheckÇ,1ó1ø9ƒ8˜Çäqquotacheck {lýÃ&~!
‰{-ÅÏ-ÄÕ
• /etc/cron.hourly
• /etc/cron.daily
• /etc/cron.weekly
• /etc/cron.monthly
!°h{{:jâ,1óÄIÛ{©Gø:–‹úÙ×&~ÜzO$Çcron Öa”ó
©Gø:ú!è&~®Ý˜*Y-ó&~{{©Gø:¥?X:Ç&~õÇcron
ÖóX3{-šÇ©Gø:äqquotacheck
>k‘289uÜR•{˜cron {-<
6.
"c{
6.2.3.
23
é~Z¢~
,1X²{÷˜0 u¢~Ç¢~’Zk{Ç&~1×Õ
quotaoff -vaug
˜*-u Ý-g 1–‹ú½Ç‹~’{ú¢~˜*½ê-g 1ǐ‹k{Ìú
¢~
­cé~{Ç&~Q‹3ø 1{quotaon ×
¾˜ÇÄ‹©Gø:é~~’Zk{Õ
quotaon -vaug
½©Gø:Ø/homeÄé~{Õ
quotaon -vug /home
˜*-u Ý-g 1–‹½Ç ~’{Ìúé~˜*½ê-g 1ǝk{Ìú
é~
6.3.
ÙÇýî
•c{{ÍõfåÇ>k1ýî
6.3.1.
“ãê{©l
• quotacheck
6.3.2.
•
edquotarepquotaquotaquotaon quotaoff {€ÒVÃmanÄ
#V÷
Red Hat Linux ø:®é¤C~ — óhttp://www.redhat.com/docs ù©lcÞ,1I
t”C~Ý9cRed Hat Linux ø:®Ê
Ø{‹Ñ?®ÃÝ9c{Ä{òµf
å
24
6.
"c{
II.
¦“ã#{få
Red Hat Linux “ãÿXêRed Hat Linux {“ãZJäý{“ã€ùF\ølÇ°
ÿ“ã 1eóýV¥úÿXYÇ\I
Øêékickstartë̓ãbÄ{€Òø:
Á…Ü*Ãótžäqÿ/¥ÃZs”˜[Zsø:Ę[ó“ã¥{˜RAID1ù˜[
ó“ã¥{˜LVMÝÖRed Hat Linux “ã{3kLYÇ\IuŸq1Þ
ù{°ÿ
“ãÖ
ø9
“ã
{˜ì
äýø:Á…
žG {˜
{˜
7. kickstart
................................................................................................................................. 27
8. Kickstart
............................................................................................................................ 49
9.
.................................................................................................................................. 65
10.
RAID
............................................................................................................................ 69
11. LVM
..................................................................................................................................... 73
7.
kickstart
7.1. kickstart
“ã
“ã4Ú
Žõø:®ÊÍ65•&~Ě{“ã0uóÆ¢{åìޓãRed Hat LinuxwY
«‰ÇRed Hat êkickstart “ã0&~kickstart Çø:®Ê,1O\Ç©Gǔ©
GÝié›nRed Hat Linux “ã¥Ä®¯{¯{ÃI
kickstart ©G,1úâó\ÇqÖìø:ÞÇ?,1úÇ®åó“ã,Ç¥ÖRY«“ã
0ê|Ñ&~\Çkickstart ©GuóõÑåìޓãRed Hat LinuxÇ,ďdZø:
®Ê{®. kickstart tĚL\IRed Hat Linux {“ãÖ
7.2.
˜[‰qkickstart “ã
“ã,1&~ýcýmcPÄìÝ/,NFSFTPHTTP u‰q
&~kickstart njÕ
1. OÇkickstart ©G
2. OÇQ‹kickstart ©G{ZscÇÝódÞ
ؔ©G
3. ê÷“ãd
4. )kickstart “ã
ý9-û‰:êYJZ½
kickstart
7.3.
Okickstart ©G
©G4Ç;\{©ý©GÇÝ9Ç1øï,ǚÇ1øÑ~E)Ò,1/,
ø9°{sample.ks ©GÇ&~kickstart {˜ìuO
ö
©lc¥
ÇÖÝ,>U
“ãǓ¤Êâó“ã¥{ OêÇkickstart ©G{¾
ÇúUœ©G/root/anaconda-ks.cfg ¥a”,1&~[©ýöìݲ©Gû
?ASCII ©ý{©ÿ®ìuöÇ
DÇóOkickstart ©G?ï¯Õ
• šBŒ•~“½ø:/ùÒǚ{1øX•“\ïB{~“Õ
ׁ— kݑ7.4 uÜRkickstart 1{ï,ŒÝiF{ 1
%packages — -<>kݑ7.5 
%pre Z%post — Y܁X•~“ÇX4‰{-<>kݑ7.6 Z‘7.7 
kickstart
RH-DOCS
Red Hat Linux
Red Hat Linux
•
•
•
•
•
•
•
X‰{1ø,1úQ
Q[‰{1øÌs—“ãǓ
+~’QœéYÇ1ø{ÃIÇҘ3~’ó›n{“ã
,Ç¥ú
+{ø‹É£ÃIƒ€Ç“ãb̙ğqÃø:ǑÇQ{1
øÄ
1³RÃ#Ä>{éqúh*Õ:úƒQ
é•kickstart ÿÇï1ø4‰{Õ
28
7. kickstart
“ã
ªÓ
ªÓ|Ñ
“ã0
÷÷{b)Ã¥÷÷4‰q“ãĉ{Ä
Ec÷˜
upgrade E
ZsãñǓ{˜
¥éÿ½êÙÇ1øÇ J1øRúƒQÃÕ?ÇYÝižGÝ Ä
•
•
•
•
•
•
•
7.4. kickstart
1
ï 1,1ú8˜ókickstart ©G¥˜*Íõ¡&~CošŽÁuOkickstart ©GÇ,
1&~ kickstart {˜ìa~Ǔ-<>kݑ89
Õ?
˜*ì 1€Á˱êÇRÃ=ÄÇǀÁҌ½ÇŠó+¾×¥ÇiRÃ[]Ä¥{ 14
×{, kj
Ã, Ä
Zinteractive #‘ǐX,ÇďÝt¶ôÇLõ~•®A
auth ÝauthconfigÉÄ
‘
ø:÷˜èy 1ÇZauthconfig ×#‘Ç€V,1ó“ã€äq•Lå€÷˜Ç
=/ž4·{e?X4¶{
autostep
‘
--enablemd5
‘
šÇ~’=Ñ&~md5 ·
--enablenis
‘
é~NIS |ѕLå€÷˜Ç--enablenis &~ÇódÞ{[­‚óÄ
‹<YÇ­Ña”&~--nisdomain= 1uCÓ÷˜
--nisdomain=
‘
~óNIS qÖ{NIS ­Ö
--nisserver=
~u
ØNIS qÖ{qÖìÃå€/,BÄ
--useshadow Ý--enableshadow
‘
&~¶=
‘
7. kickstart
“ã
29
--enableldap
‘
é~/etc/nsswitch.conf ¥{LDAP |ÑÇãŽ{ø:,LDAP ø9¥5•~
’{fåÃUIDÌø9shell Ä&~” 1nj“ãênss_ldap žG
݌¤z&~--ldapserver= Z--ldapbasedn= u½qÖìZäïDN
--enableldapauth
‘
&~LDAP èy0Çé~êpam_ldap ÜLZLDAP ø9uèyù•#=
&~” 1nj“ãênss_ldap žG݌¤z&~--ldapserver= Z-ldapbasedn= u½qÖìZäïDN
--ldapserver=
‘
˜*½ê--enableldap Ý--enableldapauthÇ&~” 1u½&~
{LDAP qÖì{ÖÁ” 1ó/etc/ldap.conf ©G¥ú÷˜
--ldapbasedn=
‘
˜*½ê--enableldap Ý--enableldapauthǔ 1½êÑ?~’få
{LDAP ø9d¥{DNÃ#/ÖÁÄÇ÷˜ó/etc/ldap.conf ©G¥
--enableldaptls
‘
&~TLSÃQ€“\Ć¯” 1ãŽLDAP óèy5LDAP qÖ옷{
~’ÖZ=
--enablekrb5
‘
&~Kerberos 5 uèy~’Kerberos ü?Xw•Ìø9UIDÝshell {f
åO$ǘ*é~êKerberosÇR‰&”Ó*5ê‰YJ~’AR{fåÇ0
4&~/usr/sbin/useradd ×ÇÝé~LDAPNISÝHesiod˜*&~”
1njã‹pam_krb5 žGÝ
--krb5realm=
‘
{Ó*5Äa{Kerberos 5 ­
--krb5kdc=
‘
­>F
ØqÖ{KDC˜*{­‹õÇKDCÇ&~ÏRÃ,ÄuIÅÇ¢
--krb5adminserver=
‘
{­¤äqkadmind {KDC”qÖìÿ®•#=1ùÙÇ®>F˜*
‹XŽÇKDCǔqÖìŒ4ÌKDC
--enablehesiod
‘
†¯~’Ìø9UIDZshell é~Hesiod |ѕ˜[ó{dÞ÷˜Z
&~Hesiod {-<Ç>kÝ/usr/share/doc/glibc-2.x.x/README.hesiod ©G
ÇÝióglibc žGÝ¥Hesiod 4DNS {Çj0ÇÇ&~DNS 9uÑ?•~
’k1ùÙÇ1ø{få
--hesiodlhs
‘
Ã&DÇleft-hand sideÄ 1Ç÷˜ó/etc/hesiod.conf ¥” 1
ú
E~ug½ó†¯DNS få~uœÂ{ÖÁǦLDAP &~äïDN {?B
#‘
Hesiod LHS
Hesiod
30
7. kickstart
“ã
--hesiodrhs
‘
Hesiod RHSÍDÇright-hand sideÄ 1Ç÷˜ó/etc/hesiod.conf ©G¥
” 1úHesiod E~ug½ó†¯DNS få~uœÂ{ÖÁǦLDAP &~äïDN
{?B#‘
" † ¯ ~ ’ jim { f å ÇHesiod E † ¯jim.passwd<LHS><RHS>Ç Ç a
” ú ‰ Û Ä ¡ ‘ Æ {passwd 1 ø {TXT 9 Ãjim:*:501:501:Jungle
Jim:/home/jim:/bin/bashÄ k { < Y 4 ˜ $ Ç  X , & ~ {
4jim.group<LHS><RHS>
•Rhu†¯~’ZkǍ½501.uidjim.passwd{CNAMEǍ½501.gid
jim.group{CNAMEÕ?ÇóEg½œÂÖÁÇLHS ZRHS {ÁX8š[.]Ç
O$LHS ZRHS /ž~š>
--enablesmbauth
‘
&~SMB qÖìÛnSamba ÝWindows qÖìÄuèy~’SMB èy|ÑX
w•Ìø9UIDÝshell {fåO$Ç¥é~” 1ÇR‰&”Ó*5ê
‰YJ~’AR{fåÇ04&~/usr/sbin/useradd ×ÇÝé~LDAPNIS
ÝHesiod˜*&~” 1njã‹pam_smb žGÝ
--smbservers=
‘
~u)SMB èy{qÖìÖÁ½XŽÇqÖìÇ~ÏRÃ,ÄuIÅÇ¢
--smbworkgroup=
‘
SMB
qÖì{Ó*ÖÁ
--enablecache
‘
é~nscd qÖnscd qÖ¥?•~’kZÈ¡ÙÇfå˜* /,
dÇ&~LDAPNISÝhesiod u”•~’Zk{fåÇ¥?ÒÌ/‹~
ÉÄ
½ZsãñǓa”˜[ú“ãÇ1ùa”“ãLILO ¤4GRUB“ãZÿщYÇ
1éÿÓǘ*–‹½--useLiloÇ%LILO 4h{ZsãñǓÇZsãñ
ǓÒÌú•GRUBóÿâLILOÇ&~bootloader --upgrade 1
bootloader
‘
--append=
‘
½Xkj½õÇkjÇ&~8ÂIÅÇ¢¾˜Õ
bootloader --location=mbr --append="hdd=ide-scsi ide=nodma"
--location=
‘
½UœZs9{ ˜‹HŠ˜ÕmbrÃ倊ÄÖpartitionÃóÝ9XI
K{‘Ç×KޓãZsãñǓÄÖÝnoneÃX“ãZsÝñǓÄ
--password=
‘
˜*&~GRUBÇ&~YÇ 1u÷˜GRUB ZsãñǓ=Ça”ú~u!›
éGRUB shell {6¯ÇOó °,1”?X 1
7. kickstart
“ã
31
--md5pass=
‘
¥š&~GRUBÇZ--password= #‘ǐX,=a”.²ú·
--useLilo
‘
&~LILO :GRUB ZsãñǓ
--linear
‘
¥&~LILOÇ&~linear
~linearÄ
LILO
1ÖÇ{ø{4€5/ŽÃóå€&
--nolinear
‘
¥&~LILOÇ&~nolinear LILO 1Ölinear 4å€
--lba32
‘
¥&~LILOǛ&~lba32 Ü*:Ä5
--upgrade
‘
ÿ?{ZsãñǓ{˜Çâ٥Ƌ{1ø” 1,~•ÿ
Ã, Ä
óOcIKƒÇ,ø:ÞÍøIKå€XÌÍø[IK
clearpart
‘
Õ
˜*&~êclearpart ×Ç --onpart ×ÒXú~ó\öIKÞ
--linux
‘
ÍøċLinux IK
--all
‘
Íøø:ÞċIK
--drives=
‘
½,¥ÍøIK{PÄ쾘Ç1×ÍøÌIDE ;›ìÞ{ÜÇPÄì
Þ{IKÕ
clearpart --drives hda,hdb
--initlabel
‘
²cò)ð){ø{倊þ˜Õx86 &~msdosÇItanium &~gptÄY
Ç 1i‹~ÇOó“ãêcmcPÄì€Ç“ãǓÒX̯4dað)cò
)
32
7. kickstart
“ã
Ã, Ä
óõjPCI ø:ÞǓãǓÌthÄæt1ÔZSCSI lÇóv{ø:
ÞZìJPCI ø:ÞÇkickstart ‰š
+bItth{÷÷device ×·ª“ãÇ
“u“ãi{ÜLÇÇ{Â*4Õ
device
‘
device <type> <moduleName> --opts=<options>
<type>
‘
&~scsi Ýeth u¦
<moduleName>
‘
&~a”ú“ã{XÜL{ÖÁu¦
--opts=
‘
”ÉXÜL{ 1Õ?ǘ*² 18óZR°Ç,1”õÇ 1ž˜Õ
--opts="aic152x=0x340 io=11"
Ã, Ä
›æPCI "Ç?Ä‹÷÷ñœ,~{ÜL
driverdiskÃ, Ä
‘
PÄǓc,1ókickstart “ã¥&~‰²PÄǓc{Ž…›tø:mcPÄìì
IK{Êø9¥l€Ç‰&~driverdisk ×u·ª“ãǓtý°K¯IPÄÇ
“c
deviceprobe
‘
driverdisk <partition> [--type=<fstype>]
<partition>
‘
Ý9PÄǓc{IK
--type=
‘
©Gø:¡nØÕvfatext2ext3Ä
Ã, Ä
3Û 1,1ókickstart ¥{˜”{˜Z“ãǓ¥{3Û{˜ ¶ô#éaÕ
firewall
‘
firewall <securitylevel> [--trust=] <incoming> [--port=]
<securitylevel>
‘
&~1“\ÿ/ƒu¦Õ
• --high
• --medium
• --disabled
--trust=
‘
óY°ïñ÷÷ǘeth0ÇÌãŽÄ‹u”÷÷{b/,3ÛïñXŽ
Ç÷÷Ç&~--trust eth0 --trust eth1úyX&~6--trust eth0, eth1
Yø~ÏRIÅ{Â*
7. kickstart
“ã
33
<incoming>
‘
&~1qÖu¦Ç,㎍½{qÖ,3Û
• --dhcp
• --ssh
• --telnet
• --smtp
• --http
• --ftp
--port=
‘
,1&~à=ÕNF{Â*u½ãŽ,3Û{à=ž˜Ç˜*.ã
ŽIMAP 6¯/,3ÛÇ,1½imap:tcp¤,1䍽jà=Ǟ˜Ç
ãŽUDP Ýóà=1234 Þ/,Ǎ½1234:udp½õÇà=Ç~ÏRIÅÇ
¢
Ã, Ä
·ªø:­c“ãX4ÿ‹ø:Y4å€Ü*é“ãÓnj
,cdromharddrivenfsÝurlÃ~•ftp Ýhttp “ãÄ¥½Ç“ã¡ninstall
×Z“ã0׌óI{qÞ
install
‘
cdrom
‘
,ø:Þ{‘ÇcPÄ쥓ã
harddrive
‘
,ýPÄì{Red Hat “ãd¥“ãÇnj4vfat Ýext2
• --partition=
,¥“ã{IKØsdb2Ä
•
--dir=
Ý9“ãd{RedHat ø9{ø9
¾˜Õ
harddrive --partition=hdb2 --dir=/tmp/install-tree
nfs
‘
,½{NFS qÖì“ã
• --server=
,¥“ã{qÖìÃÌåÖÝIPÄ
• --dir=
Ý9“ãd{RedHat ø9{ø9
¾˜Õ
nfs --server=nfsserver.example.com --dir=/tmp/install-tree
34
7. kickstart
url
‘
“ã
/,FTP ÝHTTP ,ÏÇqÖìÞ{“ãd¥“ã
¾˜Õ
url --url http://<server>/<dir>
ÝÕ
url --url ftp://<username>:<password>@<server>/<dir>
Ã, Ä
ó“ã¥&~kickstart ©G¥
Ø{fåÇb4㎆Z•É½ŠÌt“ãǓ¥
{šÇ¶ôÇÙ¥½êkickstart ©G¥ ½{ŠÇ,1šâZuzIYJŠÇ
,1•#YJŠòšâZu™>kÝautostep
keyboardÉÄ
‘
÷˜ø:Ec¡nY°4i386ItaniumZAlpha åìÞ,~Ec{ï,Õ
interactive
‘
be-latin1, bg, br-abnt2, cf, cz-lat2, cz-us-qwertz, de,
de-latin1, de-latin1-nodeadkeys, dk, dk-latin1, dvorak, es, et,
fi, fi-latin1, fr, fr-latin0, fr-latin1, fr-pc, fr_CH, fr_CH-latin1,
gr, hu, hu101, is-latin1, it, it-ibm, it2, jp106, la-latin1, mk-utf,
no, no-latin1, pl, pt-latin1, ro_win, ru, ru-cp1251, ru-ms, ru1, ru2,
ru_win, se-latin1, sg, sg-latin1, sk-qwerty, slovene, speakup,
speakup-lt, sv-latin1, sg, sg-latin1, sk-querty, slovene, trq, ua,
uk, us, us-acentos
©G/usr/lib/python2.2/site-packages/rhpl/keyboard_models.py ¥Ý9êY
Çï,ÇÇ4rhpl žGÝ{\I
langÉÄ
‘
÷˜“ã¥&~{ªÓž˜Ç²ªÓ÷]ªÇkickstart ©Ga”ÝiÁqÕ
lang en_US
©G/usr/share/redhat-config-language/locale-list {šq{‘ï
Øê‹
H{ªÓSR{ï,ÇÇ4redhat-config-languages žGÝ{\I
langsupportÉÄ
‘
÷˜óø:ޓã{ªÓÇ&~{ªÓSRZlang ø
˜*.“㫪ÓÇ>½Çž˜Ç“ãZ&~ªfr_FRÕ
langsupport fr_FR
--default=
˜*.“ãXŽ«ªÓ|Ñnj½å€ªÓ
ž˜Ç“ã]ªZªÇ?&~]ªå€ªÓÕ
langsupport --default=en_US fr_FR
˜*&~--defaultǀÁË«ªÓÇ ÇċªÓRÌú“ãǍ½{ªÓå
€
liloÃúbootloader ¦Ä
‘
‘
´·
” 1.úbootloader SÇÇ{ø{4
؀5/Ž>kÝbootloader
7. kickstart
“ã
35
½ZsãñǓa˜[óø:Þú“ã•Lå€÷˜ÇLILO “ãó‘<cÞ
{MBR Þǘ*DOS IK?óÇ倓ãvZsø:Ø*~’óLILO: +E
œdosÇDOS/Windows ø:ÒÌúZsÄ
--append <params>
‘
½Xkj
--linear
‘
&~linear LILO 1ÖÇ{ø{4
؀5/ŽÃóå€&~linearÄ
--nolinear
‘
&~nolinear LILO 1Öóå€&~linear
--location=
‘
½UœLILO Zs9{ ˜‹H{Š‹Õmbr Ãå€ÄÝpartitionÃóÝ9
X{IKÞ{‘Ç×KޓãZs“ãǓĘ*X½ ˜ÇLILO ÒXÌú“
ã
--lba32
‘
›&~lba32 Ü*:Ä5
Ã, Ä
˜*lilocheck ?óǓãǓÒÌó‘ÇmcPÄì{MBR Þ5†LILOÇ¥ItÇÒ
Ì­cZsø:— óY«<YÇX̉q[“ãYÌ3Žkickstart ­c“ãÇ.“
ãê{ø:
logvolÉÄ
‘
&~1ªu\öò®ÃLVMÄO\öòÕ
logvol mountpoint --vgname=name --size=size --name=name
DOIKÇl€O\öòÇòO\öò¾˜Õ
lilocheck
‘
part pv.01 --size 3000
volgroup myvg pv.01
logvol / --vgname=myvg --size=2000 --name=rootvol
ÉÄ
ø:{GUI Z©ýÜ*{˜`) 1‹Õ
mouse
‘
--device=
‘
`)Äó{÷÷Ø--device=ttyS0Ä
--emulthree
¥?óÇ3šâ`){&ÜEÒÌúX =ø:h)šâê`){¥-•<˜*
‹ÇÜE`)Ça&~” 1
ó 1ƒ€Ç`)¡n,&~1¡nƒÕ
‘
alpsps/2, ascii, asciips/2, atibm, generic, generic3, genericps/2,
generic3ps/2, genericwheelps/2, genericusb, generic3usb, genericwheelusb,
geniusnm, geniusnmps/2, geniusprops/2, geniusscrollps/2, geniusscrollps/2+,
thinking, thinkingps/2, logitech, logitechcc, logibm, logimman,
logimmanps/2, logimman+, logimman+ps/2, logimmusb, microsoft, msnew,
36
7. kickstart
“ã
msintelli, msintellips/2, msintelliusb, msbm, mousesystems, mmseries,
mmhittab, sun, none
YÇï,,1ó/usr/lib/python2.2/site-packages/rhpl/mouse.py ©G¥It”
©G4rhpl žGÝ{\I
˜*Éñ{`)ז‹ŽQ[kjÇÝYÇ×úQǓãǓÒÌACÄ5†`
)”ŸÇ,~•õjS`)
networkÃ, Ä
‘
 ø : { ˜  d f å ˜ *kickstart “ ã X ‰ É  à ¦ é › € Ç Ç X 4 /
,NFSHTTPÝFTP “ã{ÄÇø:{ÉÒXÌú{˜˜*“ãh"‰ÉÇb
dfåókickstart ©G¥–‹ú
ØÇRed Hat Linux “ãǓÌ"½“ãa”/,eth0 ZÄ
ÕIP ŒuŸqÃBOOTP/DHCPÄÇ?²!ª{“ãê{ø:{˜ÄÄՏg½IP 
Œnetwork 1kickstart “ãZ.“ãø:/,d{˜Éfå
--bootproto=
‘
bootpÝstatic ¥{Ç
Ç倏dhcpbootp Zdhcp ú3éV
DHCP 0&~DHCP qÖìø:uÜRÇ{É{˜,1Ì_tÇBOOTP 0
ZÇi#‘ÇFBOOTP qÖìu
Ød{˜+ø:&~DHCPÕ
network --bootproto=dhcp
+ìåì&~BOOTP uÜRÇ{É{˜Çókickstart ©G¥&~1qÕ
network --bootproto=bootp
·Õ0Fókickstart ©G¥QœÄ‹‰{Éfå˜Ç{ÖÁĖ+ÇYJ
få4·Õ{ÇRÌó“ã¥Z“ã€&~~•·ÕÉ{Yqv…ìÇO
Œ²Ä‹d{˜fåóqÝiŒ½IP ŒÙhZÖÁq
Ö쾘Ã\,ÒÇ¢óqÄÕ
dhcp
network --bootproto=static --ip=10.0.2.15 --netmask=255.255.255.0 \
--gateway=10.0.2.254 --nameserver=10.0.2.1
˜*&~·Õ0Ç>Õ?1ÜÇ!›Õ
• ċ·ÕÉ{˜fåьóqލ½ÖX&~'R"u¦q
• ó$½ÇÖÁqÖìX,Ç¥‰Ç,1&~kickstart file {%post 
Ãó‘7.7 ¥úÃcÄuÍõÖÁqÖì
--device=
‘
~ u ~ • “ ã {  ½ 1 Ô  ÷ ÷ Õ ? Ç ø :kickstart © G 4 ý  © G
Øks=floppyÄÇ&~--device= RX̋HÇO“ãǓRÌ{˜du¯
Ikickstart ©G¾˜Õ
network --bootproto=dhcp --device=eth0
--ip=
‘
“ã{åì{IP Œ
--gateway=
‘
IP
Œo*{å€
--nameserver=
‘
ÌÖÁqÖìÇIP ŒÂ*
7. kickstart
“ã
37
--nodns
‘
X{˜[DNS qÖì
--netmask=
‘
“ã{ø:{Ùh
--hostname=
‘
“ã{ø:{ÌåÖ
ÝpartitionÓãĉ{ÇÿăQ{Ä
óø:ÞOIK
˜*ø:Þ{X3IKÞ?óXŽÇRed Hat Linux “ãǓãǓ̮¯~’a”ÿý
Ǔã
part
‘
´·
ø:&~ê--noformat Z--onpartÇċO{IKÑÌúÂ*šÇY4“ã,Ç{\I
<mntpoint>
‘
<mntpoint>
4IKRñ{ ˜ÇŒ&~1Â*ƒÕ
• /<path>
¾˜Õ//usr/home
• swap
”IKRú~*b¦8-
Äû½b¦K{LBÇ&~--recommended 1Õ
swap --recommended
ÄÄ{b¦K{!BŠRXÌB•ø:{?ÇXÌL•ø:?{Üõ
• raid.<id>
”IKRÌú~*žGRAIDÃ>kDraidÄ
• pv.<id>
RÌ~•LVM {IKÃ>kDlogvolÄ
--size=
‘
1MB \ {IK!BŠó$ÿ½ÇrjŠÇ˜500Xój€ÁMB
--grow
‘
·ªIK&~ċ,~8-Ã¥‹ÄÇÝ&~÷˜{!LŠ
--maxsize=
‘
hIKú÷˜,jßÇ1MB \ {IK!LŠóY°½ÇrjŠÇX
ój€MB
--noformat
‘
·ª“ãǓXÂ*šIKÇZ--onpart ×å&~
38
7. kickstart
“ã
--onpart= or --usepart=
²IK8ó.?ó{÷÷Þ¾˜Õ
̲/home 8ó/dev/hda1 ÞÇYÇIKŒ.²?ó
--ondisk= Ý--ondrive=
‘
›IKó½cÞOž˜Ç--ondisk sdb ̲IK8óø:{‘ÇSCSI cÞ
‘
partition /home --onpart=hda1
--asprimary
‘
²IKqč`ÌIKÇdIK,ÇÒ̽
--bytes-per-inode=
½{jS,©Gø:ޚǁšóO{jnj&~Ÿ›Â*é•
.©Gø:Þ{šjÞ{a~Ǔǔ 1ÒÌi‹~
--type=Ãúfstype ¦Ä
‘
” 1.Xò,~>&~fstype
‘
--fstype=
‘
IK÷˜©Gø:¡n\Š‹Õext2ext3swapZvfat
--start=
‘
½IK{å)ÎÁÇF&~--ondisk Ýondrive u½PÄìǤF&
~--end u½ªˆÎÁÇÝ&~--size u½IKLB
--end=
‘
½IK{ªˆÎÁÇF&~--start u½IK{å)ÎÁ
--badblocks
‘
½IKa5† Lsectors.
Õ
˜*„•ì«ÆOÇIK½êÇfä·åÌ+ó‘®RŠ;›ÑÞ
Ã, Ä
ĞGRAID ÷÷”×{Â*4Õ
raid
‘
raid <mntpoint> --level=<level> --device=<mddevice> <partitions*>
<mntpoint>
‘
ñRAID ©Gø:{ ˜˜*Ç4/ÇRAID ÿ/Œ41Çø:ZsIKÃ/bootÄ
?ó˜*ZsIK?óÇ/boot IKŒ4ÿ/1ÇÊÃ/ÄIK,14[,~
{¡n<partitions*>ÃS,õÇIK,1úïÞÄïÞêtRAID jï
{RAID )
--level=
‘
&~{RAID ÿ/Ã01Ý5Ä
7. kickstart
“ã
39
--device=
‘
&~{RAID ÷÷{ÖÁØmd0 Ýmd1ÄRAID ÷÷{)Œ,md0 †tmd7ǚÇ
÷÷ú&~'
--spares=
‘
½RAID jïa”ú`N Ç÷~PÄì÷~PÄì,1ú~uóPÄì½­
Ojï
--fstype=
‘
RAID jï÷˜©Gø:¡n\Š‹Õext2ext3swapZvfat
--noformat
XÂ*šRAID jï
Á{¾+ê˜[/ ORAID ÿ/1 IKǏ/usr ORAID ÿ/5 IKÇ"½{
ø:ދ®ÇSCSI cǤO®Çb¦IKǚÇPÄìÞÇ
‘
part raid.01 --size=60 --ondisk=sda
part raid.02 --size=60 --ondisk=sdb
part raid.03 --size=60 --ondisk=sdc
part swap --size=128 --ondisk=sda
part swap --size=128 --ondisk=sdb
part swap --size=128 --ondisk=sdc
part raid.11 --size=1 --grow --ondisk=sda
part raid.12 --size=1 --grow --ondisk=sdb
part raid.13 --size=1 --grow --ondisk=sdc
raid / --level=1 --device=md0 raid.01 raid.02 raid.03
raid /usr --level=5 --device=md1 raid.11 raid.12 raid.13
Ã, Ä
“ãqĀ­cZsø:ÃÃkjÄ/žÇkickstart +>åÇ?V~’•?E€
b­cZs
rootpwÉÄ
‘
²ø:{Ê=÷˜<password> kj
reboot
‘
rootpw [--iscrypted] <password>
--iscrypted
‘
˜*” 1?óÇ=ÒÌ"½.ú·
Ã, Ä
˜*?óǓã{ø:ÞÒXÌ{˜X
textÃ, Ä
‘
ó©ýÜ*‰qkickstart “ãkickstart “ãå€óCoÜ*“ã
timezoneÉÄ
‘
²ø:{K÷˜<timezone>ÇÇ,14timeconfig ïÞ{[K
skipx
‘
timezone [--utc] <timezone>
40
7. kickstart
“ã
--utc
‘
˜*?óÇø:ÒÌ"½mG¨ú÷˜UTCÃÂõ…£)ïÄ-
Ã, Ä
·ªø:ÿ?ø:ÇX4“ãÇcø:Œ,cdromharddrivenfs
ÝurlÃ~•ftp ZhttpÄ¥½“ãd{ ˜-<>kDinstall
xconfigÃ, Ä
‘
{˜X =ø:˜*” 1–‹ÉñÇX ú“ãêÇ~’R‰ó“ã,Ç¥CÓ{
˜X֘*{!ªø:ޖ‹“ãXÇXa”&~” 1
upgrade
‘
--noprobe
‘
Xæ+ì
--card=
‘
& ~  ½ { @ ª Ö ” { Ö Á a ” u hwdata ž G Ý
{/usr/share/hwdata/Cards ¥{@ªï,YÇï,¤,1óKickstart {˜ì
{X {˜ì¶ôÞIt˜*kj–‹
ØǓãǓÌæ”{PCI "„
•AGP 4PCI "{\IÇ¥|ÑÇAGP ÒÌúætæ~“„ñÆ{PCI ·
Ã~“û½
--videoram=
‘
½@ª{@ª?jÞ
--monitor=
‘
&~½+ìÖ+ì{ÖÁa”uhwdata {/usr/share/hwdata/MonitorsDB
¥{+ìï,YÇï,¤,1óKickstart {˜ì{X {˜ì¶ôÞIt˜*
Ø
ê--hsync Ý--vsyncǔ 1ÌúƒQ˜*–‹
Ø+ìfåǓãǓÌA
CÄæÇ
--hsync=
‘
½+ì{y²ªG
--vsync=
‘
½+ì{†ªG
--defaultdesktop=
‘
²å€óÁ÷˜ÄGNOME ÝKDEÃ"½GNOME Z/ÝKDE /,%packages ú“ã
êÄ
--startxonboot
‘
ó“ã{ø:Þ&~Coš~9
--resolution=
‘
 ½ “ ã { ø : ÞX = ø : { å € I % G ‹ H Š
‹Õ640x480800x6001024x7681152x8641280x10241400x10501600x1200
>h½½¦@ªZ+ì/Ž{I%G
7. kickstart
“ã
41
--depth=
½“ã{ø:Þ{X =ø:{债gý݋HŠ‹Õ81624Z32>h½
½¦@ªZ+ì/Ž{ºgýÝ
‘
Ã, Ä
~uO\öò®ÃLVMÄÇÙªÂ*Õ
volgroup name partition
DOIKÇl€O\öòÇòO\öò¾˜Õ
volgroup
‘
part pv.01 --size 3000
volgroup myvg pv.01
logvol / --vgname=myvg --size=2000 --name=rootvol
Ã, Ä
˜*zerombr ú½ÇǍ{kj4yesÇċócÞ{ÃHIK,ÒÌúð)š
YÌ» Q‹ÃHIK,{cÞ{ċjâ”×{Â*˜Õ
zerombr yes
ÙÇÂ*þÃH
zerombr
‘
%include
‘
&~%include /path/to/file ×uókickstart ©G¥ÝiÇ©G{ŽÇÒP4Y
JŽýuÒókickstart ©G°%include Äó{ ˜¥ø
7.5.
žGÝ &~%packages ×u)kickstart ©G¥ïޓã{žGÝ{\IÐ!•“ãÇOÿ
¥žGÝ Xú|ÑÄ
,1&~\ǞGÝÖÁݞGÝ{ÖÁu½Ç¢“ãǓ½BêŽõÝ9#žGÝ
{žGÝ>kD‘<Red Hat Linux cÞ{RedHat/base/comps.xml ©GuÜRžGÝ
{ï,šÑ‹id~’,DuŠÖÁÃc1ùÙ¥Ý9{žGÝï,óžGÝï,
¥Ç¥”ú ½“ãÇú)‰{žGÝ4ú“ãú)å€{žGÝÌúå€ Ç
), {žG݌ú䍽bú“ãÇý"”.² ½ú“ã
óõj<Yǐ‰ïÞ.{žGÝÇXïÞ\ǞGÝÕ?ÇCore ZBase ž
GÝ4úå€ ÇO$Xó%packages \I¥½Ç¢
14%packages \I{+¾Õ
%packages
@ X Window System
@ GNOME Desktop Environment
@ Graphical Internet
@ Sound and Video
galeon
˜ÞÄ+Çkúqq½Ç1@ nRåDÇl€48ÂÇl€4˜comps.xml ©G¥½
{k{\ÖXŽQ{åDnR̍½\ǞGÝØ1Þ¾¥{galeon q½{4\Ç
žGÝÄ
¤,1,å€{žGÝï,¥½X“ã{žGÝÕ
@ Games and Entertainment
-kdegames
42
7. kickstart
%packages
“ã
‹ÜÇ,~ 1
--resolvedeps
“ãïÞ{žGÝÇ?ĉûžGÝvø˜*” 1–‹ú½ÇžGÝv
øe?óÇēãÒÌö*?
+~’¾˜Õ
‘
%packages --resolvedeps
--ignoredeps
ƒQ™‰û{vøÇ?“ãÄïÞ{–‹vø{žGݾ˜Õ
‘
%packages --ignoredeps
--ignoremissing1
ƒQbè{žGÝݞGÝÇX4ö*“ãu5~’®¯4¥Ž¤4™“㾘Õ
‘
%packages --ignoremissing
7.6.
½“ãlý
,1ø:ó‰Ûks.cfg ©Gƒ€Áýäq{×YŒ •kickstart ©G{ˆ—
ÿÃó׃€ÄÇ%Œ1%pre ×>Õ?Çó%pre \I,16¯dÖlÇÖÁ
qÖÃname serviceÄó$¤–‹ú{˜ÇO$‹IP ŒbH
Õ
Õ?ǽ“ãlýXó•¦ê{Ê¢¸ÃchrootÄ¥äq
--interpreter /usr/bin/python
㎍½X3{lýªÓǘPython²/usr/bin/python ¦Ä.&~{lýª
Ó
‘
7.6.1.
)¾
14%pre {+¾Õ
%pre
#!/bin/sh
hds=""
mymedia=""
for file in /proc/ide/h*
do
mymedia=‘cat $file/media‘
if [ $mymedia == "disk" ] ; then
hds="$hds ‘basename $file‘"
fi
done
1.
” 14Red Hat Linux 9 ¥c{
7. kickstart
“ã
43
set $hds
numhd=‘echo $#‘
drive1=‘echo $hds | cut -d’ ’ -f1‘
drive2=‘echo $hds | cut -d’ ’ -f2‘
#Write out partition scheme based on whether there are 1 or 2 hard drives
if [ $numhd == "2" ] ; then
#2 drives
echo "#partitioning scheme generated in %pre for 2 drives" > /tmp/part-include
echo "clearpart --all" >> /tmp/part-include
echo "part /boot --fstype ext3 --size 75 --ondisk hda" >> /tmp/part-include
echo "part / --fstype ext3 --size 1 --grow --ondisk hda" >> /tmp/part-include
echo "part swap --recommended --ondisk $drive1" >> /tmp/part-include
echo "part /home --fstype ext3 --size 1 --grow --ondisk hdb" >> /tmp/part-include
else
#1 drive
echo "#partitioning scheme generated in %pre for 1 drive" > /tmp/part-include
echo "clearpart --all" >> /tmp/part-include
echo "part /boot --fstype ext3 --size 75" >> /tmp/part-includ
echo "part swap --recommended" >> /tmp/part-include
echo "part / --fstype ext3 --size 2048" >> /tmp/part-include
echo "part /home --fstype ext3 --size 2048 --grow" >> /tmp/part-include
fi
”lýg½ø:Þ{mcPÄì{jÞÇ?Êâø:ދǤ4ÜÇPÄìUQ‹X3IK
0™{©ý©G¦Ùókickstart ©G¥‹IK×Ç,1Ýi1qÕ
%include /tmp/part-include
ólý¥ {IK×Ìú&~
7.7.
“ã€lý
,1ø:ó“ãqĀäq{×YŒ •kickstart ©G{ˆ—ÿÇ%Œ
1%post ×>Ç镓ãižGÝÝ{˜iÖÁqÖìÖi‹ÐÏ
Õ
˜*&~·ÕIP få{˜êdÇÝiÖÁqÖìÇ,1ó%post \I¥6¯d?‰ÛIP Œ˜
*&~DHCP {˜dÇh“ã‰qt%post \IÇ/etc/resolv.conf ©G¤–‹qÄ,16
¯dÇb4X‰ÛIP ŒO$ǘ*&~DHCPnjó%post Y¥½IP Œ
Õ
“ã€lýóchroot ¢¸¥äqÖO$Ç6…›“㐟¥{lýÝRPM ƒ¡{ÖRXú‰q
44
7. kickstart
“ã
--nochroot
‘
㎍½.óchroot ¢¸ƒiäq{×
Á{¾²/etc/resolv.conf ©G…›t¦¦“ãê{©Gø:Þ
%post --nochroot
cp /etc/resolv.conf /mnt/sysimage/etc/resolv.conf
--interpreter /usr/bin/python
‘
㎍½X3{lýªÓǘPython~.~{lýªÓu¦/usr/bin/python
7.7.1.
)¾
éÄZqÖÕ
/sbin/chkconfig --level 345 telnet off
/sbin/chkconfig --level 345 finger off
/sbin/chkconfig --level 345 lpd off
/sbin/chkconfig --level 345 httpd on
,NFS á0¥äqw)runme {lýÕ
mkdir /mnt/temp
mount 10.10.0.2:/usr/new-machines /mnt/temp
open -s -w -- /mnt/temp/runme
umount /mnt/temp
Éø:~’Õ
/usr/sbin/useradd bob
/usr/bin/chfn -f "Bob Smith" bob
/usr/sbin/usermod -p ’kjdf$04930FTH/ ’ bob
7.8.
˜[&kickstart ©G,ú¼~
©GŒ •1Ç ˜ƒÕ
• óZscÞ
• óZscÞ
• ódÞ
/žÇkickstart ©Gú…›tZscÞÇÝódÞ
Øä•d{0&~!Ê(ÇOõ
jkickstart “ã4óÉ{®åމq{
t·¢Íýœ?8kickstart ©G{ ˜
kickstart
7.8.1.
OKickstart Zsc
‰q䕞c{kickstart “ãÇkickstart ©GŒú×֏ks.cfgÇ%Œ •Zsc{!Þ
ÿø9°•OZsc{€Ò>kÝRed Hat Linux “㍥{›*“ãZscY
Ç9ORed Hat Linux Zsc&~MS-DOS Â*ÇO$,1&~mcopy ×uóLinux ¥
…›kickstart ©GÕ
mcopy ks.cfg a:
7. kickstart
“ã
45
iÇ,1&~Windows u…›”©G¤,1&~©G¡nvfat uóRed Hat Linux ñMS-DOS ZscÇl€&~cp ×u…›”©G
7.8.2.
Okickstart Zsc
7.8.3.
ódÞ
ØKickstart ©G
‰qä•c{kickstart “ãÇkickstart ©GŒú×֏ks.cfgÇ%Œ •Zsc{
!Þÿø9¥Oc4Ö{ÇYÇ©GŒútúUœc{~uOn4{ø9
¥•OZsc{€ÒÇ>kÝRed Hat Linux “㍥{›*“ãZscY
9X,Çó›*file.iso n4©GƒÇ>²ks.cfg kickstart ©G…›tisolinux/ ø
9¥
&~kickstart {d“ãvÊ(ÇOø:®Ê,1O¤4”ÄšŽõÉ®å{“
ãĀuÇY«0é•óÛ­Þä‹BOOTP/DHCP ZNFS qÖì{®Êu€Ç&~!
Ê(BOOTP/DHCP qÖì~uÉ0’
ØÉfåÇó“ã¥&~{©G„NFS qÖì
ØYÜ1qÖ²žó3\åìÞäqÇb4Y?X4‰{
‰qä•d{kickstart “ãÇ{dތ‹ÇBOOTP/DHCP qÖìÇ%njÝi
•óÙޓãRed Hat Linux {åì{{˜fåBOOTP/DHCP qÖìÌÉ0’
ØÇ{
Éfå1ùkickstart ©G{ ˜
˜*kickstart ©GúBOOTP/DHCP qÖ썽Ç0’ø:ÒÌAC&~NFS uñ”©G
{4»Ç?²½©G…›t0’ÞDzÇ~*kickstart ©Gĉ{h#÷˜&~
{BOOTP/DHCP qÖì½
Á4,~•Red Hat Linux ±Q{DHCP qÖì{dhcpd.conf ©G¥Ä!9{qÕ
filename "/usr/new-machine/kickstart/";
next-server blarg.redhat.com;
Õ?Ça”²filename €Á{Š¦kickstart ©G{ÖÁÃÝkickstart ©GÄó{ø9ÄÇ
²next-server €Á{Š¦ÄNFS qÖì{ÖÁ
˜*BOOTP/DHCP qÖì(Ã{©G1R"Ã/ĈeÇÇÒÌúh)4»óY«<YÇ
0’ø:Ì&~NFS uñ”4»Çl€œÂ썽©G0’œÂ{©GÖ4Õ
<ip-addr>-kickstart
©GÖ{<ip-addr> \Ia”úš*{0’IP Œ¦ž˜ÇIP Œ10.10.0.1 {®å{
©GÖa10.10.0.1-kickstart
Õ?ǘ*X½qÖìÖÁÇ0’ø:ÒÌAC&~ÃIBOOTP/DHCP >F{qÖìu
*Ç{NFS qÖì˜*X½4»Ý©GÖÇ0’ø:ÌAC,BOOTP/DHCP qÖ
ìñ/kickstartÇl€&~ZÁÃc{<ip-addr>-kickstart ©GÖ#3{0uœ
Âkickstart ©G
7.9.
ؓãd
“ã‰&~“ãdÃinstallation treeēãd4Ÿ›Red Hat Linux c{…›Ç
Çä÷¦c#3{ø9ˆè
˜*‰q{4ä•c{“ãÇó)kickstart “ã²Red Hat Linux c#1 ‚œ®å
˜*‰q{4mcPÄì“ãÇ>h½Ÿ›Red Hat Linux c{n4 •®å{mcPÄ
ìÞ
kickstart
46
7. kickstart
“ã
˜*‰q{4ä•dÃNFSFTPÝHTTPēãnj/,du
ؓãd-<>
kÝRed Hat Linux “㍥{ê÷d“ãY9
7.10.
)kickstart “ã
)kickstart “ãnj,Red Hat Linux ZsžcRed Hat Linux ZscÝRed Hat
Linux “ãc#1 ¥“ãÇóZs
+QœÇO{Zsט*ks ×qkjú”É
XǓãǓÒ̯Ikickstart ©G
Zsžc
‘
˜*kickstart ©G •ZsžcÞǘ‘7.8.1 ¥ÄÃcÇ&~PÄì¥{žcuZsÇl
€óboot: Qœ1×Õ
linux ks=floppy
c#1 Zžc
‘
˜*ks.cfg ©G •žcÞ{vfat Ýext2 ©Gø:ÞÇ,Red Hat Linux “ãc#1
¥ZsÇ,1&~linux ks=floppy ×
«,q{Zs×4,Red Hat Linux c#1 ¥ZsÇ?²kickstart ©G8óžc{vfat
Ýext2 ©Gø:ÞHtYÇø{Çóboot: +Qœ1×Õ
linux ks=hd:fd0:/ks.cfg
&~PÄǓc
‘
˜*kickstart ‰&~PÄǓcǤ‰½dd 1¾˜Ç,Zsc¥ZsÇ?&
~PÄǓcÇóboot: +Qœ1×Õ
linux ks=floppy dd
Zsc
‘
˜*kickstart ©G •ZscÞǘ‘7.8.2 ¥ÄÃcDzc‚œø:ÇZsø:Çl
€óboot: +Qœ1×Ãks.cfg 4kickstart ©G{ÖÁÄÕ
linux ks=cdrom:/ks.cfg
ÙÇéÄkickstart “ã{0˜ïÞÕ
ks=nfs:<server>:/<path>
‘
“ ã Ç “ Ì óNFS q Ö ì<server> Þ {<path> ¥ ¯ Ikickstart ©
G “ ã Ç “ Ì & ~DHCP u { ˜ 1 Ô  ž ˜ Ç ˜ * {NFS q Ö ì
4server.example.comÇkickstart ©G •NFS á0/mydir/ks.cfg ÞÇth{Zs×a”
4Õks=nfs:server.example.com:/mydir/ks.cfg
ks=http://<server>/<path>
‘
“ ã Ç “ Ì óHTTP q Ö ì<server> Þ {<path> ¥ ¯ Ikickstart ©
G “ ã Ç “ Ì & ~DHCP u { ˜ 1 Ô  ž ˜ Ç ˜ * {HTTP q Ö ì
4server.example.comÇkickstart ©G •HTTP ø9/mydir/ks.cfg ¥Çth{Zs×a”
4Õks=http://server.example.com/mydir/ks.cfg
ks=floppy
‘
“ãǓÌó/dev/fd0 PÄì¥{žcÞ{vfat Ýext2 ©Gø:¥¯Iks.cfg ©G
ks=floppy:/<path>
‘
“ãǓÌó/dev/fd0 PÄì¥{žcÞ{vfat Ýext2 ©Gø:¥¯IÖÁ<path>
{kickstart ©G
7. kickstart
“ã
47
ks=hd:<device>:/<file>
‘
“ãǓÌó<device> Þñ©Gø:Ì4vfat Ýext2ÄÇl€ó”©Gø:¥¯
Ikickstart {˜©G<file>ޘÇks=hd:sda3/mydir/ks.cfgÄ
Õ
‘Ç‹R4Red Hat Linux 9 ¥{ª•#
ks=file:/<file>
‘
“ãǓÌAC,©Gø:¥ÖR<file> ©GÖX‰qñY/žókickstart ©G.
² •initrd n4&~
ks=cdrom:/<path>
‘
ks
‘
“ãǓÌóc¥¯Ikickstart ©G<path>
˜*ks ú\Õ&~ǓãǓÌ{˜ø:{1Ô&~DHCPø:RÌ&~DHCP Ã
a{bootServer*NFS qÖìÇ?,¥ÖRkickstart ©GÃÇ倦DHCP qÖì#
3Äkickstart ©G{ÖÁ,14Á«Õ
• ˜*DHCP ú½Çbootfile 1/ >DŽDHCP Ø{bootfile ÒÌóNFS qÖìÞú†
I
• ˜*DHCP ú½Çbootfile X1/ >DŽDHCP Ø{bootfile ÒÌóNFS qÖìÞ
{/kickstart ø9¥ú†I
• ˜ *DHCP
– ‹  ½bootfileÇ “ ã Ç “ Ò Ì A C Ö R ©
G/kickstart/1.2.3.4-kickstartÇY°{1.2.3.4 4“ã{åì{IP Œ
ksdevice=<device>
‘
“ãǓÌ&~”d÷÷uËztdž˜Ç&~/,eth1 ÷÷Ëztø
: Þ {NFS q Ö ì Þ {kickstart © G u é Äkickstart “ ã Ç óboot: + &
~ks=nfs:<server:>/<path> ksdevice=eth1 ×
48
7. kickstart
“ã
8.
Kickstart
{˜ì
{˜ìãŽ&~Coš~’ŽÁuOkickstart ©GÇO$XÔ©G{thª
&~Kickstart {˜ìnjäqX =ø:éÄKickstart {˜ìÇ ÁÆÞ{Ì
h\ => ø:Óä => KickstartÇÝEœ/usr/sbin/redhat-config-kickstart ×
óOkickstart ©G{Ç,1± ©G => ½uµh{ Kickstart
8.1.
äý{˜
C8-1. äý{˜
,ªÓh\¥ ó“ã¥&~Ç?ó“ã€~)å€{ªÓ
,Ech\¥ ø:{Ec¡n
,`)h\¥ ø:{`)¡n˜* êÃ`)Ç`)ÒXÌú{˜˜* êæ`)ǓãǓÒÌACÄæ`)õjS`)Ñ,1úæt
˜*‹ÇÜE`)Ç,1 Ü®EuÜ®E`)˜*” 1ú Ç3šâ`
){&ÜEÒÌú€4šâê`){¥-•<
,Kh\¥Ç ø:&~{K{˜ø:&~UTCÇ &~UTC ¨
óÊ=©ýãQœ.~{Ê=˜*.ó©G¥â?=·Ç ·Ê
=˜*· 1ú Çh©Gúâ?ÇEœ{Ê/©ýÒÌú·?Uœkickstart ©G
¥XEœ.²·{=l€‘ ÉÇ·
50
8. Kickstart
{˜ì
øêóªÓnh\¥ {ªÓƒiǓãÙǎªÓÇóªÓ|Ñï,¥ Ç
¢,ªÓnh\¥ {ªÓó“ã€ú~*倪ÓX,Ç倪Ó,1ó“ã€&
~ªÓ{˜ÓäÃredhat-config-languageÄu•#
“〭cZsø:Ìó“ãˆe€Ä­cZsø:
kickstart “ãå€&~CošÜ*‰q§Ö倊&~©ýÜ*Ç ó©ýÜ*¥‰q
“ã 1
,1&~ÄÜ*‰qkickstart “ãY?›ø“ãǓÌ&~ċókickstart ©G¥½÷{ 1Çb4ÇãŽó™tǶô½ 1™tǶôÞÇó3?÷˜€š
âZ•<˜*é½÷{ 1Xw?Ç,1ó™“ã•#Ç¢˜*Íõ¡Y
¡“ãÇ óÄÜ*¥‰q“ã•<
8.2.
“ã0
C8-2. “ã0
“ã0¶ô㎠‰qc“ãÝÿ“ã˜* ÿÇIKfåZžGÝ
1ÒÌú¢~Ç¢Xúkickstart ÿÄ|Ñ
óYǶôÞǤ‰ kickstart “ã{¡n, {¡n˜Õ
• cPÄì — YÇ 1u,Red Hat Linux c¥“ãRed Hat Linux
• NFS — ˜*K®,NFS á0ø9¥“ãRed Hat LinuxÇ ” 1ÜÇFQ
œNFS qÖìZø9{©ýã'ÌñQœNFS qÖì{qr­ÖÝIP ŒÖ1ùÝ9“
ãd{RedHat ø9ž˜Ç˜*{NFS qÖìÝ9/mirrors/redhat/i386/RedHatÇó
FNFS ø9{ãQœ/mirrors/redhat/i386
• FTP — ˜*K®,FTP qÖì“ãRed Hat LinuxÇ ” 1ÜÇFQœFTP
qÖìZø9{©ýã'ÌñQœFTP qÖì{qr­ÖÝIP ŒÖ1ùÝ9RedHat
ø9{FTP ø9֞˜Ç˜*{FTP qÖìÝ9/mirrors/redhat/i386/RedHatÇó
8. Kickstart
•
•
{˜ì
51
FFTP ø9{ãQœ/mirrors/redhat/i386˜*FTP qÖìF~’ÖZ=Ç>
½Ç¢
HTTP — ˜ * K ® ,HTTP q Ö ì “ ãRed Hat LinuxÇ ” 1 Ü Ç
F Q œHTTP q Ö ì Z ø 9 { © ý ã ' Ì ñ Q œHTTP q Ö ì { q r
­ Ö ÝIP  Œ Ö 1 ù Ý 9RedHat ø 9 {HTTP ø 9 Ö ž ˜ Ç ˜ * {HTTP
q Ö ì Ý 9/mirrors/redhat/i386/RedHatÇ ó FHTTP ø 9 { ã Q
œ/mirrors/redhat/i386
mcPÄì — ˜*K®,mcPÄì“ãRed Hat LinuxÇ ” 1ÜÇFQœ
mcPÄìIKZø9{©ýã'ÌñmcPÄì“ã‰&~ISOÃÝcÄn4>
ó“ãh½DèISO n4{qruDèÇ¢Ç&~md5sum ǓZRed Hat Linux “ã
¥ÿX{linux mediacheck Zs 1ómcPÄìIK©ý'QœÝ9ISO
n4{mcIKØ/dev/hda1ÄÇl€ómcPÄìø9©ý'QœÝ9ISO n4{
ø9
8.3.
ZsãñǓ 1
C8-3. ZsãñǓ 1
,1 “ãGRUB ÝLILO *ZsãñǓ˜*X.“ãZsãñÇ“Ç X“
ãZsãñǓ˜* X“ãZsãñǓÇ>h½OêZsc݋ÙÇZsRed
Hat Linux ø:{0ؑ®0ZsãñǓÄ
˜* “ãZsãñǓnj¤z “ãýÇÃGRUB ÝLILOÄ1ù“ãó
ý°ÃÌZs9Ý/boot IK{‘Ç×KĘ*K®²Ç~*ZsãñǓDzǓã
tMBR Þǘ*~{4X3{ZsãñǓDzLILO ÝGRUB ãó/boot IK{‘Ç×K
ÞÇ?{˜ÙÇZsãñǓuZsRed Hat Linux
óø:Zs5X”OkjDzǢQœtXkj©ý㞘ǘ*‹
ÇIDE c/9ìÇ,1·ªXó&~cdrecord ŒzñœSCSI ÜPÄǓÇ04
²hdd=ide-scsi QœXkjÃY°{hdd 4c÷÷Ä
52
8. Kickstart
{˜ì
˜* {ZsãñǓ4GRUBÇ,1{˜ÇGRUB =uâÇó&~GRUB =
©ýãQœYÇ=˜*.ó©G¥²=·â?Ç ·GRUB =
h©Gú?c€ÇEœ{Ê/©ý=ÒÌú·Uœkickstart ©GXEœ.·{=l
€‘ ÉÇ·
˜* {ZsãñǓ4LILOÇ 4d&~"oÜ*Ç1ù4d›&~lba32 Ü
*
˜*ó“ã0Þ êÿ‹“ãÇ ÿ‹ZsãñǓuÿ?{
ZsãñǓ{˜?â٥Ƌ{1ø
8.4.
IKfå
C8-4. IKfå
4d8øÌZs9ÃMBRĤ,1 ÍøċIKÍøċ?{Linux I
KÝâ?IK
,1²cò)ð)ø:ø{倊þ˜Çx86 &~msdosÇItanium &~gptĘ*
óÇ/c{mcPÄìޓãÇ ð)šc)ü
8.4.1.
OIK
OIKǚâ•<˜C8-5Ä+{IK 1=ÒÌñcIK ñ
š©Gø:¡nZIKLB¤,1,ï 1¥ Õ
• óŽ{LB 1\I¥Ç IK&~û½LB½LB¤4&~PÄìÞ{\\
›8-˜*²©Gø:¡n b¦KÃswapÄÇ,1 t“ãǓ&~OFŠ
X4½{LBuOb¦IK
• ›IKúOÌIK
8. Kickstart
•
•
•
{˜ì
53
ó½mcPÄìÞOIKž˜Çó‘ÇIDE mcÃ/dev/hdaÄޛ*IKDzhda
½PÄìXóPÄìÖÁ¥Ýi/dev
&~?IKž˜Çó‘ÇIDE mcÞ{‘ÇIKÃ/dev/hda1Äޛ*IKÇ
²hda1 ½IKXóIKÖ¥Ýi/dev
²IKÂ*š ½{©Gø:¡n
C8-5. OIK
öì?IKÇ,ï,¥ ÇÇl€šâö•<ÇZIK#3{IK
1=ÌñǘC8-5Ä+ǐX,ÇÞÁ{Š.ú½•IK 1Çl€šâh
½
Íøì?IKÇ,ï,¥ ÇÇl€šâÍø •<
OžGRAID IK
Ý֑39u¦ó‹RAID ZRAID ÿ/{#,1{˜RAID 01Z5
OžGRAID IKÇ&~1Z½Õ
1. šâRAID•<
2. OžGRAID IK
3. •ÁÃc{0u{˜IKǐX, žGRAID*©Gø:¡n$iÇ
Œ½›*IK{mcPÄìݍ½&~{?IK
8.4.1.1.
54
8. Kickstart
{˜ì
C8-6. OžGRAID IK
­…YJZ½u{RAID ÷˜Oĉ{IKX4ċ{IKѽ4RAID IK
OêèÄRAID ÷÷ĉ{ċIK€Ç$¬1Z½Õ
1. šâRAID•<
2. ORAID ÷÷
3. ñš©Gø:¡nRAID ÷÷ÖÁRAID ÿ/RAID ÄʞGRAID ÷÷{
÷GjÞ1ù4dÂ*šRAID ÷÷
C8-7. OžGRAID ÷÷
4.
šâh½u²÷÷tï,¥
8. Kickstart
8.5.
{˜ì
55
d{˜
C8-8. d{˜
˜*/,kickstart “ã{ø:–‹1ÔÇXód{˜Þ{˜Ç
‹ó êd¡n{“ã0ÃNFSFTP ÝHTTPÄb‰ÉÉ,1±ó“ã
€&~d®ÓäÃredhat-config-networkÄu{˜-<>kݑ129
é•ø:Þ{šÇ1Ôǚâd÷÷Çl€ d÷÷Z÷÷{d¡n‘
Ç1Ô eth0 *d÷÷ǑÇ1Ô eth1Ç$¡M
56
8.6.
8. Kickstart
{˜ì
èy
C8-9. èy
óèy\IÇ ~’=4d&~¶ZMD5 ·M?&~YJ 1ÇÇ¢úå€ èy{˜ 1ãŽ{˜ïèy0Õ
•
NIS
•
LDAP
•
Kerberos 5
•
Hesiod
•
SMB
ÖÁ#¦¥?
YJ0Xúå€é~é~«Ýõ«0ǚâôh{)üÇl€šâé~k{… 'ÇzøQœ~•”èy0{7hfå
•
8. Kickstart
8.7.
{˜ì
57
3Û{˜
C8-10. 3Û{˜
3Û{˜=¦Red Hat Linux “ãǓZ“\ÿ/{˜Óä¥{¶ôÜøó°
ÿ¥ÿZ.¢~YJÿ/¥ •YJ“\ÿ/{-ûfåÇ>kݑ13.1 
8.8. X
{˜
˜*“ãX =ø:Ç,1ókickstart “ã,Ç¥{˜Ç04Çó˜C8-11Ä+
{X {˜=Þ {˜X =ø:•<˜*” 1–‹ú ÇX {˜ 1ÒÌú
¢~Çskipx 1ÒÌúUœkickstart ©G
8.8.1.
ž
{˜X {‘Z4 å€{ºgýÝZI%G,#a{nh\¥ Ç¢>h½½¦
{@ªZ+ì/Ž{ºgýÝùI%G
58
8. Kickstart
{˜ì
C8-11. X {˜- ž
˜*²GNOME ZKDE óÁѓãêlj Çå€{óÁ˜*“ãêÇ
óÁÇ>h½ Çhø:ú“ã€Ç~’,1 Æ¢.å€&~{óÁ•GNOME
ZKDE {-ûfåÇ>kÝRed Hat Linux “ãZRed Hat Linux œ 
ZÇ óø:Zs4déÄX =ø:” 1ÌóQ‹Coš~9¶ô{äqÿ
/5 ¥éÄø:óø:ú“ã€Ç,1•/etc/inittab {˜©Gu•#Y 1
8.8.2.
@ª
æ@ªúå€ ˜*.t“ãǓó“ã¥æ@ªÇzIå€÷˜õj
S@ªÑúæt˜* ê” 1Ç?%“ãǓÃÄՏæ@ªÇ“ãǓÒ
Ìó@ª{˜¶ôÞ¥Ž™“ãŸÇÇ,@ªï,¥ ÇÇl€šâZ
iÇ,1,@ª )üÞ{ï,¥ ǘC8-12Ä+ó@ª?nh\
¥ @ª?jÞYJŠÌú“ãǓ~u{˜X =ø:
8. Kickstart
{˜ì
C8-12. X {˜- @ª
8.8.3.
+ì
{˜ê@ªƒ€Çšâ+ì)üǘC8-13Ä+
C8-13. X {˜- +ì
59
60
8. Kickstart
{˜ì
æ+ìúå€ ˜*.t“ãǓó“ã¥æ+ìÇzI倊õjS
+ìÑúæt˜* ê” 1Ç?%“ãǓÃÄՏæ+ìǓãǓÒÌ
ó+ì{˜¶ôÞ¥Ž™“ãŸÇÇ,+ìï,¥ ÇÇl€šâZ
iÇ,1,ï,¥ +ì¤,1 ½y²ªGù†ªGX4+ì 1u½+ì{y²Z†ªGYó{+얋óï,¥ïñ{<Y‹~Õ?ÇhY
Ç 1úé~Ç+ìï,ÒÌú¢~
8.9.
žGÝ C8-14. žGÝ žGÝ =㎠“ã{žGÝ
¤‹J 1êÐÏĉû݃QžGÝvø
øÇKickstart {˜ìX㎠\ǞGݓã\ǞGÝÇóâ?êkickstart ©G
€Ç•Ù¥{%packages \I-<>kݑ7.5 
8. Kickstart
8.10.
{˜ì
61
½“ãlý
C8-15. ½“ãlý
,1ø:ó‰Ûkickstart ©G€Ç“ã)äq{ט*ókickstart ©G¥{˜
êdÇÉóY\Iúÿ®Ìúé~˜*.Ýiǽ“ãlýÇó©ýK­QœÇ
½~u‰qlý{ªÓÇ &~‰:ì 1Ç?óÇk{©ý'QœÇ¾˜Ç
,1Python lý½/usr/bin/python2.2” 1Zó{kickstart ©G¥&~%pre
--interpreter /usr/bin/python2.2 #éa
Be
XÝi%pre ×ÇÌď
62
8. Kickstart
8.11.
{˜ì
“ã€lý
C8-16. “ã€lý
¤,1ø:ó“ãˆe€‰q{ט*ókickstart ©G¥th{˜êdÇÉ
ÒÌúé~ǔlý¥Ò,1Ý96¯dýÍ{ט*.ÝiǓã€lýÇó©ýK
­QœÇ
Be
XÝi%post ×ÇÌď
ž˜Ç•#c“ã{ø:Þ{š†>åÃmessage of the dayÄÇó%post \I1×Õ
echo "Hackers will be punished!" > /etc/motd
" ,1ó‘7.7.1 ¥ItÍõ)¾
8.11.1. Chroot
¢¸
˜*.t“ã€lýóchroot ¢¸ƒiäqǚâ“ã€=ºà” 1k{… 'Y
Z&~%post \I¥{--nochroot 1H*#3
8. Kickstart
{˜ì
63
˜*.ó“ã€\IÇóchroot ¢¸ƒiéc“ã{©Gø:)J•#nj
ó/mnt/sysimage €ÁÞø9Ö
ž˜Ç˜* êóchroot ¢¸ƒiäqÇÁ{¾Ò‰ú•Õ
echo "Hackers will be punished!" > /mnt/sysimage/etc/motd
8.11.2.
&~‰:ì
½~u‰qlý{ªÓÇ &~‰:ì 1Ç?óÇk{©ý'QœÇ¾˜Ç
,1Python lý½/usr/bin/python2.2” 1Zó{kickstart ©G¥&~%pre
--interpreter /usr/bin/python2.2 #éa
8.12.
â?©G
qÄêkickstart 1{ €Çµkickstart ©G{ŽÇ ©G => ½
C8-17. ½
â?kickstart ©Gǚ⽁=¥{â?t©G•<X½â?©GÇ ©
G => â?©Gݕ[Ctrl]-[S]Çé›UÌñ â?©G{ ˜
â?©Gƒ€Ç>kݑ7.10 uÜR˜[éÄkickstart “ã{få
64
8. Kickstart
{˜ì
9.
äýø:Á…
¯€°t̋4ǯñ̋#a{‰ûÍÇb4YJ‰ûÍeF®‰?Yç
ø:ý9Ãcê˜[ZsœÍÇÜ*Z\~’Ü*Ç,1óYJÜ*¥&~{#ZÅu
…ø:
9.1.
žD¯
,ÌA•1ÇÆO‰Zsœ«Á…Ü*Õ
• ÃtžZsœRed Hat LinuxÃäqÿ/3 Ý5Ä
• ±têmGݞG¯Ç?%.²Ç­{©G,ø:mc¥Rñ
• ƒêÊ=
9.1.1.
ÃZsœRed Hat Linux
9.1.2.
mGݞG¯
9.1.3.
Ê=
Yǯ/ž4„•ó“ãêRed Hat Linux ƒ€“ãÇv*ø:Ä{ìJv*ø:"½
{®åޖ‹“ã[ÙÇv*ø:ÇOƒ˜!ðÝ9GRUB ÝLILO ZsãñǓ{ÌZ
s9ÃMBRĘ*ZsãñǓúY«0*ƒ˜êÇø:ŸœÍÇÜ*?­c{˜Zsã
ñǓÇRÃZsRed Hat Linux
ǞD¯ñó&~IKÓäu­™IKLBÝó“ã€,88-¥OcIK,•#
êIK{~“ƒ€˜*{/ IK{IKRh•#êÇZsãñǓRÃItÇuñYÇI
K‰ûYǯÇZsœÍÇÜ*Ç¥&~GRUBÇ•/boot/grub/grub.conf ©GÇ¥
&~LILO •/etc/lilo.conf ©GŒó•LILO {˜©G¤äq/sbin/lilo ×
Y¡Ýi{<Yv-٥ܫ,{<Y4mcPÄìHÝóZsãñǓ{{˜©G
¥½êÃH{÷÷ÝX˜*1Þ[«<YêÇRÃZsœRed Hat Linuxl
ǘ*Zsœø:Á…Ü*ƒÇŽê‰ûYǯÇݖèÍñ{!­{©
G
˜*ƒêÊ=”Íڲǭ÷Ç=ÇZsœÍÇÜ*Ý\~’Ü*Ç?&
~passwd ×u­÷Ê=
9.2.
ZsœÍÇÜ*
ÍÇÜ*
Øêq\,ccÝÙÇZs0*X4,ø:mcPÄì¥ZsÇBnRed
Hat Linux ¢¸{Å
˜Ç{ÖÁĖ+ÇÍÇÜ*4~u²,ì«<Y¥‰Íñu{Ü*ótžv*¥Ç{Red
Hat Linux ø:&~ •ø:mcÞ{©Guÿ®#/Ö— äqǓÖÑ?©GÖØ$¡
66
9.
äýø:Á…
lÇó‹J<YÇ,Ã&Red Hat Linux äqzqrt,16¯ø:mcÞ©G{Ç
Ý&~ÍÇÜ*Çý"Ã,mcÞäqRed Hat LinuxÇ,1?RÑ?ó”ø:mcÞ
{©G
ZsœÍÇÜ*njê&~10ƒuZsø:Õ
• /,,Êâbootdisk.img n4›*{“ãZscuZsø:
• /,,“ãZsc ¥Zs
• /,,Red Hat Linux c#1 ¥Zs
&~1Þ0Zs€Çó“ãZs
+Qœ1×Õ
1
2
linux rescue
Ìú
+ÃIÇäý{¯ÇÝi&~{ªÓǤ
+ ‹HÍÇn4{ ˜
,ýcmcPÄìNFS n4FTPÝHTTP¥ Ä ˜
¥ŒÝ9NjH{“ãdÇYǓãdŒZ~uZs{c#1 ¥{Red Hat Linux Çý#
3˜*&~ÇZscÝcuéÄÍÇÜ*ÇYǓãdŒZOŸÄ~{“ãd#
3•˜[ómcPÄìNFS qÖìFTP qÖìÝHTTP qÖìÞ÷˜“ãd{fåÇ
>kÝRed Hat Linux “ã
˜* {ÍÇn4X‰dËzÇÌún®4dOÁdËz˜*.²©G÷Pt
Ñ®åÞÝ,á0d ˜Þ“ãJPRM žGÝÇdËzÌi‹~
¤Ìt1>åÕ
The rescue environment will now attempt to find your Red Hat
Linux installation and mount it under the directory
/mnt/sysimage. You can then make any changes required to your
system. If you want to proceed with this step choose
’Continue’. You can also choose to mount your file systems
read-only instead of read-write by choosing ’Read-only’.
If for some reason this process fails you can choose ’Skip’
and this step will be skipped and you will go directly to a
command shell.
˜* ™ÇÇÌAC²{©Gø:ñt/mnt/sysimage ø9˜*ÇñIK
½ÇÇÌ/˜* ÖÇÇÌACó/mnt/sysimage ø9ñ{©Gø
:Çb4ñÜ*Ö˜* !,Ç{©Gø:RXÌúñ˜*Ö{©
Gø:.» Ç !,
`{ø:ŸœêÍÇÜ*ÇóVCÊ;›ÑÄ1 ZVC 2Ã&~[Ctrl]-[Alt]-[F1] \EuŸ
œVC 1Ç[Ctrl]-[Alt]-[F2] uŸœVC 2ÄÞÌñ
+Õ
-/bin/sh-2.05b#
˜* ê™uÄñ{IKÇ?%Ç¢úÄՏñêÇ Ò̟œ\~’Ü
*
ý"{©Gø:úñÇÍÇÜ*¥{å€ÊIKX,4Çø{ÊIKÇX4tž~’
Ü*Ãäqÿ/3 Ý5Ä¥{©Gø:ÊIK˜* ñ©Gø:Ç?%ÇúÄՏñ
êÇ,1/,‰q1×u²ÍÇÜ*{ÊIK•#{©Gø:{ÊIKÕ
chroot /mnt/sysimage
O“ãZscǂœ<8¸cÇ&~Red Hat Linux c1 Þ{images/bootdisk.img ©GÇ
?‰q×Õdd if=bootdisk.img of=/dev/fd0
2. O“ãZscÇ>kÝRed Hat Linux “㍥{€Ò
1.
9.
äýø:Á…
67
˜*‰äqrpm ƒ¡{×Ǖ#ÊIKÒÌi‹~ÇOY¡×F{ÊIKúñ
/Rñchroot ¢¸ÇEœexitÇÒÌ(Ãt
+
˜* !,Dž,1ACóÍÇÜ*¥CÓñIKÇ04ÕOÇø9ǘ,
/fooÇl€Eœ1×Õ
mount -t ext3 /dev/hda5 /foo
ó1Þ×¥Ç/foo 4O{ø9Ç/dev/hda5 4.ñ{IK˜*IK{¡n
4ext2Dzext3 ¦ext2
˜*XwIK{ÖÁÇ&~1×uïÞÇ¢Õ
fdisk -l
,
+Ç,1äqŽõ‹~{×Ǿ˜Õ
• list-harddrivesÇïÞø:¥{mcPÄì
• sshscp Zpingdžd4dúéÄ
• dump ZrestoreÇ~•Q‹QPÄì{~’
• parted ZfdiskÇ~u®IK
• rpmÇ~•“ãÝÿžG
• joeÇ~uö{˜©GØ*ACéÄÙǞ~{öìǘemacspico ÝviÇjoe öì…ÌúéÄÄ
9.3.
Zsœ\~’Ü*
\~’Ü*{€Öuƒ4X&~ZsžcÝZscÖX,ÇDžÎÉ
Ø격Gø:
ñÖÜ*ݚ9XñYÜ« ó\~’Ü*¥Ç{®åZsœäqÿ/1{ý©Gø:úñÇb4{dXÌú
íًÇ,~{ø:‘shellZÍÇÜ*X3Ç\~’Ü*ÌÄACñ{©Gø
:֘*{©Gø:ÃúÄÕñÇX&~\~’Ü*˜*{ø:Þ{äqÿ/1 {{
˜ú» ÇÒX&~\~’Ü*
˜*{ø:ZsêÇb4óZs€eXãŽ~9Ç,1Aø&~\~’Ü*
˜*&~{4GRUBÇ&~1Z½uZsœ\~’Ü*Õ
1. ˜*{˜êGRUB =ÇEœp ?Qœ=
2. Q‹.Zs{XÇý{Red Hat LinuxÇl€Eœe uöÌt~•Ä ò
){{˜©G¥{Ç1øï,
3. åDkernel {qÇl€Eœe uö q
4. Ýtq—Çl€EœsingleÕ[8Â]EÇl€Eœsingleĕ[Enter] uRñöÜ
*
5. ÃtêGRUB ¶ô€ÇEœb uZsœ\~’Ü*
˜*&~{4LILOÇóLILO Zs
+Ø*&~{4CošLILOnj•[Ctrl]-[x] uR
ñCoš¶ô€òŸœboot: +ĀEœÕ
linux single
68
9.4.
9.
Zsœ›úÜ*
äýø:Á…
ó›úÜ*¥ÇÌúZsœ¦,è{ø:¢¸¥Ê©Gø:RÌúñÖÜ*Ç%
‚ÑXÌú÷˜›úÜ*€•\~’Ü*ƒÿó•Õó›úÜ*¥Çinit ©G–‹úñ
œ˜*init ú» Ý*ŽäqDž,1ñ©GuÁ…ó­c“ã¥Ì¿{jâ
Zsœ›úÜ*Ç&~ó‘9.3 ¥Ãc{Zs\~’{0Ù¥‹Ç¾iDzE
single ¦ÄEemergency
10.
žGRAID {˜
D>Ý֑39uê‰RAIDmGZžGRAID -{K/1ùRAID 01Z5 ƒ-{K
/
žGRAID êóRed Hat Linux {Coš“ãÏ-Ýkickstart “ãÏ-{˜ý9ÿX˜[&
~Disk Druid ŽÁuó“ãÏ-{˜žGRAID
óORAID ÷÷ƒÇŒDORAID IKÇl€$¬1Z½Õ
1. ócIK÷˜¶ôÞÇ ~Disk Druid CÓIK
2. óDisk Druid ¥Ç cOuOÇcIK
3. XQœÇñšÃóOêRAID ÷÷€b,1)Ä
4. ,©Gø:¡nnh\¥ žGRAIDǘC10-1Ä+
C10-1. OÇcRAID IK
é•ãŽ{PÄìÇ óÙÞORAID {PÄì˜*‹õÇPÄìÇċP
ÄìÑÌóY°ú njR> X.óÞÁORAID {PÄì
6. Qœ.{IKLB
7. û½LBu&Ô®òä÷½LBÇ ½8-LB(MB)ÇQœ1MB 
\ {LBuÉÔ®òLBÇ)ŒÇÝ &~\\,~8-u&Ç{LBjßt
wrÇmc{,~8-˜*‹XŽÇ,j0{IKÇÇ¢ÌI0cÞ{,~88
-
8. ˜*.tYÇIKďÌIKÇ ›ÌIK
9. ˜*.t“ãǓóÂ*šmcPÄìƒ5†c LÇ 5†c L
10. šâh½u(Ãt̶ô
­…YJZ½uO{RAID ÷˜Ä‰{IKÕ?ÇX4ċ{IKь4RAID IKž
˜Ç,1²/home IK{˜žGRAID ÷÷
`Oêċĉ{žGRAIDIKÇ$¬1Z½Õ
1. óDisk Druid {ÌIK¶ôÞÃkDC10-3Ä RAID•<
2. zøÇC10-2ÒÌñÇ,1óY°›*RAID ÷÷
5.
70
10.
žGRAID {˜
C10-2. ›*RAID ÷÷
Qœñš
IK ©Gø:¡n
5. RAID ÷÷ ÷÷ÖÁǘÕmd0
6. {RAID ÿ/,Ø {‹ÕRAID 0 RAID 1ZRAID 5
3.
4.
Õ
˜*.²/boot ›ÄRAID IKnj RAID ÿ/1Ç%nj&~ÜÇPÄìƒ
ÃDIDEÇÙ'SCSIĘ*X.²/boot ›ÄRAID IKÇb4²/ ›ÄRAID IKÇÇ
Œ4RAID ÿ/1Ç%nj4ÜÇPÄìƒÃDIDEÇÙ'SCSIÄ
¦¦O{RAID IKÌñóRAID ÄÊï,¥,YÇï,¥ ORAID
÷÷{IK
8. ˜*{˜{4RAID 1 ZRAID 5Ç>½÷~IK{jޘ*ìǞGRAID IKH
êÇYÇ÷~{IKÌÄú~*¦IKéšÇ.½{÷~IKnj›*
Çi{žGRAID IKÃRAID ÷÷¥{IK1i{ÄóZ½¥ÇRAID ÷÷1ù
÷G IK
9. šâêh½€ÇRAID ÷÷ÌñóPÄì!ï,¥Ç˜C10-3Ä+YÇ
,1™“ãŸÇÜRŸZ€ÒÇ>kÝRed Hat Linux “ã
7.
10.
žGRAID {˜
C10-3. RAID jï.O
71
72
10.
žGRAID {˜
11.
LVM
{˜
,1óRed Hat Linux {Coš“ã,Ç¥Ýkickstart “ã,Ç¥ú{˜¤,1&~lvm
žGÝ¥{ÓäuO{LVM {˜b4ý9Ìø¥€Ò˜[óRed Hat Linux “ã,Ç¥&
~Disk Druid uqÄY1Ö
D>Ý֑49uê‰LVM14é{˜LVM ĉZ½{–cÕ
• ,mcPÄì¥OÔ®òÃphysical volumesÄ
• ,Ô®ò¥OòÃvolume groupsÄ
• ,ò¥O\öòÃlogical volumesÄÇ?I`\öòñš
LVM
Õ
óGUI “ãÜ*¥öLVM òó©ý“ãÜ*¥Ç,1É.?\öòI`ñš
óRed Hat Linux “ã,Ç¥OQ‹\öò{\öòÇZ½˜Õ
1. ócIK÷˜¶ôÞÇ ~Disk Druid CÓIK.
2. cO.
3. RXêQœñšÃOêò€",1QœÄ
4. ,©Gø:¡nnh\¥ Ô®ò(LVM)ǘC11-1Ä+
C11-1. OÔ®ò
Ô®òŒÛ!•ÇPÄìÞé•ãŽ{PÄì1øÇ óÙÞOÔ®ò
{PÄì˜*‹õÇPÄìÇċPÄìÑÌóY°ú njR> ÙÇ{P
ÄìǐâÇ.óÞÁOÔ®ò{PÄì
6. QœÄ‰{Ô®ò{LB
7. û½LBu&Ô®òä÷½LBÇ ½8-LB(MB)ÇQœ1MB \
{LBuÉÔ®òLBÇ)ŒÇÝ &~\\,~8-u&Ç{LBjßtw
5.
74
11. LVM
{˜
rÇmc{,~8-˜*‹XŽÇ,j0{Ô®òÇÇ¢ÌI0cÞ{,~88
-
8. ˜*.tYÇIKďÌIKÇ ›ÌIK
9. ˜*.t“ãǓóÂ*šmcPÄìƒ5†c LÇ 5†c L
10. šâh½u(Ãt̶ô
­…YJZ½uO{LVM ÷˜Ä‰{Ô®ò¾˜Ç˜*.tòJÖXŽÇPÄìÇ
óšÇPÄìÞÑOÇÔ®ò
´·
IKXê •ò¥ÇOZsãñǓÃ,¥ÖRǘ*.tÊIK •\öò¥Ç
‰OI{Xa•ò{/boot IK
/boot
Oêċ{Ô®ò€Ç>$¬1Z½Õ
1. šâLVM•<u²Ô®òÎøtò¥äýހÇò4Ô®ò{ø\,1‹õ
Ç\öòÇb4ÇÔ®ò •Çò¥
Õ
ó\öò¥âêJc8-*®D~Ô®ò{Z,Zò{LBX#ÖX,ÇÄ
+{\öò{LB4th{
C11-2. OLVM ÷÷
˜*‰Ç,1•#òÖÁ
ò{ċ\öòŒ•Ô®)ŒÃphysical extentÄ\ úI{•Lå€÷˜ÇÔ®)
Œú÷˜4 MBÖO$Ç\öò{LBŒêú4 MB rø˜*Qœ{LBX44 MB
{rõjǓãǓRÌÄ !z£4 MB rõj{jŠOFX•#YÇ÷˜
4. ~óò¥{Ô®ò
5. OQ‹/home ƒ¡ñš{\öò#Ç/boot Xê4\öò\öòǚ
â\öò\I¥{•<ǘC11-3Ä+{=ÒÌñ
2.
3.
11. LVM
{˜
C11-3. O\öò
šÇ.O{\öò­…1ÞZ½
" ,.ó\öò¥âJ88-ÇO$1€,1j0\öò
C11-4. \öòúO
75
76
11. LVM
{˜
III.
¦d#{{˜
‰:ê˜[{˜dƒ€ÇY9ÿX¦É#{1Ǿ˜Õ˜[ãŽÏÇ~9֘[ód
Þá0©GZø9֘[÷˜y‘qÖì
ø9
d{˜
äý3Û{˜
;›éqÖ{6¯
d©Gø:Ã Ä
ÄÕÌå{˜NFÃ
Ä
qÖì{˜
“\qÖì{˜
{˜
èy{˜
…GQS®Ã Ä{˜
12.
........................................................................................................................................ 79
13.
............................................................................................................................ 95
14.
....................................................................................................................... 101
15. OpenSSH.................................................................................................................................... 107
16.
NFS ............................................................................................................... 113
17. Samba......................................................................................................................................... 119
18.
DHCP .................................................................................................... 127
19. Apache HTTP
........................................................................................................ 133
20. Apache HTTP
................................................................................................. 147
21. BIND
.................................................................................................................................. 157
22.
...................................................................................................................................... 163
23.
MTA
...................................................................................................... 169
12.
d{˜
®å‰dËzbZÙÇ®å/µY4/,„v*ø:#/z=ØÕ1Ô
ISDN ®›‰®ìY)¢ÄÇ?{˜”z=uËztdÞu"{
d®Óä,1~u{˜1¡n{dz=Õ
• 1Ô
•
ISDN
•
®›‰®ì
•
xDSL
•
Y)¢
•
CIPE
Ã"÷÷
&~d®Óänjä÷ÊYéÄYÇǓǚâÁÆÞ{Ìh\ => ø
:÷˜ => dÇÝóshell +ØXTerm ÝGNOME ªàÄEœredhat-confignetwork ט*EœêYÇ×Ç¥X óäqÇCošÇýÌú+ÇdÇ䕩ý
{ÇýÌú+›äq䕩ý{ÇýÇ&~redhat-config-network-tui ×
•
C12-1. d®Óä
˜*Íõ¡†z•{˜©GÇ>kÝRed Hat Linux kuÜR•YJ{˜©G{
˜ZŽ{få
" 6¯Red Hat mG/Žuï,Ãhttp://hardware.redhat.com/hcl/Äug½Red Hat Linux 4d|Ñ{m
G÷÷
80
12.
12.1.

12.2.
OÁ1ÔËz
d{˜
&~d®Óäu{˜dËzljq1Z½Õ
1. ²Ô®mG÷÷tmGï,¥
2. Z”Ô®mG÷÷#{d÷÷
3. {˜ÌåÖZDNS ÷˜
4. {˜Ã/,DNS †¯{Ìå
ý9RÌb隡dËzuÿX1Þ{šÇZ½
OÁ1ÔËzlj<ÃNICÄÇdžƒÃ/ž4CAT5 žƒÄÇ1ùËz
{dX3{d{˜&~X3{¤ÝÇ>h½{NIC ¦.Ëz{d/Ž
1ÔËzljq1Z½Õ
1. šâ÷÷)ü
2. šâÓäyÞ{cO•<
3. ,÷÷¡nï,¥ 1ÔËzÇl€šâŸ
4. ˜*.²²têmGï,¥Ç,1Ôï,¥ ÇdÇ Ù
Ç1ÔumG÷÷
Õ
“ãǓ/žÌ5|Ñ{1Ô÷÷Ç?
+{˜Ç¢˜*ó“ã¥.{˜ê1Ô÷÷Ç
Ç¢ÌñómG)ü{mGï,
˜* êÙÇ1ÔÇ 1Ô7{ì=ÒÌñ ”1Ô{
›ÛZnR ”÷÷{ÖÁ˜*Ç4ø:{‘Ç1ÔDzeth0 *÷÷ÖÖ
˜*Ç4‘Ç1ÔDzeth1 *÷÷ÖÖ$¡Md®Óä¤ãŽNIC {
˜ý͚âŸu™
6. ó{˜d÷˜ÞØC12-2Ä+ÄÇ,1 DHCP Ý·ÕIP Œ˜*”÷÷
óš'déÄÑú½X3{IP ŒÇÒXÙ½Ìå֚âŸu™
7. šâO1Ô÷÷Þ{a~•<
5.
12.
d{˜
81
C12-2. 1Ô÷˜
{˜ê1Ô÷÷€ÇÇÒÌñóC12-3Ä+{÷÷ï,¥
C12-3. 1Ô÷÷
>h½ ©G => â?uâ?•#
ê1Ô÷÷€Ç,1,÷÷ï,¥ ÇÇl€šâöuöÇ{{˜ž˜Çh
ì÷÷úÇÇúå€{˜ÄZséĕ#YÇ÷˜Ç ö”÷÷Ç•h®å
éÄíÙ÷÷{ŠÇl€â?•#
h÷÷ú€ÇÇXÌúÁýíÙÇÌtXÙ×çÕíÙì÷÷Ç,÷÷ï,¥ ÇÇl€šâíٕ<˜*ø:{˜êó®åéÄ4íÙ÷÷Ãå€ÄÇX­c
‰qYZ½
˜*ìÇ1ÔÄÉ{÷÷XŽÇÇ1€{÷÷Ò4÷÷/ÖÃdevice aliasesÄ÷÷/Öã
ŽÉÇÔ®÷÷÷˜õNJ÷÷ÇO$ÇÔ®÷÷,1‹õÇIP Œ¾˜Ç,1{
˜eth1 ÷÷Zeth1:1 ÷÷-<>kݑ12.13 
12.3.
OÁISDN Ëz
Ëz4&~ISDN ®›‰®ì/,„ž›Ú‰“ã{Ož›"OÁ{ÉËzISDN
ËzóN³iq
ISDN
82
12.
d{˜
ISDN ËzÇ$¬1Z½Õ
1. šâ÷÷)ü
2. šâÓäyÞ{cO•<
3. ,÷÷¡nï,¥ ISDN ËzÇl€šâŸ
4. ,nh\¥ ISDN 7{ìl€”7{ì{˜ýÍZD ªwNFšâŸu
™
C12-4. ISDN ÷˜
˜*{ISP ó½{˜{ï,¥Ç ÇdÇQœ•{ISP AR{få˜*X
ê‰YJfåÇ>Éø{ISPšâŸ
6. óIP ÷˜=ÞÇ &~{UãÜ*Ç1ù4/,DHCP uÜRIP Œ¤4
·Õ÷˜Çˆe€šâŸ
7. óOÁCRËzÞǚâa~
{˜êISDN ÷÷€ÇÇÌó÷÷ï,¥1ISDN ÷÷ñǘC12-5Ä+
>h½ ©G => â?uâ?•#
êISDN ÷÷€Ç,1,÷÷ï,¥ ÇÇl€šâöuöÇ{{˜ž˜Çh
ì÷÷úÇÇúå€{˜ÄZséÄ,1öÇ{{˜u•Y1÷˜¸ÀPPP 1~9Ö=Ñ,1ú•#
h÷÷ú€ÇÇXÌúÁýíÙÇÌtXÙ×çÕíÙì÷÷Ç,÷÷ï,¥ ÇÇl€šâíٕ<˜*ø:{˜êó®åéÄ4íÙ÷÷Ãå€ÄÇX­c
‰qYZ½
5.
12.
d{˜
83
C12-5. ISDN ÷÷
12.4.
OÁ®›‰®ìËz
®›‰®ì,1~u{˜/,Ùמ›"Ÿq{ÉËz‰ÇÉqÖ
ØV
ÃISPÄARÑÁCRARÄ
®›‰®ìËzÇ$¬1Z½Õ
1. šâ÷÷)ü
2. šâÓäyÞ{cO•<
3. ,÷÷¡nï,¥ ®›‰®ìËzÇl€šâŸ
4. ˜*ómGï,¥.‹Ç{˜ê{®›‰®ìÃómG)üÞÄÇd®Óä"
½~ÇuOÁ®›‰®ìËz˜*–‹.{˜ê{®›‰®ìÇÇÌAC5ø:¥
{®›‰®ìæ,̓ã-˜*ItêÇ®›‰®ìÇ>åÌ+Ç´
·Ä+{÷˜X4æ¥It{Š
5. æ€Ç˜C12-6Ä+{=ÒÌ+
C12-6. ®›‰®ì÷˜
6.
{˜®›‰®ìEG;›1ù®›‰®ìQޘ*XwYJŠÇb4®›
‰®ìúÄՏætÇzI倊˜*–‹•E*ž›Ë"0*ÇR> #a{
… 'šâŸ
84
12.
d{˜
˜*{ISP ó½{˜{ï,¥Ç ÇdÇQœ•{ISP AR{få˜*X
ê‰YJfåÇ>Éø{ISPšâŸ
8. óIP ÷˜=ÞÇ &~{UãÜ*Ç1ù4/,DHCP uÜRIP Œ¤4
·Õ÷˜Çˆe€šâŸ
9. óOÁCRËzÞǚâa~
{˜ê®›‰®ì÷÷€ÇÇÌó÷÷ï,¥1®›‰®ì ÷÷ñǘC12-7Ä+
7.
C12-7. ®›‰®ì÷÷
>h½ ©G => â?uâ?•#
ꮛ‰®ì÷÷€Ç,1,÷÷ï,¥ ÇÇl€šâöuöÇ{{˜ž
˜Çhì÷÷úÇÇúå€{˜ÄZséÄ,1öÇ{{˜u•Y1÷˜¸
ÀPPP 1~9Ö=Ñ,1ú•#
h÷÷ú€ÇÇXÌúÁýíÙÇÌtXÙ×çÕíÙì÷÷Ç,÷÷ï,¥ ÇÇl€šâíٕ<˜*ø:{˜êó®åéÄ4íÙ÷÷Ãå€ÄÇX­c
‰qYZ½
12.5.
OÁxDSL Ëz
S,jh~’"4ÃDigital Subscriber LinesÄÇ{¡n‹ADSLIDSLZSDSLd
®Óä&~xDSL YÇbªuSċ¡n{DSL Ëz
ìJDSL ØVF&~1Ôu{˜ø:/,DHCP ÜRIP ŒìJDSL ØVF
&~1Ôu{˜PPPoEÃ1ÔÞ{šéšNFÄ>5{DSL ØVü®a”&~{0
˜*úF&~DHCPÇ>kݑ12.2 u{˜{1Ô
˜*úF&~PPPoEÇ$¬1Z½Õ
1. šâ÷÷)ü
2. šâÓäyÞ{cO•<
3. ,÷÷¡nï,¥ xDSL ËzÇl€šâŸ
4. ˜*{1ÔómGï,¥Ç,Y{nh\¥ 1Ô÷÷ǘC12-8Ä
+dÇ 1Ô7{ì=Ìñ
DSL
12.
d{˜
85
Õ
“ãǓ/žÌ5|Ñ{1Ô÷÷Ç?
+{˜Ç¢˜*ó“ã¥.{˜ê1Ô÷÷Ç
Ç¢ÌñómG)ü{mGï,
C12-8. xDSL ÷˜
˜* 1Ô7{ì=ñÇ ”1Ô{›ÛZnR ”÷÷{Ö
Á˜*Ç4ø:{‘Ç1ÔDzeth0 *÷÷Ö֘*Ç4‘Ç1ÔÇ
²eth1 *÷÷ÖÖ$¡Md®Óä¤ãŽNIC {˜ý͚âŸu
™
6. Qœ
ØÛÖÁ~9ÖZ=˜*‹ÇT-Online BRǦÙóå€
=¥Qœ~9ÖZ=Ç,1šâT-Online BR÷˜•<Ç?QœÄ‰f
åšâŸu™
7. óOÁDSL ËzÞǚâa~
{˜êDSL Ëz€ÇÇÌñó˜C12-7Ä+{ï,¥
5.
C12-9. xDSL ÷÷
86
12.
d{˜
>h½ ©G => â?uâ?•#
ê1Ô÷÷€Ç,1,÷÷ï,¥ ÇÇl€šâöuöÇ{{˜ž˜Çh
ì÷÷úÇÇúå€{˜ÄZséĕ#YÇ÷˜ÇöÇ{{˜
h÷÷ú€ÇÇXÌúÁýíÙÇÌtXÙ×çÕíÙì÷÷Ç,÷÷ï,¥ ÇÇl€šâíٕ<˜*ø:{˜êó®åéÄ4íÙ÷÷Ãå€ÄÇX­c
‰qYZ½
12.6.
OÁY)¢Ëz
óY)¢d¥Çċ{®åÑ1Ë¢0*ËzY)ÃtokenÄÇÝOdÝÇóY)¢°
ÄÇ,㎮å
$˜få
" • óLinux & ~ Y ) ¢ { - û f å Ç > k ÝLinux
•Õhttp://www.linuxtr.net/
Token Ring Project
ǔ5 Y)¢ËzÇ$¬1Z½Õ
1. šâ÷÷)ü
2. šâÓäyÞ{cO•<
3. ,÷÷¡nï,¥ Y)¢ËzÇl€šâŸ
4. ˜*.²ómGï,¥êÇY)¢Ç,1Ôï,¥ ÇdÇ ÙÇY)¢umG÷÷
5. ˜* êÙÇY)¢Ç˜C12-10 Ä+{ Y)¢7{ì=Ìñ 7{ì{›ÛZnR ÷÷ÖÁ˜*Ç4ø:{‘<Y)¢Ç tr0֘*
Ç4‘<Y)¢Ç tr1Ç$¡Md®Óä¤ãŽ~’7{ì{˜ý͚
âŸu™
C12-10. Y)¢÷˜
12.
d{˜
87
ó{˜d÷˜ÞÇ DHCP Ý·ÕIP Œ,1÷÷½ÇÌå֘*
”÷÷óš'éÄdÑzBtÇÄÕIP ŒÇX½Ìå֚âŸu
™
7. óOY)¢÷÷Þǚâa~
{˜êY)¢÷÷€ÇÇÌñó˜C12-11Ä+{÷÷ï,¥
6.
C12-11. Y)¢÷÷
>h½ ©G => â?uâ?•#
ê÷÷€Ç,1,÷÷ï,¥ ÇÇl€šâöuöÇ{{˜ž˜Ç,1{
˜4dóZséÄÇ
h÷÷ú€ÇÇXÌúÁýíÙÇÌtXÙ×çÕíÙì÷÷Ç,÷÷ï,¥ ÇÇl€šâíٕ<˜*ø:{˜êó®åéÄ4íÙ÷÷Ãå€ÄÇX­c
‰qYZ½
12.7.
OÁCIPE Ëz
S,·IP UãÃCrypto IP EncapsulationÄÇ~u{˜IP ¸w÷÷ž˜ÇCIPE ,1~
u,iŽŸœŠÛ~dÃVPNĘ*‰÷˜CIPE ÷÷Ç>5{ø:®Ê®¯th
{÷˜Š
CIPE
88
12.
d{˜
C12-12. CIPE ÷˜
" •CIPE Z÷˜CIPE {ÍõfåÇ>kÝRed Hat Linux “\
12.8.
OÁÃ"Ëz
Ã"1Ô÷÷óÖuÖq”{˜Z1Ô{˜#‘ǐX,ÇãŽ{˜SSID ÷˜Ç
1ù{Ã"÷÷{ØÒ
Ã"1ÔËzÇ$¬1Z½Õ
1. šâ÷÷)ü
2. šâÓäyÞ{cO•<
3. ,÷÷¡nï,¥ Ã"ËzÇl€šâŸ
4. ˜*.²²Ã"têmGï,Ç,1Ôï,¥ ÇdÇ Ù
ÇÃ"umG÷÷
Õ
“ãǓ/žÌ5|Ñ{Ã"1Ô÷÷Ç?
+{˜Ç¢˜*ó“ã¥.{˜ê1Ô÷
÷ÇÇ¢ÌñómG)ü{mGï,
˜* êÙÇÃ"Ç 1Ô7{ì=Ìñ ”1Ô{›
ÛZnR˜*Ç4ø:{‘Ç1ÔDzeth0 *÷÷Ö֘*Ç4‘Ç1Ô
Dzeth1 *÷÷ÖÖ$¡Md®Óä¤ãŽÃ"{˜ý͚â
Ÿu™
6. ó˜C12-13Ä+{{˜Ã"ËzÞǏÃ"÷÷{˜÷˜
5.
12.
d{˜
89
C12-13. Ã"÷˜
ó{˜d÷˜ÞÇ DHCP Ý·ÕIP Œ,1÷÷½ÇÌå֘*
”÷÷óš'éÄdÑzBtÇÄÕIP ŒÇX½Ìå֚âŸu
™
8. óOÃ"ËzÞǚâa~
{˜êÃ"÷÷€ÇÇÒÌñó˜C12-14Ä+{÷÷ï,Þ
7.
C12-14. Ã"÷÷
>h½ ©G => â?uâ?•#
êÃ"÷÷€Ç,1,÷÷ï,¥ ÇÇl€šâöuöÇ{{˜ž˜Ç,
1{˜4dóZséÄÇ
h÷÷ú€ÇÇXÌúÁýíÙÇÌtXÙ×çÕíÙì÷÷Ç,÷÷ï,¥ ÇÇl€šâíٕ<˜*ø:{˜êó®åéÄ4íÙ÷÷Ãå€ÄÇX­c
‰qYZ½
90
12.
12.9.
d{˜
®DNS ÷˜
)üãŽ{˜ø:{ÌåÖ­ÖÁqÖìZœÂ­ÖÁqÖì~u†¯dÞ{Ù
ÇÌå
˜*DNS qÖì,DHCP ÝPPPoE ¥5ÂtÃÝ,ISP ¥5ÂÄÇXÌ'ݑ
®DNS qÖì
˜*ÌåÖúÄՏ,DHCP ÝPPPoE ¥5ÂÃÝ,ISP ¥5ÂÄÇ>X•#Ç
DNS
C12-15. DNS {˜
Õ
ÖÁqÖì\IX4~u²ø:{˜ÄÖÁqÖì{Ç4~u{˜ø:‰ÛIP ŒZÌåÖÄ~{ÖÁ
qÖì
12.10.
®Ìå
Ìå)üãŽ,/etc/hosts ©G¥öÝÍøÌ唩GÝ9IP ŒZÇ¢
#éa{ÌåÖ
h{ø:AC²Ìå։ۏIP ŒÝg½IP Œ{ÌåÖÇÇó&~ÖÁqÖì
DkL/etc/hosts ©GÃ¥&~{4å€{Red Hat Linux {˜Ä˜*IP Œúï
ó/etc/hosts ©G¥ÇÖÁqÖìÒXÌú&~˜*{dÝi–‹ïóDNS {IP
ŒÇM?²Ç¢t/etc/hosts ©G¥
ó/etc/hosts ©G¥1øǚâÌå)ü{cO•<Ç
ØF{fåÇl€
šâh½ ©G => â?ݕ[Ctrl]-[S] u²•#â?t/etc/hosts ©G¥
X­céÄdÝdqÖÇO”©GóšÇŒú‰ÛÑÌúkL
´·
XÍølocalhost 1øý"ø:–‹dËzÝљäq{dËzÇìJǓ…‰/,localhost
¢ÃŽÁuËzø:
12.
d{˜
91
C12-16. Ìå{˜
" •#†¯~“Çö/etc/host.conf ©Gorder hosts, bind Yq½/etc/hosts €•Ö
ÁqÖì²Yq•order bind, hosts Ì{˜{ø:D&~ÖÁqÖìu‰ÛÌåÖZIP 
Œ˜*IP ŒÃ/,ÖÁqÖìú‰ÛÇ{ø:Ìó/etc/hosts ©G¥†¯IP Œ
12.11.
íÙ÷÷
d÷÷,1ú{˜óZsÙ×ÝXÙ×¾˜Ç®›‰®ìËz{d÷÷/žXóZs
úéÄÖ1ÔËz/žóZsúéĘ*{d÷÷ú{˜ÄXóZséÄÇ,1
&~Red Hat ;›dǓuóZs€íÙÇéÄÇǚâÁÆÞ{Ìh\ => ø:Ó
ä => d÷÷;›ÇÝEœ×redhat-control-network.
C12-17. íÙ÷÷
íÙì÷÷Ç,ï,¥ Çǚâíٕ<*Ž”÷÷Ç,ï,¥ Çǚâ‰
ø
92
12.
d{˜
˜*{˜êXŽÇd{˜©GÇÇ¢óŽÁ¥úïñÇ?,1úíÙ-<>kݑ12.12

12.12.
&~{˜©G
šÇÔ®mG÷÷,1OõÇ\öd÷÷¾˜Ç˜*{ø:ދÇ1ÔÃeth0ÄÇ
,1&~X3{RZX3{{˜ 1u{˜\öd÷÷YJ÷÷ÑZeth0 #É
\öd÷÷¦÷÷/ÖX3Z3Ô®÷÷#É{\öd÷÷Œ?ó•X3{{˜©G
¥Ç?%Xú3íÙ÷÷/Ö¦3Ô®mG÷÷#ÉÇb4Z3Ô®mG#É{
÷÷/Öê3úíٕO÷÷/Ö{-<Ç>kݑ12.13 
{˜©GÃProfilesÄ,1ú~uX3{dOõÇ{˜ø\{˜ø\¥øêÌåZDNS ÷
˜i¤,1Ý9\ö÷÷{˜ê{˜©G€Ç,1&~d®Óä uóÇ¢ƒ-#¦&
~
•Lå€÷˜ÇÙ¥Ç{˜©GÚ~Oc{˜©GÇ {˜©G => c
OÇl€{˜©GQœÇÕ{ÖÁ
ótó•˜Ì=Ž\{çÕyÄ+{c{˜©G
šâ.²óï,¥{ìÇ?÷÷Çl€šâ…›•<u²ìÇ?÷÷…›t\öd
÷÷˜*&~cO•<ÇO{Ì4d/ÖÇY4Xth{•#\ö÷÷{a
uÇ,ï,¥ ÇÇl€šâö¾˜ÇR,1ú•ÄÇÍäÃcu{ÖÁÇ
˜eth0_officeÇO$Ç,1ú͎4ú#/
ó÷÷ï,¥Ç‹ïú){˜©G{… 'éšÇ{˜©GÇÑ,1 ÝR> ÷÷ úÝióh ¥{˜©G¥{÷÷¾˜Ç˜*óÇw)Office {{˜©G
¥OêÇw)eth0_office {\ö÷÷Ç?.ó”{˜©Gú íÙYÇ\ö÷÷ÇR
> eth0 ÷÷Ç eth0_office ÷÷
¾˜ÇC12-18+êÇQ‹\ö÷÷eth0_office {w)Office {{˜©GÇ{˜&~DHCP
uíّÇ1Ô
C12-18. Office {˜©G
Õ?ǘC12-19Ä+{Home {˜©GíÙeth0_home \ö÷÷ǔ÷÷¦eth0 #É
12.
d{˜
93
C12-19. Home {˜©G
¤,1{˜eth0 uíÙOffice {˜©GÇóHome {˜©G¥íÙppp®ìÄ÷
÷Ǿ4tÚ~{˜©GíÙeth0Ç&~Away {˜©Gó@q~uíÙppp ÷
÷
ZsXíÙ{˜©G‹óÚ~{˜©GÃå€{{˜©GÄ¥ú÷˜óZsíÙ
{÷÷bóZsúíÙø:Zs€ÇšâÁÆÞ{Ìh\ (on the Panel) => ø:Ó
ä => d÷÷;›ÃÝEœredhat-control-network ×Äu Ç{˜©G?í
ÙÇíÙ{˜©G\I‹óøêå€{Ú~{˜©GiǤ‹ÙÇ{˜©G{<Yb
Ìñód÷÷;›ŽÁ¥
ÝVÇ&~1×ué~{˜©Gò<profilename> ¦{˜©G{ÖÁÄÕ
redhat-config-network-cmd --profile <profilename> --activate
12.13.
÷÷/Ö
÷÷/ÖÃDevice aliasesÄ4Z3Ô®mG#É{Š÷÷Çb4Ç¢,13úíÙÇ?
p‹X3{IP ŒÇ¢/ž&~÷÷֋RZjuS,þ˜Õeth0:1ÄÇ¢ó.Éø
:õÇIP Œe‹Çi‹~ÿ
{˜ê1Ô÷÷ǘeth0 ƒ€Ç&~·ÕIP ŒÃDHCP X&~/ÖÄÇÝt÷÷)
üÇ?šâcO {˜ê/Ö{1ÔÇ÷˜/Ö{·ÕIP ŒÇl€šâa~
uOÇO1Ô{÷÷.²?óǦ¦O{X,4Ç/Öǘeth0:1
´·
˜*É1Ô÷÷{˜/ÖÇ YÇ÷÷Z/ÖÑX{˜&~DHCPŒCÓ{˜IP Œ
C12-20+êeth0 ÷÷{Ç/ÖÕ?eth0:1 ÷÷— eth0 {‘Ç/Öeth0 {‘Ç
/Ö{÷÷ÖÌ4eth0:2Ç$¡M•÷÷/Ö{÷˜Ç˜4dóZsíÙÇÝ/Ö
RhÇ,ï,¥ ÇÇl€šâö•<
94
12.
d{˜
C12-20. d÷÷/Ö+¾
ìÇ/Öǚâíٕ<uíÙYÇ/֘*{˜êõÇ{˜©GÇ ÝiÇ{
{˜©G
Dè/Ö4dúíÙÇ&~/sbin/ifconfig ×ÙQœa”+”÷÷Z÷÷/Öp‹X
3{IP ŒÕ
eth0
Link encap:Ethernet HWaddr 00:A0:CC:60:B7:G4
inet addr:192.168.100.5 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:161930 errors:1 dropped:0 overruns:0 frame:0
TX packets:244570 errors:0 dropped:0 overruns:0 carrier:0
collisions:475 txqueuelen:100
RX bytes:55075551 (52.5 Mb) TX bytes:178108895 (169.8 Mb)
Interrupt:10 Base address:0x9000
eth0:1 Link encap:Ethernet HWaddr 00:A0:CC:60:B7:G4
inet addr:192.168.100.42 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0x9000
lo
Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5998 errors:0 dropped:0 overruns:0 frame:0
TX packets:5998 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1627579 (1.5 Mb) TX bytes:1627579 (1.5 Mb)
13.
äý3Û{˜
˜3OÓÔ¥{3ÛÌAC3ŽÛ3xÒÇ®å¥{3ÛÌAC3Ž®å>ÓxÒt{
ø:¥Ç¤3Ž™²GY{~’Ÿœ{ø:3Û?ó•{®åZdƒ-ÇÇ,1
g½{®åÞýJqÖ,1údÞ{ÏÇ~’6¯Çth{˜{3ÛêôL
{ø:“\u·¢
FÄ1ËztÉÞ{Red Hat Linux ø:{˜Ç3Û
13.1.
“\ÿ/{˜Óä
“ã¥{3Û{˜¶ôÉ
ØêÇ,Ø { 1Õ°ÿ¥ÿÃ3
ÛÖ¤,1 ãŽ{½÷÷ŸœqÖZà=
“ã€Ç,1&~“\ÿ/{˜Óäu•#ø:{“\ÿ/˜*Íõ¡&~ä•5s{Ç
“Ç>kݑ13.2 
éÄYÇÇ“Ç ÁÆÞ{Ìh\ => ø:÷˜ => “\ÿ/ÇÝ
óshellØXTerm ÝGNOME ªàÄEœredhat-config-securitylevel ×
Red Hat Linux
C13-1. “\ÿ/{˜Óä
,nh\¥ .{“\ÿ/
°ÿ
‘
˜* °ÿÇ{ø:RXÌzI–‹ú/?½B{ËzÃå€÷˜1i{Ë
zĕLå€÷˜Ç‹1ËzÌúãŽÕ
• DNS Ãa
• DHCP — O$Ç[&~DHCP {dŽÁÑ,1úth{{˜
˜* °ÿÇ{3ÛRXÌãŽ1ËzÕ
96
13.
•
•
•
äý3Û{˜
Ù×çÕFTPÃóõj0’å¥å€&~{úÄçÕFTPÇa”êtžäqÄ
IRC DCC ©GQ
RealAudio™
ÏÇX =ø:0’
˜*²ø:ËztÉÞÇb4XK®²Çh*qÖìuäqÇY4!“\{ ˜*‰i{qÖÇ,1 ½›u㎍½{qÖ,3Û
•
Õ
˜* ê¥ÿÝ°ÿ3ÛÇdèy0ÃNIS ZLDAPÄRÃH
¥ÿ
‘
˜* ¥ÿÇ{3ÛRXÌãŽÏÇåì6¯{ø:Þ{ìJý͕Lå
€÷˜Çé1ýÍ{6¯4å€XãŽ{Õ
• „ •1023 { à =— Y J 4 ) ï â { à = Ç Ì ú J ø : q Ö Ä & ~ Ç
˜ÕFTPSSHtelnetÇHTTP ZNIS
• NFS qÖìà=(2049) — NFS éÏÇqÖìZý0’Ñ.¢~
• ÏÇX 0’å÷Á{ýX =ø:+
• X qÖìà=ÕLå€÷˜Çxfs X)&dÖÇóqÖì¥ú¢~Ä
˜*3.ïŽtRealAudio™ ƒ¡ýÍ{6¯Çb…׬tÊ/ø:qÖ{6¯Ç ¥ÿ3,1 ½›uãŽä½{qÖ,3Û
Õ
˜* ê¥ÿÝ°ÿ3ÛÇdèy0ÃNIS ZLDAPÄRÃH
Ã3Û
‘
Ã3ÛÉ£q\6¯Y?X)[“\5†ø:5†4éìJqÖ{¢~OF‹
óÇ,f{dÃ:ÉÄ¥äqÇÝV.ã€òŸq-û{3Û{˜b $1
½›uf{÷÷Ý㎎{ŸœqÖ
f{÷÷
‘
[Çf{÷÷ÌãŽÄ‹u”÷÷{t{ø:{b/ÇXó3Û
{!›ƒž˜Ç˜*óäqÇýdÇb4/,PPP CRËztêÉÞÇ
,1 eth0Çċu{ýd{b/ÒÌú㎲eth0 f{
÷÷?›Íċ/,1Ô{b/ÑÌúãŽÇb4/,ppp0 z={b/…I3Û{!
›˜*.óìÇz=Þ{b/ÇÒX Ç
OFX²ËztÚádǘÉÇÞ{÷÷ f{÷÷
㎟œ
‘
é~YJ 1RãŽä½{qÖ,3ÛÕ?ÇóÓ*5¡n“ã¥ÇLõjY¡
qÖóø:X?ó
13.
äý3Û{˜
97
DHCP
‘
˜*㎟œ{DHCP †®ZÃaÇÌãŽ[&~DHCP ug½ÙIP Œ{d
z=DHCP /ž4é~{˜*DHCP –‹úé~Ç{®åÒXòêÜRIP 
Œ
SSH
‘
Secure Ó\ÄSHell (SSH) 4~uóÏÇåìÞ~9ù‰q×{NF G˜*
™&~SSH Óä/,3ÛuŸœ{åìÇé~” 1Œ“ãopensshserver žGÝb&~SSH ÓäuÏǏŸœ{åì
Telnet
‘
Telnet 4«ÏÇ~9åì{NFTelnet {/f4X·{ǖ‹
Ø[3Žd
%惡{“\DOFX㎟œ{Telnet 6¯˜*.㎟œ{Telnet 6
¯ÇŒ“ãtelnet-server žGÝ
WWW (HTTP)
‘
HTTP NFúApacheÃ1ùÙÇy‘qÖìÄ~u
ؘ*K®&{y‘
qÖìÚ,~Ç>é~” 1Xé~” 1uý†Ý˜
*.
Ønj“ãapache žGÝ
é~WWW (HTTP)X̏HTTPS KÇà=é~HTTPSÇóÙÇà=
㥍½Ç
…G(SMTP)
‘
˜*.㎟œ{…G,{3ÛÇO${ÏÇÌåê†zËzt{åì
u±…GÇé~” 1˜*.,&~POP3 ÝIMAP {ISP qÖìuBR…
GÇÝ&~fetchmail ƒ¡{ÓäÇXé~YÇ 1Õ?ÇXth{˜{SMTP
qÖìÌãŽÏÇåì&~{qÖìu˜mã…G
FTP
‘
FTP NFú~uódÞ{åì-Q©G˜*K®&{FTP qÖìÚ,~Ç
é~” 1‰“ãvsftpd žGÝb4” 1ê*~
šâh½uíÙ3ۚâêh½€Ç ½{ 1ÒÌúݦÄiptables ×?U
œ/etc/sysconfig/iptables ©Giptables qÖúéÄÇO$Çâ?ê ½ 1€Ç3
ÛÒÌúÁýíÙ
´·
˜*ó/etc/sysconfig/iptables ©G¥{˜êÇ3ÛÝ3ÛÇó êÃ3Û
?šâêh½uâ?•#ƒ€ÇYÇ©GÒÌúÍø
½{ 1¤úUœ/etc/sysconfig/redhat-config-securitylevel ©GÇO$YJ÷˜
óǓ'éÄúÁ…>XCÓö”©G
íÙiptables qÖÇ?óZsÄéÄÇ>kݑ13.3 uÜR-<
98
13.
äý3Û{˜
13.2. GNOME Lokkit
ãŽ/,OÁäý{ipchains ÉuÊ/~’{˜3Û÷˜
XUYJǔǓÌ5
ñø[&~ø:{¯Çl€²Ç¢U
œ/etc/sysconfig/ipchains ©G
Xa”&~GNOME Lokkit uąì{3۔Ǔ{ø{4ÐÏÊ/~’ó&~
®›‰®ìžƒÝDSL ËztÉޟq·â{˜{3ÛÇ>k
ÝRed Hat Linux k V¥{&~iptables uOÁ3ÛY9
¢~½{qÖÝáý½{ÌåZ~’Ç>kݑ149
éÄCoš{f GNOME LokkitÇ Ìh\ => ø:Óä => Íõø:Óä =>
LokkitÇÝóshell +1Ê~’üPEœgnome-lokkit ט*–‹“ãX =ø:Ç
ÝV€ 䕩ý{ǓÇóshell +Eœlokkit ×uéÄYÇǓ{©ýÜ*
GNOME Lokkit
13.2.1.
äý
C13-2. äý
óéÄǓƒ€Ç{ø: #a{“\ÿ/Õ
• High Security — Y 1Ì¢~‚Ä‹íÙdĉ{DNS ÃaZDHCP ƒi{d
ËzIRCICQÙÇý>å”qÖ1ùRealAudio™ ó–‹S®{<YÑÃä
q
• Low Security — ” 1RXÌãŽtø:{ÏÇËzÇÝiNFS ËzZÏÇX =ø:Ì
›óà=1023 ƒäq{qÖRXÌzIËzÇÝiFTPSSHTelnet1ùHTTP
• Disable Firewall — ” 1XÌO[“\OF‹óf{dÃ:ÉÄ
¥äqÇÝóLn3ۃ€äqÇÝqU½›{3Ûb ” 1˜*
½êYÇ 1?šâêZÇ>!t‘13.3 Y{ø:{“\ÿ/RXÌú
•#
13.2.2.
ýÌå
˜*ø:ދ1Ô÷÷ÇLocal HostsÌãŽ{˜3Û4da~t˜Éš
Ç÷÷{Ëz>F˜*”÷÷²ø:Ëzt3ۀ{Û­Ç?X†zËztÉÇ Yes˜*”1Ô²ø:ËztžƒÝDSL ®›‰®ìÇ·¢
F No
13.
äý3Û{˜
99
C13-3. Local HostsÃýÌåÄ
13.2.3. DHCP
˜*&~DHCP uíÙø:Þ{[1Ôz=njéDHCP ¯ÃIYes˜*
ÃIêNoÇRÃ&~1Ôz=uOÁËzŽõžƒZDSL É
ØVF&
~DHCP uOÁÉËz
C13-4. DHCP
13.2.4.
{˜qÖ
¤ãŽéÄÝ*ŽÊ/q֘*ó{˜qÖÃIê4ÇÒÌzt
‹ïqÖ{
+Õ
• Web Server — ˜*K®t~’Ëztó{ø:Þäq{y‘qÖìØApacheÄÇ
> ” 1֘*K®†{ø:ÝdÞÙÇqÖìÞ{ÇX ” 1
GNOME Lokkit
100
13.
äý3Û{˜
Incoming Mail — ˜*{ø:‰zIŸœ{…GÇ ” 1˜*K®&
~IMAPPOP3Ýfetchmail u5ž…GÇX ” 1
• Secure Shell — “\ShellÇÝSSHÇ4Ç~uóÏÇåìÞ/,·Ëzu~9Z‰q
×{Óä G˜*‰/,ssh uÏǏ6¯{åìÇ ” 1
• Telnet — Telnet ãŽÏÇ~9t{åìÞÇX,ÇÇ?X“\Çód¥˜{4
©ýÃÝi=ÄM?&~SSH ó{åìÞÏÇ~9˜*‰&~telnet u6¯
{ø:Ç ” 1
¢~X‰{ÙÇqÖÇ&~qÖ{˜ÓäÃkݑ14.3 ÄÝntsysv Ãkݑ14.4 ÄÇ
ÝchkconfigÃkݑ14.5 Ä
•
13.2.5.
íÙ3Û
šâˆe̲3ÛUœ/etc/sysconfig/iptables ©GÇ?/,éÄiptables q
ÖuéÄ3Û
´·
˜*{˜ê3ÛÇÝ ó/etc/sysconfig/iptables ©G¥{˜ê3ÛÇ ¥ êDisable Firewall?šâˆeuâ?Ä)•#ÇYJ3ÛÒÌúÍø
·¢ñOF,åìX4ÏÇX ̛¥äqGNOME Lokkit˜*¢~êt{åì{Ï
Ç6¯ÇRÃòŸœø:u¢~3Û
˜*X.Uœ3ÛǚâR>
…GÝ
…GÝÃmail relayÄ4ãŽÙÇø:/,Çuž…G{ø:˜*{ø:4DžG
Ý5ÇìJ|",~Çu/,{åì±mã…G
˜* ½é~…GqÖÇóActivate Firewallޚâˆe€ÇÌú
+4d5
†…Gݘ*ÃIêYesu5†…GÝÇGNOME Lokkit ÒÌACËzMail Abuse
Prevention System 5Ãhttp://www.mail-abuse.org/ÄÇ?äq…GÝAǓAˆ*Ìó
ˆe€+˜*{ø:5…GÝ8ÇñM?{˜Sendmail u½Ç{
13.2.5.1.
13.3.
íÙiptables qÖ
3ې‹óiptables qÖäq{búíÙCÓéÄqÖÇ&~1×Õ
/sbin/service iptables restart
hâÇóø:ZséÄÇ&~1×Õ
/sbin/chkconfig --level 345 iptables on
ipchains
qÖXZiptables qÖ3äqh½ipchains qÖú¢~ljq1×Õ
/sbin/chkconfig --level 345 ipchains off
¤,1&~qÖ{˜ÓäuíÙiptables Zipchains qÖÇ-<>kݑ14.3 
14.
;›éqÖ{6¯
‘Red Hat Linux ø:{“\uôà­®ø:“\{0ƒ4ž®éø:qÖ{&
~{ø:,‰
ØéìJqÖ{Ú¼~ޘhttpdǘ*óäqy‘qÖì{
›Älǘ*X‰
Øì1qÖÇa”²Ç— YÌ\„é,Ìñ{<åR
<Y{ÍG
®éø:qÖ6¯{0‹P«ŒÊâqÖø:{˜1ùéLinux {=ºÇÝu
û½a&~ý«0
áýéìqÖ{&~{!;"04RÙXX4„xinetd÷¢Ìóý9€Á-ûÿ
XÄ®{qÖǤ4ó/etc/rc.d €'¥{qÖÇÑ,1&~1®«X3{a~Ǔu{˜
ÙéÄÝ*ŽÕ
• qÖ{˜Óä — ÇCoša~ǓÇÇ+êš1qÖ{ÃcÇ1ùš1qÖ4dóZs
éÄÃäqÿ/345ÄÇ?ãŽéÄ*ŽÝ­céĚ1qÖ
• ntsysv — 䕩ý{ǓÇ㎏šÇäqÿ/{˜ZséÄ{qÖé•Xa
•xinetd {qÖÓǕ#XÌÁýHX&~YÇǓuéÄ*ŽÝ­céÄX
a•xinetd {qÖqÖ
• chkconfig — ÇãŽóX3äqÿ/éÄZqÖ{×qÓäé•Xa•xinetd
{qÖÓǕ#XÌÁýHX&~YÇÓäǓuéÄ*ŽÝ­céÄXa
•xinetd {qÖqÖ
,Ì1ÞÓä&~ÁYJ0Í;\— CÓö •/etc/rc.d ø9{LÞnR
ÓzÇÝVö/etc/xinetd.d ¥{xinetd {˜©G
®éø:qÖ{&~{«04/,&~iptables u{˜IP 3ۘ*4Linux c
CÇ>Õ?Çiptables ,X4{!‰ûÍ÷˜iptables 41…ì{*Ç!P„
²èTŒ{Linux ø:®Êu‰q
,nÝÓÇiptables {€Öu4Ç{Ùuž˜Ç˜*‰Ç½›{‰û0™u
ìJÌå
ØtìJqÖ{&~YÇiptables ê
ؕiptables {-<Ç>k
ÝRed Hat Linux kZRed Hat Linux “\
$iǘ*¯I{4ê{~åì÷˜ž6¯{ÓäǓÇ?%ÃÝVĤ
4Linux cCÇa”A&~“\ÿ/{˜ÓäÃredhat-config-securitylevelĔÓ
ä㎏ø: “\ÿ/ÇÇZRed Hat Linux “ãǓ¥{3Û{˜¶ô#‘¤
,1&~GNOME LokkitGNOME Lokkit 4«GUI ÓäÇÇÌ5®¯J˜[&~
{åì{¯Êâ{ÃIÇÇ̏{˜Ç;\{3ەYJÓä{-<Ç>k
ݑ139˜*‰ÍÒh{3ÛÇ>kÝRed Hat Linux k¥{iptables Y
9
14.1.
äqÿ/
ó{˜tqÖ{6¯ƒÇŒ®‰Linux äqÿ/äqÿ/4«çÕÇÝÜ*
ÃmodeÄÇDŽïó/etc/rc.d/rc<x>.d ø9¥{qÖu½BÇÙ¥<x> 4äqÿ/{j
Red Hat Linux &~ïäqÿ/Õ
• 0 — *ä
• 1 — \~’Ü*
• 2 — –‹&~Ã,„~’½BÄ
102
14.
;›éqÖ{6¯
q\{õ~’Ü*
–‹&~Ã,„~’½BÄ
• 5 — q\{õ~’Ü*ÃQ‹ä•X {~9¶ôÄ
• 6 — ­cZs
˜*&~{4©ý~9¶ôÇ4óäqÿ/3 ¥v*˜*&~{4Coš~9¶ôÇ4
óäqÿ/5 ¥v*
å€{äqÿ/,1/,•/etc/inittab ©Gu•#ǔ©Góz£>{0‹q¦
Á#‘Õ
•
3—
•
4—
id:5:initdefault:
²Yq¥{j•Ä.{äqÿ/Ä)•#óø:­cZsƒ€bÌH
Áý•#äqÿ/Ç&~×telinitÇـ˱äqÿ/jŒ4Ê~’b&~Y1
×
14.2. TCP
ÌwǓ
ŽõUNIX ø:®Êé&~TCP ÌwǓu®éìJdqÖ{&~vYç
„xinetdÃ1ù[Q‹Olibwrap |Ñ{ǓĮ{qÖê&~TCP ÌwǓu®
&~Yxinetd ê&~/etc/hosts.allow Z/etc/hosts.deny ©Gu{˜tø:q
Ö{&~˜©G{ÖÁĖ+Çhosts.allow Ý9ÇãŽ0’&~úxinetd Ä;›{
dqÖ{ï,Çhosts.deny ©GÝ9áý&~Y{hosts.allow ©G€
•hosts.deny ©Gé&~Y!{G£Ýáý,1ÊâÇ/IP ŒÃÝÌåÖÄÝ¡0’
½-<>kÝRed Hat Linux kZhosts_access {€ÒVÃmanđÊ9Ãman
5 hosts_accessÄ
14.2.1. xinetd
;›tÉqÖ{6¯Ç&~xinetdÇ4inetd {“\¦¬xinetd EŸÇâ?ø
:ýÍÇ
Ø6¯;›Z†“9Ç?,1~uéÄOø{{qÖìxinetd ê~u
Øt
ìJÌå{6¯ÖáýtìJqÖ{6¯Ö!›ŸœËz{ªGZÃÝÄËzÄ{ñÞ
xinetd ÃXóäq?)&ÇÄ®{ċà=Þ{qÖhìÇËzÇ®{ì1qÖ{>
FtHÇxinetd Ò̏”qÖéÄ\7{qÖì
xinetd {{˜©G4/etc/xinetd.confÇb4ǐÝiÇ倊1ùÝ9/etc/xinetd.d
ø 9 ¥ { { ˜ © G ˜ * ø 9 {  é ~ Ý ¢ ~ ì 1xinetd q Ö Ç ö •/etc/xinetd.d ø9¥{{˜©G˜*disable auú÷yesǔ1qÖ.¢~
˜*disable auú÷noǔ1qÖ.úé~,1&~qÖ{˜Óäntsysv
Ýchkconfig uö[Çxinetd {˜©Gݕ#Ç{é~çÕÜz„xinetd ;›{
dqÖï,Ç&~ls /etc/xinetd.d ×uïÞ/etc/xinetd.d ø9{Ž
14.3.
qÖ{˜Óä
qÖ{˜Óä4Coša~ǓDŽRed Hat Ç~u{˜/etc/rc.d/init.d ¥óZs
Ãéäqÿ/345 ÓÄéÄýJSysV qÖÇýJxinetd qÖÇãŽéÄ*ŽZ
­céÄSysV qÖ1ù­céÄxinetd
,óÁéÄqÖ{˜ÓäǚâÁÆÞ{Ìh\ => ø:÷˜ => qÖì÷˜
=> qÖÇÝóshell +ØXTerm ÝGNOME ªàÄÇEœ×redhat-configservices
14.
;›éqÖ{6¯
103
C14-1. qÖ{˜Óä
qÖ{˜Óä+häqÿ/1ùøtö{äqÿ/öX3{äqÿ/Ç,
nh\¥ öäqÿ/Çl€ äqÿ/34Ý5•éäqÿ/{ÃcÇ>k
ݑ14.1 
qÖ{˜ÓäXbïñê/etc/rc.d/init.d ¥{qÖǤïñê„xinetd ;›{q֚â&
}ï,¥{qÖÖu+”qÖ{;áÃc1ùÇ{qÖç՘*YÇqÖX4xinetd qÖÇ
çÕ=Ì+”qÖø4dóäq˜*”qÖúxinetd Ä;›ÇçÕ=Ì+xinetd
qÖYÇáª
ÁýéÄ*ŽÝ­céÄì1qÖÇ,ï,¥ ”1qÖÇl€šâÓäyÞ{#a•<
ÃÝ,qÄnh\¥ qÄĘ*”qÖ4Çxinetd qÖÇqĕ<Ìú¢~ÇO
Ç¢Xú\ǏéÄÝ*Ž
˜*/, ÝR> qÖÖk{… 'ué~Ý¢~êxinetd qÖnj,nh\
¥ ©G => â?•#u­céÄxinetdÇ?Áýé~Ý¢~ĕ#{xinetd q
Öxinetd ¤ú{˜ÄÄA÷˜,13é~Ý¢~õÇxinetd qÖÇóˆe€òâ
?•#
ž˜Ç"÷ óäqÿ/3 ¥é~rsyncÇ?â?ê•#rsync qÖÌÁ/úé~
'xinetd úéÄÇrsync …Ìúé~
´·
hâ?êxinetd qÖ¥Ä){•#Ç­céÄêxinetd €Ç•#ÒÌÁýHhâ?êéÙÇq
Ö{•#Çäqÿ/Ìú­c{˜Çb4•#XÌÁýH
óZsh ¥{äqÿ/é~Xa•xinetd {qÖÇ ï,¥”qÖÖk{… '
{˜êäqÿ/€Ç/, nh\Þ{©G => â?•#ua~•#äqÿ/{˜
Ìú•#Çb4XÌú­céÄÖYøǕ#ÒXÌÁýH
ž˜Ç"½ó{˜äqÿ/3˜*²anacron qÖ{çÕ,ú •ÄX Çl€ â?•#Çäqÿ/3 {{˜Ìú•#ÇO$anacron óZsÒXÌúéÄb4Çäq
ÿ/3 –‹ú­cð)šÇO$anacron …óäqYÇ,ï ¥ ÇÕ
1. *Žanacron qÖ— ”qÖÇ,ï,¥ ÇÇl€šâ*Ž•<Ò
qÖ.úÄÕ*Ž{>åÒÌú+ñu
104
14.
;›éqÖ{6¯
­cð)šäqÿ/— ­cð)šäqÿ/{04ÕKshell +Çl€Eœ×
telinit 3ÃY°{3 4äqÿ/jĘ*•#êõÇqÖ{ZséÄ
ŠÇ?.Áýíٕ#ÇM?&~Y«0
3. ÑX)— X*Žanacron qÖ,1tø:­cZsb*Ž”qÖóø
:'ZsÇäqÿ/ÒÌúð)šXäqanacron qÖ
2.
14.4. ntsysv
ÓäíÙÝ*äqÖ
Øê;\{ŽÁ,1&~ntsysv uéÄ݄xinetd ®{qÖ¤,1&~ntsysv u{˜äqÿ/•Lå€÷˜Ç‹häqÿ/Ìú{˜
{˜X3{äqÿ/Ç&~--level 1u½ÇÝõÇäqÿ/ž˜Ç×ntsysv
--level 345 {˜äqÿ/34Z5
ntsysv {ŽÁZ©ýÜ*{“ãǓ{Ó*0*#5&~ÞF>uކï,&~8ÂE
u ÝR> qÖÇÝ~u•h½ZR>•<óqÖï,Zh½R
>•<¥#¦Ç&~[Tab]E* )ÒìqÖú÷éÄ[F1] EÌfñš1qÖ{;áÃc
ntsysv
´·
„xinetd ®{qÖÌÁýItntsysv {k/ÙÇqÖXÌÁýHŒ&~service daemon stop ×u*Žì1qÖóÁ{¾¥Ç²daemon ¦Ä.*Ž{qÖÖÁǞ˜Çhttpd
²stop ¦Ästart Ýrestart uéÄÝ­céÄìqÖ
14.5. chkconfig
×,1~uíÙZ*äq֘*&~chkconfig --list ×ÇÌt
Çø:qÖï,Ç1ùÇ¢óäqÿ/0 t6 ¥.úéÄÃonÄÝ*ŽÃoffÄóï,âàÇ
Ìt„xinetd ®{qÖ\I
˜*&~chkconfig --list u†®„xinetd ®{qÖÇÌtxinetd qÖ4úé~
ÃonĤ4úÃoffÄꞘÇ×chkconfig --list finger (ÃêïQñÕ
chkconfig
finger
on
˜ÞÄ+Çfinger *xinetd qÖúé~˜*xinetd óäqÇfinger ÒÌúé~
˜*&~chkconfig --list u†®/etc/rc.d ¥{qÖÇÌtqÖóšÇäqÿ/¥{
÷˜ž˜Ç×chkconfig --list anacron (ÃêïQñÕ
anacron
0:off 1:off 2:on
3:on
4:on
5:on
6:off
chkconfig ¤~u÷˜ìqÖó썽{äqÿ/úéĤ4ú*䞘Çóäq
ÿ/345 ¥*änscd qÖÇ&~Á{×Õ
chkconfig --level 345 nscd off
´·
„xinetd ®{qÖÌÁýúchkconfig k/ž˜Ç˜*xinetd óäqÇfinger ú¢~Ç ‰q
êchkconfig finger on ׀Çfinger ÒXCӏ­céÄxinetd uÁýúé~éÙÇqÖ{
•#ó&~chkconfig ƒ€XÌÁýHŒ&~service daemon stop ×u*ŽÇ/qÖó
14.
;›éqÖ{6¯
105
Á{¾¥Ç²daemon ¦Ä.*Ž{qÖÖÁǘhttpd²stop ¦Ästart Ýrestart uéÄÝ
­céĔqÖ
14.6.
ÙÇýî
-ûfå>kïýî
14.6.1.
“ãê{©l
• ntsysv
chkconfigxinetd Zxinetd.conf {€ÒVÃmanÄ
— Ìå6¯;›©GÂ*{€ÒVÃmanÄÃó‘5 9Ä
• man 5 hosts_access
14.6.2.
•
http://www.xinetd.org — xinetd
14.6.3.
•
‹~{5
ÇÝ9Í-û{Õï,Z{˜©G)¾
#V÷
Red Hat Linux k, Red Hat, Inc. — YýC~Ý9ê•TCP ÌwǓZxinetd
˜[ãŽÝáý6¯{-ûfåǘ[&~Ç¢u{˜d6¯{-ûfåÇ1ù
Oiptables 3Û{€Ò
106
14.
;›éqÖ{6¯
15.
OpenSSH
4SSH ÃSecure SHellÄNF{½DÍ"Ç~“\·{dËzÓäS
êtelnetftprloginrsh Zrcp ÓäOpenSSH |ÑSSH NF{Çý1.31.5Z2
,OpenSSH {Çý2.9 1uÇå€{NF4Çý2ǔNFå€&~RSA ØÒ
OpenSSH
15.1.
&~SSHÚ
15.2.
{˜OpenSSH qÖì
&~OpenSSH ÓäR̟{ø:“\uċ&~OpenSSH Óä{/µÇÝi=ÇÑÌú
·telnet Zftp &~©ý=Ç?úÒ©˜YJfå,ÌúRÇ=,Ìú5
ÂÇl€™²GY{|Ê,Ì&~R{=~9Ÿ{ø:é{ø:Ĉ3a”¦
,&~OpenSSH {Óäø\u½YJ“\¯
Ç&~OpenSSH {ÆO4ÇÇIJDISPLAY #ÞÝÉ0’åì¦é›€Ç˜*ó
ýåìÞäqX =ø:Ç?%&~ssh ×~9têÏÇåìÞÇhóÏÇåìމqÇ
‰X {ǓÇÇÌ+ó{ýåìޘ* Cošø:®ÓäÇeXê4*
ü6¯”qÖìÇYÒ̏{Ó*L0"ƒ äqOpenSSH qÖìnjDh½“ãêth{RPM žGÝopenssh-server žG
Ý4X,è{Ç?%Çv•openssh žGÝ{“ã¦d
OpenSSH EŸÇ&~/etc/ssh/sshd_config {˜©GRed Hat Linux 9 “ã{å€{˜©
Góõj<Ya”1˜*.&~–‹úå€{sshd_config ©G
Ø{0*u{˜
EŸÇÇ>ÝÖsshd {€ÒVÃmanÄuÜRêó{˜©G¥½B{Eï,
éÄOpenSSH qÖÇ&~/sbin/service sshd start ×*ŽOpenSSH qÖìÇ&
~/sbin/service sshd stop ט*.tEŸÇóZsÄéÄÇ>kݑ149u
ÜR•˜[®qÖ{få
˜*­c“ãêRed Hat Linux ø:Ç[óÇú­ã&~OpenSSH ÓäËztYÇø:Þ{
0’óÇú­ã€RÌtï>åÕ
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
­ã€{ø:̏Oc{üP)#ØÒÖO$0’ÌtRSA ÌåØҕ#{´·
˜*.â?ø:Ƌ{ÌåØÒÇ÷P/etc/ssh/ssh_host*key* ©GÇl€óø:­ã€Á
…Ç”,ÇÌâø:{üPh0’åó”ø:­ã€ACËzÇÇÇ¢ÒXÌt1Þ{´
·få
15.3.
{˜OpenSSH 0’
,0’åËztOpenSSH qÖìÞnjó0’åìÞã‹openssh-clients Zopenssh
žGÝ
108
15.3.1.
15. OpenSSH
&~ssh ×
×4rloginrsh Ztelnet ×{“\¦ÇãŽóÏÇåìÞ~9?óÙމq×
&~ssh u~9tÏÇåìZ&~telnet #‘~9tÇw)penguin.example.net {ÏÇå
ìÇóshell +EœÁ{×Õ
ssh
ssh penguin.example.net
‘'&~ssh óÏÇåìÞ~9ÇÌtZÁ#5{>åÕ
The authenticity of host ’penguin.example.net’ can’t be established.
DSA key fingerprint is 94:68:3a:3a:bc:f3:9a:9b:01:5d:b3:07:38:e2:11:0c.
Are you sure you want to continue connecting (yes/no)?
Eœyes u™Y̲”qÖìt{.Ìå{ï,¥Ç˜Á{>åÄ+Õ
Warning: Permanently added ’penguin.example.net’ (RSA) to the list of known hosts.
ZÇÌt5®¯ÏÇÌå={
+óQœ=€ÇÒÌóÏÇÌå{shell +
ê˜*–‹½~’ÖÇóý0’åìÞ~9~{~’ÖÒÌú”ÉÏÇåì˜*
.½X3{~’ÖÇ&~Á{×Õ
ssh username@penguin.example.net
¤,1&~ssh -l username penguin.example.net
ssh ×,1~uóÏÇåìÞX²shell +~9‰q×Ç{ªÂ*4Õ ssh hostname command ž˜Ç˜*.óÏÇÌåpenguin.example.net މqls /usr/share/doc ×
Çóshell +EœÁ{×Õ
ssh penguin.example.net ls /usr/share/doc
óQœêth{=ƒ€Ç/usr/share/doc YÇÏÇø9¥{ŽÒÌú+Çl€ÒÌ
ú(Ãt{ýshell +
15.3.2.
&~scp ×
×,1~u/,“\·{Ëzóåì-Q©GǦrcp #‘
²ý©GQÉÏÇø:{Ī4Õ
scp
scp localfile username@tohostname:/newfilename
½Í©GÇusername@tohostname:/newfilename ½ø)©G
²ý©Gshadowman ˜tópenguin.example.net Þ{BRÇóshell +Eœ
òusername ¦Ä{~’ÖÄÕ
localfile
scp shadowman username@penguin.example.net:/home/username
Y̲ý©Gshadowman QÉpenguin.example.net Þ{/home/username/shadowman ©
G
²ÏÇ©GQÉýø:{Ī4Õ
scp username@tohostname:/remotefile /newlocalfile
remotefile
½Í©GÇnewlocalfile ½ø)©G
15. OpenSSH
109
Í © G , 1 „ õ Ç © G Ä ž ˜ Ç ² ø 9/downloads { Ž Q t Ï Ç å
ìpenguin.example.net Þ?{uploads ø9Çóshell +Eœï×Õ
scp /downloads/* username@penguin.example.net:/uploads/
15.3.3.
&~sftp ×
Óä,1~uK'“\Ä{FTP ̛Ǧftp #‘ǐX,ÇÇ&~“\·{
ËzÇ{Ī4Õsftp username@hostname.com`/,èyÇ,1&~Z&
~FTP #‘{×>kÝsftp {€ÒVÃmanÄuÜRYJ×{ï,ÝրÒVÇ
óshell +‰qman sftp ×sftp ÓäóOpenSSH Çý2.5.0p1 1Þb‹
sftp
15.3.4.
ÄØÒé
˜*X.š'&~sshscp Ýsftp ÑQœ=uËzÏÇåìÇ,1ÄéGYØ
Ò
ØҌšÇ~’ďì~’ÄØÒÇ~.ËztÏÇåì{~’üPu$¬Á{Z
½˜*~Ê~’{üPqÄêïZ½ÇҐ‹Ê~’b&~YéØÒ
,OpenSSH Ç ý3.0 ) Ç~/.ssh/authorized_keys2~/.ssh/known_hosts2
Z/etc/ssh_known_hosts2 Ò Ì , SSH N F1 Z2 á
0~/.ssh/authorized_keys~/.ssh/known_hosts Z/etc/ssh/ssh_known_hosts ©
G
Red Hat Linux 9 å€&~SSH NF2 ZRSA ØÒ
" ˜*­ãêRed Hat LinuxÇb4.â‹{ØÒéÇ÷P{Ìø9¥{.ssh ø9­ã€Ç²”
ø9…›ÃÌø9”ŸÇ,ø:Þ{ċ~’ŸqÇÝiÊ~’
Çý2 ÄRSA ØÒé
&~ïZ½uSSH NF{Çý2 ÄRSA ØÒé,OpenSSH 2.9 )ÇÇ.ďå€÷
˜
1. ÄRSA ØÒé¦NF{Çý2 \*Çóshell +Eœï×Õ
ssh-keygen -t rsa
zI~/.ssh/id_rsa {å€ ˜QœÇ¦{AR=X3{=éÇòQœ'u
h€
ÚØúUœ~/.ssh/id_rsa.pub·ØúUœ~/.ssh/id_rsaûX²·Øñ+É[
|
2. &~chmod 755 ~/.ssh ו#{.ssh ø9{Ž,Y!
3. ²~/.ssh/id_rsa.pub {Ž…›t.Ëz{åìÞ{~/.ssh/authorized_keys ©
G¥˜*~/.ssh/authorized_keys X?óÇ,1²~/.ssh/id_rsa.pub ©G…›
t ÇåìÞ{~/.ssh/authorized_keys ©G¥
4. ˜*äq{4GNOMEÇ!t‘15.3.4.4 ˜*–óäqX =ø:Ç!t‘15.3.4.5

15.3.4.1.
110
15. OpenSSH
Çý2 ÄDSA ØÒé
&~Á{Z½uSSH NF{Çý2 ÄDSA ØÒé
1. Ä~•NF{Çý2 {DSA ØÒéÇóshell +EœÁ{×Õ
ssh-keygen -t dsa
zI~/.ssh/id_dsa {å€ ˜QœÇ¦{AR=X3{=éÇòQœ'u
h€
15.3.4.2.
" =é4~uèy~’{#ÎZn=éZÄ={X3ƒÿó•Õó=é¥,1&
~8Âݛ,n=é/žÄ=ŸÇOÇ¢/ž&~áªX~Ç#
ÚØúUœ~/.ssh/id_dsa.pub·ØúUœ~/.ssh/id_dsaûX²·Øñ+É[
|ÇYši­
2. &~chmod 755 ~/.ssh ו#{.ssh ø9{Ž,Y!
3. ²~/.ssh/id_dsa.pub {Ž…›t.Ëz{åì¥{~/.ssh/authorized_keys ©
G¥˜*©G~/.ssh/authorized_keys X?óÇ,1²~/.ssh/id_dsa.pub ©G
…›t ÇåìÞ{~/.ssh/authorized_keys©G¥
4. ˜*äq{4GNOMEÇ!t‘15.3.4.4 ˜*–óäqX =ø:Ç!t‘15.3.4.5

Çý1.3 Z1.5 ÄDSA ØÒé
&~Á{Z½uÄ~•SSH NFÇý1 {RSA ØÒé˜*ó&~DSA {ø:-ËzÇ
X‰RSA Çý1.3 ÝRSA Çý1.5 ØÒé
1. ÄRSA ÃÇý1.3 Z1.5 NFÄØÒéÇóshell +Eœï×Õ
ssh-keygen -t rsa1
zIå€{ ˜Ã~/.ssh/identityÄQœZ{AR=X3{=éòQœ'
uh€
ÚØúUœ~/.ssh/identity.pub·ØúUœ~/.ssh/identityX²{·Øñ
+É[|
2. &~chmod 755 ~/.ssh Zchmod 644 ~/.ssh/identity.pub ו#{.ssh ø9
Z·Ø{Ž,Y!
3. ²~/.ssh/identity.pub {Ž…›t.Ëz{åì¥{~/.ssh/authorized_keys
©G¥˜*©G~/.ssh/authorized_keys X?óÇ,1²~/.ssh/identity.pub
©G…›tÏÇåìÞ{~/.ssh/authorized_keys ©G¥
4. ˜*äq{4GNOMEÇ!t‘15.3.4.4 ˜*–óäqGNOMEÇ!t‘15.3.4.5

15.3.4.3.
óGNOME ¥{˜ssh-agent
ssh-agent Óä,1~uâ?{=éÇO$Xóš'Zssh Ýscp ËzÑQœ=
˜*ó&~GNOMEÇopenssh-askpass-gnome Óä,1~uó~9tGNOME +Qœ=éÇ?²Ç†ât,GNOME ¥Õ=ƒXý'GNOME ̛¥
[ssh Ýscp ËzQœ=Ý=é˜*XK®&~GNOMEÇ>kݑ15.3.4.5 
óGNOME ̛¥â?=éÇ$¬ïZ½Õ
15.3.4.4.
15. OpenSSH
111
‰“ãopenssh-askpass-gnome žGÝÖ,1&~rpm -q openssh-askpassgnome ×ug½”žGÝ4d.ú“ã˜*ǖ‹ú“ãÇ,{Red Hat Linux c
ø\Red Hat FTP º45šÝ&~Red Hat du“ãÇ
2. šâÌh\ÃóÁÆÞÄ=> D 1 => ÍõD 1 => ̛l€š
âéÄǓ)üšâÇóéÄשýãQœ/usr/bin/sshadd²Ç{€ÿ÷[?×Ñ°{j1hâÇ!€b‰qssh-add {€
ÿj!P470 ÝÍ°€ÿjְǀÿք˜*ïñêÙÇǓǔǓ{
€ÿa”!„šâuRñ”Ç“
3. Õ=€ò~9ŸGNOME֦雀ǭcéÄX qÖìóGNOME éĀÇÇ
+Qœ=é{é›UÒÌñQœF{=é˜*²DSA ZRSA ÜVÑ{˜
êÇÌú
+ÜVÑQœ,óåÇÒXÌússhscp Ýsftp +Qœ=ê
1.
{˜ssh-agent
,1~uû?{=éÇO$óš'&~ssh Ýscp ËzÒX4QœÇ
˜*XóäqX =ø:Çóshell +¥$¬YJZ½˜*óäqGNOMEÇb4X.
{˜Çuó~9
+Qœ=Ãkݑ15.3.4.4 ÄÇYÇ,Ç,1ó¡‘xterm {ªà
=¥Ÿq˜*óäqX eX4GNOMEÇYÇ,Ç,1óªà¥Ÿq,4Ç{=ó
”ªà=¥úÔÇÇX4\Û÷˜
1. óshell +ÇEœÁ{×Õ
exec /usr/bin/ssh-agent $SHELL
2. l€ÇEœÁ{×Õ
ssh-add
zøÇQœ{=˜*{˜êXŽÇØÒéÇÌú
+QœšÇ=
3. hÕ=€Ç=éÒÌúƒŒóš'~9tŠ;›ÑÝKªà=щq
YÜ×
15.3.4.5.
ssh-agent
15.4.
ÙÇýî
Z
ÓÇÿ•X䏥ÇO$•Ç¢{!cfå/ž •Ç¢{05
Óä{€ÒVÃmanÄ4ÇÜR-ûfå{P0
OpenSSH OpenSSL
OpenSSH OpenSSL
¥
15.4.1.
Z
“ãê{©l
scpsftpsshd Zssh-keygen {€ÒVÃmanÄ— •Ç¢{€ÒVÝi˜[
&~YJ×{fåÇ1ùċ¦Ç¢å&~{kj
• ssh
15.4.2.
•
•
•
‹~{5
FØ緅Gï,ÓǑ1ù•“
http://www.openssl.org — OpenSSL FAQ …Gï,1ùé•ÓǑ{Ãc
http://www.freessh.org — ~•ÙDzÑ{SSH 0’žG
http://www.openssh.com — OpenSSH FAQ
\Õ{Íbu{‰:
112
15. OpenSSH
16.
d©Gø:ÃNFSÄ
d©Gø:ÃNFSÄ4«ódÞ{åì-á0©G{0Ç©GҘ3 •0’{ýmc
PÄìÞøRed Hat Linux ,14NFS qÖì,14NFS 0’ÇY?›øÇ,1²©Gø
:sñÉÙÇø:Ç,1ñ,ÙÇåìÞsœ{©Gø:
16.1.
&~NFSÚ
16.2.
ñNFS ©Gø:
NFS é•ó3dÞ{õÇ~’-á0ø9i‹~Ež˜Ç—Å•3ÓÇ1ø{~’
,1/,&~NFS ©Gø:Ã/žúÁ*NFS á0Ä¥{Çñ/myproject {á0ø9u
?R”ÓÇ1ø{©G?Rá0{©GÇ~’ŸœÈåìÞ{/myproject ø9Y«0
X~Qœ=‘X~AO×ÇÒ5c”ø9 •~’{ýåìÞø
&~mount ×uñÇåìÞ{NFS ©Gø:Õ
mount shadowman.example.com:/misc/export /misc/local
´·
ýåìÞ{ñšø9Ã1Þ¾¥{/mnt/localČ?ó
óY1×¥Çshadowman.example.com 4NFS ©GqÖì{ÌåÖÖ/misc/export
4shadowman sñ{©Gø:Ö/misc/local 4”©Gø:óýåìÞ{ñ ˜mount
×äqƒ€Ã%˜*0’ä‹ushadowman.example.com NFS qÖì{thY!
{ › Ä Ç 0 ’ ~ ’ , 1 ‰ qls /misc/local × u +shadowman.example.com Þ
{/misc/export ø9¥{©Gï,
16.2.1.
&~/etc/fstab uñNFS ©Gø:
ñÙÇåìÞ{NFS á0{«04ó/etc/fstab ©G¥qYq¥Œ
ÒNFS qÖì{ÌåÖÇsñ{ø9Ç1ùñNFS á0{ýåìø9Œ4Ê~’
b•/etc/fstab ©G
/etc/fstab ¥šq{Ī˜Ä+Õ
server:/usr/local/pub /pub nfs rsize=8192,wsize=8192,timeo=14,intr
ñš/pub ó0’åìތ?óó0’ø:{/etc/fstab ©G¥²Yqq€Ç
óshell +Eœ×mount /pubÇ1ùRÌ,qÖì¥ñ{ñš/pub
16.2.2.
&~autofs uñNFS ©Gø:
ñNFS á0{‘®«04&~autofsautofs &~automount EŸÇu®{ñšÇÇ
ó©Gø:ú6¯bÄՏñÇ¢
114
16.
d©Gø:ÃNFSÄ
ü®Ìnó{˜©G/etc/auto.master uû½½BýJñšl€ÇÇ&~7~•
ÈÇñš{kjuéÄautomount ŸÇÌnó{˜¥{šqѽBÇñšÇÇI{
nó©G½Bó”ñšñ{©Gø:ž˜Ç/etc/auto.misc ©G,̽B/misc
ø9¥{ñšÖY«øó/etc/auto.master ©G¥Ìú½B
auto.master ©G¥{šÇ1øы®Çã‘Çã4ñš‘Çã4nó©G{
˜Ç‘®Çã, ‘®Çã,1Ýi§jŠƒ¡{få
ž˜Çó{åìÞ{/misc/myproject ñšÞñÏÇåìpenguin.example.net Þ
{/project52 ø9Çóauto.master ©G¥1qÕ
autofs
/misc /etc/auto.misc --timeout 60
ó/etc/auto.misc ©G¥1qÕ
myproject -rw,soft,intr,rsize=8192,wsize=8192 penguin.example.net:/proj52
¥{‘Çã4/misc ø9{ÖÁ”ø9úautomount ÄՏOÇ
Xa”ó0’åìÞ"?ó‘ÇãÝiñ 1ǘÕrw S,ÖU6¯Y‘®Çã
4sñ{NFS { ˜ÇÝiÌåÖZø9
/etc/auto.misc
Õ
ø9/misc óý©Gø:¥Œ?óóý©Gø:{/misc ø9¥Xa”‹ø9
autofs
4«qÖéÄY1qÖÇóshell +ÇEœ1×Õ
/sbin/service autofs restart
†Ù×{ñšÇóshell +Eœ1×Õ
/sbin/service autofs status
˜*óautofs äq•ê/etc/auto.master {˜©Gnjóshell +Eœ1×
u/automount EŸÇ­cñœ{˜©GÕ
/sbin/service autofs reload
¥.ꉘ[{˜autofs 1"óZséÄÇ>kݑ149 ¥•®qÖ{få
16.3.
sñNFS ©Gø:
,NFS qÖì¥á0©G‘Ásñø9NFS qÖì{˜Óä,1~u²ø:{˜ÄNFS qÖ
ì
&~NFS qÖì{˜ÓänjäqX =ø:Çä÷ÊYÇ?%“ãêredhatconfig-nfs RPM žGÝéÄYÇǓǚâÁÆÞ{Ìh\ => ø:÷˜ =>
qÖì÷˜ => NFS qÖìÇÝEœredhat-config-nfs ×
16.
d©Gø:ÃNFSÄ
115
C16-1. NFS qÖì{˜Óä
NFS á0ǚâ•<˜C16-2Ä+{é›UÌñ
äýÙ)üF1fåÕ
• ø9 — ½á0{ø9ǘ/tmp
• Ìå — ½á0ø9{Ìå>kݑ16.3.2 uÜRéÂ*{‰:
• äýY! — ½ø9a”‹ÖY!¤4ÖUY!
C16-2. á0
ž 1Ù)üãŽ{˜1 1Õ
• ãŽu°•1024 {à={Ëz — óRhB•1024 {à=ÞéÄ{q֌1Ê~’ü
PéÄ YÇ 1uãŽÊ~’1i{~’uéÄNFS q֔ 1Zinsecure #éa
• ãŽX“\{©Gý — X‰Ã½>F” 1Zinsecure_locks #éa
116
•
•
16.
d©Gø:ÃNFSÄ
¢~d5† — ˜*ì©Gø:{ø9úsñÇb4rÇ©Gø:–‹úsñÇqÖì
Ì5†Ä>F{©G4dósñ{ø9¥Y«5†w)d5†Ãsubtree checkingÄ YÇ 1u¢~d5†˜*rÇ©Gø:úsñÇ ¢~d5†,1
°QG”
1Zno_subtree_check #éa
•F3ZUv* — å€úé~ǔ 1XãŽqÖìó>FúUœcÅYJ>
F” 1Zsync #éa˜*ǖ‹ú Çasync 1Ìú&~
Áý›3ZUv* — XMÔUœc{v*” 1Zno_wdelay #éa
•
~’6¯Ù)üãŽ{˜1 1Õ
• ²ÏÇÊ~’h*ýÊ~’ — •Lå€÷˜ÇÊ~’{~’ID ZkID Ñ40ÊY!
¸ÀÃRoot squashingIJ~’ID 0 ZkID 0 nóÖ{~’ZkIDÇO$0’Þ{Ê~
’ÒXÌóNFS qÖìÞä÷ÊY˜*YÇ 1ú ÇÊ~’ÒXÌúnóÖ~’Ç
0’Þ{Ê~’ÒÌésñ{ø9p‹ÊY YÇ 1ÌLL\„ø:{“\uø:ý
éÇ>X ǔ 1Zno_root_squash #éa
• ²Ä‹0’~’h*Ö~’ — ˜*” 1ú Çċ~’ZkID ÑÌúnóÖ~
’” 1Zall_squash #éa
Ö~’½ý~’ID — ˜*²Ä‹0’~’h*Ö~’ú ÇYÇ 1Ì
tÖ~’½Ç~’ID” 1Zcorresponds to anonuid #éa
Ö~’½ýkID — ˜*²Ä‹0’~’h*Ö~’ú ÇYÇ 1Ì
tÖ~’½ÇkID” 1Zcorresponds to anongid #éa
•
•
öNFS á0Ç,ï,¥ ÇÇl€šâau•<ÍøìÇ?NFS á0Ç,ï,
¥ ÇÇl€šâÍø•<
šâêh½u,ï,¥öÝÍøìÇNFS á0€Ç•#ÒÌÁýH— q
ÖìEŸÇú­céÄÇƋ{{˜©Gúâ?/etc/exports.bakc{{˜©GúU
œ/etc/exports
NFS qÖì{˜Óä†zÖU/etc/exports {˜©GO$ÇYÇ©Gó&~”Óä€,1ú
CÓ•ÖCӕꔩG€,1&~YÇÓäÃ"½CÓ•&~êth{ªÄ
16.3.1.
×q{˜
˜*Íõ¡&~©ýöìuö{˜©GÝV–‹“ãX =ø:Ç,1†z•{˜©
G
/etc/exports ©G;›NFS qÖìsñýJø9Ç{Â*˜Õ
directory hostname(options)
‰½{ 14sync Zasync ƒÃOF&~sync is recommendedĘ*½
êsyncÇqÖìó>FÄ){•#úUœcƒÒXÌÅYJ>F
¾˜Õ
/misc/export
speedy.example.com(sync)
ÌãŽuspeedy.example.com {~’&~å€{ÖY!uñ/misc/exportÇb4Õ
/misc/export
speedy.example.com(rw,sync)
RÌãŽuspeedy.example.com {~’&~ÖUY!uñ/misc/export
>kݑ16.3.2 uÜR•ÌåÖÂ*{‰:
16.
d©Gø:ÃNFSÄ
117
>kÝRed Hat Linux kuÜR,1ú½{ 1{ï,
Be
>žÿ®/etc/exports ©G¥{8˜*ÌåÖZiR{ 1ƒ-–‹8ÂÇYJ 1Ґa~
•YÇÌå֘*óÌåÖZ 1ƒ-‹8ÂÇYJ 1Ò4\Ûa~{¾˜Ç>û†1qÕ
/misc/export speedy.example.com(rw,sync)
/misc/export speedy.example.com (rw,sync)
‘ q É u speedy.example.com { ~ ’ 1 Ö U Y ! ? á ý Ä ‹ Ù Æ ~ ’ ‘ q É u
speedy.example.com {~’1ÖY!Ãå€÷˜ÄÇ?ɣċÙÆ~’1ÖUY!
óš'•#/etc/exports {nj²•#/ÉNFS EŸÇÇÝ&~1×u­
cñœ{˜©GÕ
/sbin/service nfs reload
16.3.2.
ÌåÖÂ*
16.3.3.
éÄZ*ŽqÖì
Ìå,1&~1Â*Õ
• \Çåì— Ç\!½­ÖÃêúqÖì‰Û{ÄÇÌåÖÃêúqÖì‰Û{ÄÇÝIP
Œ
• &~/{n½{øïåì— &~*Ý?nu½nš{/{nXú
~óIP Œ¥Ö˜*5DNS †¯½êÇ/{n,ÌHhó\!½­Ö
¥½/{nǚÃ.ÄXÝió/{n{š{1ø¾˜Õ*.example.com Ý
ione.example.comÇbXÝione.two.example.com.
• IP  d— & ~a.b.c.d/zÇ Y ° {a.b.c.d 4  d Çz 4  Ù h ¥ { j
Ø192.168.0.0/24Ä«,1zI{Â*4a.b.c.d/netmaskÇY°{a.b.c.d 4
dÇnetmask 4ÙhØ192.168.100.8/255.255.255.0Ä
• Netgroups — Â*@group-nameÇY°{group-name 4NIS netgroup {ÖÁ
ósñNFS ©Gø:{qÖìÞÇnfs q֌óäq
&~1×u†NFS EŸÇ{çÕÕ
/sbin/service nfs status
&~1×uéÄNFS EŸÇÕ
/sbin/service nfs start
&~1×u*ŽNFS EŸÇÕ
/sbin/service nfs stop
óZséÄnfs qÖÇ&~1×Õ
/sbin/chkconfig --level 345 nfs on
118
16.
d©Gø:ÃNFSÄ
¤,1&~chkconfigntsysv ÝqÖ{˜Óäu{˜óZséÄýJqÖ-<>k
ݑ149
16.4.
ÙÇýî
ý9ÿXê&~NFS {äý#ÜzÍ-¦{fåÇ>kÝïýî
16.4.1.
“ãê{©l
mountdexportsauto.masterZautofsÃó€ÒV{‘5 Z‘8 Ä{€ÒV
ÃmanÄ— YJ€ÒV5€ÒêNFS Zautofs {˜©G{thª
• nfsd
16.4.2.
•
http://www.tldp.org/HOWTO/NFS-HOWTO/index.html —
NFS-HOWTO
16.4.3.
•
‹~{5
u Linux © l ™ {Linux
#V÷
Ç*VÕHal SternÖO’Reilly & Associates, Inc.
Managing NFS and NIS Services
17.
Samba
&~SMB NF/,dËzuá0©GZK\å. |єNF{v*ø:ÝiMicrosoft
Ã/,Ç{Network NeighborhoodÄOS/2ZLinux
Samba
Windows
17.1.
&~SambaÚ
17.2.
{˜Samba qÖì
˜*{d¥‹Windows å쑋Linux åìÇSamba Ò̾*~Samba Ì㎩G
ZK\åú{d¥{ċø:á0˜*K®óRed Hat Linux åì-á0©GÇ>k
ݑ169˜*K®óRed Hat Linux åì-á0K\åÇ>kݑ279
å€{{˜©GÃ/etc/samba/smb.confÄãŽ~’*Samba á0u†Æ¢{Red Hat
Linux Ìø9Ǥ²Red Hat Linux {˜{K\å*Samba á0K\åuá0¦é
›€Ç,1ó{Red Hat Linux ø:ÞËzK\åÇl€,dÞ{Windows åìuK\
17.2.1.
Coš{˜
&~CošŽÁu{˜SambaÇ&~Samba qÖì{˜Óä&~×qu{˜Ç>!
t‘17.2.2 
Samba qÖì{˜Óä4~u®Samba á0~’1ùäýqÖì÷˜{CošŽÁÇ
•/etc/samba/ ø9¥{{˜©G–‹&~”Ç“Ÿq{•#ÑÌúâ
&~”Ç“ÇŒóäqX =ø:Çä÷ÊYÇ?%“ãêredhat-config-samba
RPM žGÝ,óÁéÄSamba qÖì{˜ÓäǚâÁÆÞ{Ìh\ => ø:÷˜
=> qÖì÷˜ => Samba qÖìÇÝóshell +ØXTerm ÝGNOME ªàÄE
œredhat-config-samba ×
C17-1. Samba qÖì{˜Óä
Õ
qÖì{˜ÓäX+ãŽ~’óSamba qÖìކƢ{Ìø9{á0K\åÝ倩
Gã
Samba
120
17. Samba
{˜qÖì÷˜
{˜Samba qÖì{‘Z4{˜qÖì{äý÷˜ZǓ\ 1éÄêa~Ǔ€Ç D 1 => qÖì÷˜äýÙ)ü˜C17-2Ä+
17.2.1.1.
C17-2. {˜äýqÖì÷˜
óäý)üÞǍ½®åaó{Ó*1ùé®å{;áÃcÇ¢¦smb.conf ¥
{workgroup Zserver string 1#éa
C17-3. {˜“\qÖì÷˜
“\)üÝ91 1Õ
• èyÜ* — ÇZsecurity 1#éa 1èyÜ*¥{«
­ — Samba qÖìv•Windows NT ÌÝ÷P­;›ìuDè~’qÖì²~’
ÖZ=”É;›ìÇl€VÇ¢ú(ÃóèyqÖì㥍½ÌÝ÷P­
;›ì{NetBIOS ÖÁ
·= 1˜*ú Çnjú÷˜4
qÖì — Samba qÖìAC/,²~’ÖZ=\”ÉÇSamba qÖìuDè
Ç¢˜*ÇÃDèÇqÖìÌAC&~~’èyÜ*uDèÇ¢óèyqÖì
㥍½ÇSamba qÖì{NetBIOS ÖÁ
á0 — Samba ~’XšÇSamba qÖìÑQœ~’ÖZ=\Ç¢óACË
zSamba qÖìÞ{½á0bÌú
+Qœ~’ÖZ=
~’ — Ãå€ÄSamba ~’ŒšÇSamba qÖì
ØNjH{~’ÖZ=˜
*.tWindows ~’Ö 1HÇ YÇ 1-<>kݑ17.2.1.2 
•
•
•
•
17. Samba
121
·= — Ã倊4Ę*~’,Windows 98Q‹qÖÝ{Windows NT 4.0
ÝÙÇ!£Çý{Microsoft Windows ¥Ëzǔ 1Œúé~=óqÖìZ0’-&~
·Â*:,úR{©ýÂ*QÇZencrypted passwords 1#éa•
·Samba ={-<Ç>kݑ17.2.3 
• u5BR — h~’Ýu5~’~9œSamba qÖìÇÆ¢ŒúnótqÖìÞ{‹
H~’ ø:Þ{?~’Öƒ*u5Samba BRh~’&~u5BR~9œSamba
qÖìÇÆ¢p‹ZYÇ~’#3{Y” 1Zguest account 1#éa
šâêh½€ÇÄ)•#ÌúUœ{˜©GÇEŸÇÌú­céÄÖO$•#ÌÁýH
•
®Samba ~’
Samba qÖì{˜ÓäFóSamba ~’ƒÇóßhSamba qÖì{Red Hat Linux ø:
ތ?óÇÙ×{?~’BRSamba ~’ZYÇ?{Red Hat Linux ~’BR#É
17.2.1.2.
C17-4. ®Samba ~’
Samba ~’Ç D 1 => Samba ~’Çl€šâ~’•<ó
OcSamba ~’=¥{ýø:Þ{?~’ï,¥ Unix ~’Ö
˜*~’óWindows åìދÇX3{~’ÖÇ?R,Windows åìÞ~9œSamba qÖìÇ
>óWindows ~’Ö㥍½Windows ~’ÖqÖì÷˜D 1{“\ÙÞ
{èyÜ* Œú÷˜~’b4YÇ 1H
¤‰Samba ~’{˜ÇSamba =Ç?òEœ'uh€YÇ=ý" ê
Samba &~·=DžOFÄ‹~’÷˜{Samba =X3•Æ¢{Red Hat Linux ø:
=
öìÇ?~’Ç,ï,¥ ÇÇl€šâö~’ÍøìÇ?{Samba ~
’Ç YÇ~’Çl€šâÍø~’•<ÍøSamba ~’XÌÍø#{Red Hat Linux
~’BR
šâêh½•<€Ç~’ÒÌúÁý•
122
17. Samba
17.2.1.3.
á0
C17-5. á0
á0ǚâ•<äýÙ)ü{˜1 1Õ
• ø9 — /,Samba á0{ø9YÇø9Œ?ó
• Ãc — éá0{;áÃc
• äýY! — ~’a”êÖRá0ø9¥{©G¤4a”êÖUá0ø9¥{©G
ó6¯Ù)üÞÇ 4dãŽ½{~’u6¯á0¤4ãŽÄ‹Samba ~’u6
¯á0˜* ê㎍½~’6¯Ç,,~{Samba ~’ï,¥ YJ~’
šâêh½•<€Çá0ÒÌÁýú
17.2.2.
×q{˜
&~/etc/samba/smb.conf *Ç{{˜©G˜*•#êYÇ{˜©GÇYǕ#
†t&~service smb restart ×­éSamba EŸÇ€bÌH
½Windows Ó*ZéÇ{;áÃcÇösmb.conf ©G¥{1qÕ
Samba
workgroup = WORKGROUPNAME
server string = BRIEF COMMENT ABOUT SERVER
²WORKGROUPNAME ¦Ä{åìÄa{Windows Ó*ÖBRIEF COMMENT ABOUT
SERVER 4, {ÇÇú~*•Samba ø:{Windows Õ:
ó{Linux ø:ÞOSamba á0ø9Çósmb.conf ©G¥1qÃÊâZ{ø
:‰•ê”©Gƒ€ÄÕ
[sharename]
comment = Insert a comment here
path = /home/share/
valid users = tfox carole
public = no
writable = yes
printable = no
create mask = 0765
ÞÁ{¾ãŽ~’tfox Zcarole ,Samba 0’¥ÖUSamba qÖìÞ{ø9/home/share
17. Samba
17.2.3.
123
·=
óRed Hat Linux 9 ¥Ç·=úå€é~ÇOÇ͓\˜*·=–‹ú&~Ç©ý
=ÒÌú&~ÇÇêú/|&~dI‚æìuROF&~·=
Microsoft SMB NF!ð&~©ý=lÇQ‹qÖÝ3 ÝÍ°{Windows NT
4.0Windows 98Windows 2000Windows ME1ùWindows XP F·{Samba =
óRed Hat Linux ø:Zäq1ÞWindows v*ø:{ø:-&~SambaÇ,1öWindows Õ
~ìu&~©ý=,{˜{Linux ø:{Samba u&~·=˜* •{Õ
~ìnj{\\Windows åìY)— Yi‹Ç‹,s—ŸZ{àBêÍ°
{“\uÇM?&~·=
ó{Red Hat Linux ø:Þ{˜Samba &~·=Ç$¬1Z½Õ
1. Samba OÇ\Õ{=©GÊâ{?/etc/passwd ©GuOÇóshell +Eœ1×Õ
cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
˜*ø:&~NISÇEœ1×Õ
ypcat passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
mksmbpasswd.sh lýZsamba žGÝåú“ãó{/usr/bin ø9Þ
2. •#Samba =©G{Y!Ž,ÇO$‹Ê~’b‹ÖUY!Õ
chmod 600 /etc/samba/smbpasswd
3. YÇlýX̲~’=…›tc©GÇSamba ~’BRó–‹÷˜=ƒXÌúíÙ
êÍ°{“\uÇOF²~’{Samba =÷˜X3•~’{Red Hat Linux ={
=÷˜šÇSamba ~’{=Ç&~1×òusername ¦šÇ~’{~’
ÖÄÕ
smbpasswd username
4. ·=ŒóSamba {˜©G¥úé~ósmb.conf ©G¥Ç>h½1q–‹úÕ:
«Õ
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
5.
6.
óshell +Eœservice smb restart uh½smb qÖúéÄ
˜*.tsmb qÖúÄéÄÇ&~ntsysvchkconfigÝqÖ{˜Óäuóäqé~Ç-<>kݑ149
" ÝÖ/usr/share/doc/samba-<version>/docs/htmldocs/ENCRYPTION.html uŸZꉋ
·={fåò<version> ¦“ãê{Samba ÇýRhÄ
h&~êpasswd ׀Çpam_smbpass PAM ÜLêú~u3Z~’{Samba =ZÆ¢{
ø:=˜*~’é~êpasswd ×ÇÆ~u~9tRed Hat Linux ø:{=1ùÆË
zSamba á0Č
Ø{=ÒÌú•#
éÄYÇÕDz1qt/etc/pam.d/system-auth {éÄpam_cracklib.so ƒÕ
password required /lib/security/pam_smbpass.so nullok use_authtok try_first_pass
124
17. Samba
17.2.4.
éÄZ*ŽqÖì
ó/,Samba á0ø9{qÖìތäqsmb qÖ
&~1×u†Samba EŸÇ{çÕÕ
/sbin/service smb status
&~1×uéÄEŸÇÕ
/sbin/service smb start
&~1×u*ŽEŸÇÕ
/sbin/service smb stop
óZséÄsmb qÖÇ&~1×Õ
/sbin/chkconfig --level 345 smb on
¤,1&~chkconfigntsysv ÝqÖ{˜Óäu{˜óZséÄ{qÖ-<>k
ݑ149
17.3.
ËzSamba á0
,Microsoft Windows åìÞËzLinux Samba á0Ç&~Network Neighborhood ÝCoš©
G®ì
,Linux ø:¥ËzSamba á0Ç,shell +ÇEœ1×Õ
smbclient //hostname/sharename -U username
²hostname ¦.Ëz{Samba qÖì{ÌåÖÝIP ŒÇ²sharename ¦.¨
{á0ø9{ÖÁDzusername ¦Äø:{Samba ~’ÖQœth{=ݕ[Enter] E
Ã¥XF”~’{=Ä
˜*têsmb:\> +ÇÒ.ÄՏ~9ê~9€ÇEœhelp uÜzÇ×ï,˜
*.¨{Ìø9{ŽÇ²sharename ¦Ä{~’Ö˜*š‹&~-U 1Çh
~’{~’ÖÒÌú”ÉSamba
RñsmbclientÇósmb:\> +Eœexit
¤,1&~Nautilus u†{dÞ{,~Samba á0 ÁÆÞ{Ìh\ => 
dqÖìu†{dÞ{Samba Ó*{ï,¤,1óNautilus { ˜Õy°E
œsmb: u†Ó*
˜C17-6Ä+ÇódޚÇ,~SMB Ó*kÑÌñÇC)
17. Samba
125
C17-6. Nautilus ¥{SMB Ó*
vâÓ*C)ƒu†ýÇÓ*{®å{ï,
C17-7. Nautilus ¥{SMB åì
˜óC17-7¥ÄDÇÓ*šÇåìыÇC)vâìÇC)u†”åìÞ{Samba á
0˜*‰~’ÖZ=\ÇÌú
+QœÇ¢
, 1 ó ˜ Õ y & ~ 1 ª à ²userpasswordservername
Zsharename ¦Ä#aŠÄu½~’ÖZ={\Õ
smb://user:password@servername/sharename/
17.4.
ÙÇýî
é•Y°–‹õùt{{˜ 1Ç>kÝ1ýî
126
17.4.1.
17. Samba
“ãê{©l
{€ÒVÃmanÄ— ‰:”˜[{˜Samba {˜©G
{€ÒVÃmanÄ—ÃcSamba EŸÇ{Ó*Æ®
/usr/share/doc/samba-<version-number>/docs/ — Ýiósamba žGÝ¥{HTML
Z©ýÐÏ©G
• smb.conf
• smbd
•
17.4.2.
•
‹~{5
http://www.samba.org — Samba
l
ÇÝ9Žõ•…Gï,ZGUI ŽÁï,få{‹~©
18.
ÄÕÌå{˜NFÃDHCPÄ
ÄÕÌå{˜NFÃDHCPÄ4~uÄÉ0’åìI{TCP/IP få{dNFšÇDHCP 0
’ÑËzt¥ê ˜{DHCP qÖìǔqÖìÌ(ÃÝiIP ŒZDNS qÖìfå{0
’d{˜
18.1.
&~DHCP
óO¤˜0’d{˜0Ái‹~œh{˜0’ø:Ç®Ê,1 DHCPÇ?X
QœIP ŒÙhÝDNS qÖì0’,DHCP qÖì¥5ÂYJfåDHCP
ó®Ê.•#LÞø:{IP ŒL‹~E¦Ù­c{˜Ä‹ø:Ǯʐ‰öqÖ
ìÞ{ÇDHCP {˜©Gý,ÜzcIP Œø\˜*ìåè{DNS qÖì•#êÇY«•#
‰óDHCP qÖìÞXóDHCP 0’ÞŸq`0’{dú­céÄÃÝ0’­cZ
sø:ÄǕ#ÒÌH
ø$ƒiǘ*"PžÝ[¡n{,#®åú{˜&~DHCPǐšÇÍÚ?ыÇã
ŽÇÉ{DHCP qÖìÇÇÒ,1X­c{˜óÍÚ?-„#Ä
DHCP
18.2.
{˜DHCP qÖì
,1&~{˜©G/etc/dhcpd.conf u{˜DHCP qÖì
DHCP ¤&~/var/lib/dhcp/dhcpd.leases ©GuÑ?0’ÏjâE-<>kݑ18.2.2

18.2.1.
{˜©G
{˜DHCP qÖì{‘Z4OÑ?0’dfå{{˜©G\Û 1,1Ä‹0’ÒÇ
, 1,1šÇ0’ø:Ò
”{˜©G,1&~[Ž{›,nÝ8quŸq;\Â*šE4KILBU{ÇåD
³RÃ#Ä{q4Õ:
ø"êÜ«DNS Íc0™— ODNS ÍcÜ*Z,ÞuDHCP-DNS ÄzCÍcÜ*
˜*YÜ«Ü*úzIIETF )ïŸÇ{\IÇÒÌñ‘®ÇÜ*— )ïDNS Íc0
DHCP qÖìŒ{˜&~YÜ«h0™¥{«Çý3.0b2pl11 1ùÍ {Çý&~
OÜ*ÖX,ÇY«Ü*.²,˜*.â#3{q0*Çó{˜©G{>1
qÕ
ddns-update-style ad-hoc;
&~M?{Ü*Çó{˜©G{>1qÕ
ddns-update-style interim;
>ÝÖdhcpd.conf {€ÒVÃmanÄuÜz‹X3Ü*{û
{˜©G¥‹Ü¡½cÕ
• kj— ,Ҙ[‰qÖÇ4d‰qÖÇÝRýJd{˜ 1˜É0’
• Ò— Ãcd{YÛÖÃc0’Ö
Ø0’{ŒÖݲkja~tÒ¥
128
18.
ÄÕÌå{˜NFÃDHCPÄ
ìJkjŒ1option E>ÇÇ¢úÁ 1 1{˜DHCP {, 1Ökj{
˜{4 {Ý;›DHCP qÖìq{Š
ó&~LiRÃ{ }Ä{\IƒÒ{kjÃÝi 1Ä/žúh)\Ûkj\Ûkja~ •Ù{ċ\I
­
˜*•#ê{˜©GÇYJ•#ó&~service dhcpd restart ×u­céÄDHCP EŸÇƒ
€bÌH
ó¾18-1¥
Çrouterssubnet-mask domain-namedomain-name-servers
Ztime-offset 1ú~•Ä‹óÇ¢ÁÒ{host Ò¥
˜¾18-1Ä+Ç,1ÒsubnetŒ{d¥{šÇÝiÇsubnet ÒÇd
ÇDHCP qÖì,ÃéÄ
óYǾ¥Ç¥{šÇDHCP 0’ÑQ‹\Û 1Ç?%Òêrange0’úI{
Érange ƒ{IP Œ
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers
192.168.1.254;
option subnet-mask
255.255.255.0;
option domain-name
"example.com";
option domain-name-servers
192.168.1.1;
option time-offset
-18000;
# Eastern Standard Time
range 192.168.1.10 192.168.1.100;
}
¾18-1. Ò
ċá03Ô®d{a”óshared-network ҃Òǘ¾18-2Ä+
óshared-network ƒ Ç b ó ú Ý Œ å u {subnet Ò ƒ i { k j ú h ) \ Û k
jshared-network {ÖÁa”4éd‹Ãcu{)Ǿ˜Ç&~test-lab uÃcċÿ•
"è?Ãtest labÄ¢¸¥{
shared-network name {
option domain-name
"test.redhat.com";
option domain-name-servers
ns1.redhat.com, ns2.redhat.com;
option routers
192.168.1.254;
more parameters for EXAMPLE shared-network
subnet 192.168.1.0 netmask 255.255.255.0 {
parameters for subnet
range 192.168.1.1 192.168.1.31;
}
subnet 192.168.1.32 netmask 255.255.255.0 {
parameters for subnet
range 192.168.1.33 192.168.1.63;
}
}
¾18-2. á0dÒ
18.
ÄÕÌå{˜NFÃDHCPÄ
129
˜¾18-3¥ÄÜ+Çgroup Ò,1~u²\Ûkja~tÒ¥,1\á0{d
ÌåÝÙÇk
group {
option routers
option subnet-mask
192.168.1.254;
255.255.255.0;
option domain-name
"example.com";
option domain-name-servers
192.168.1.1;
option time-offset
-18000;
# Eastern Standard Time
host apex {
option host-name "apex.example.com";
hardware ethernet 00:A0:78:8E:9E:AA;
fixed-address 192.168.1.4;
}
host raleigh {
option host-name "raleigh.example.com";
hardware ethernet 00:A1:DD:74:C3:F2;
fixed-address 192.168.1.6;
}
}
¾18-3. kÒ
{˜RÄÕIP ŒÉø:{DHCP qÖìÇ~{jŠu•¾18-4Ǐ0’Ò
Çå€Ï!ŸÏ1ùd{˜Š)¾¥²range 192.168.1.10 Z192.168.1.100 ƒ{IP ŒI{É0’
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "example.com";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
}
¾18-4. )Œkj
Êâ{MAC ŒÉ0’I{IP ŒÇ&~host Ò{hardware ethernet kj
˜¾18-5¥ÄÜ+Çhost apex Ò,ÒÕ{MAC Œ00:A0:78:8E:9E:AA {ø:ÄI{
{IP ŒR†4192.168.1.4
Õ?Ǥ,1&~, {kjhost-name u0’I{ÌåÖ
130
18.
ÄÕÌå{˜NFÃDHCPÄ
host apex {
option host-name "apex.example.com";
hardware ethernet 00:A0:78:8E:9E:AA;
fixed-address 192.168.1.4;
}
¾18-5. &~DHCP {·ÕIP Œ
" ,1&~Red Hat Linux 9 {{˜©G)¾*øÆÇl€óÙÞ½›{{˜ 1&~Á
{ײDž›tth{ ˜°Õ
cp /usr/share/doc/dhcp-<version-number>/dhcpd.conf.sample /etc/dhcpd.conf
ÃY°{<version-number> 4&~{DHCP ÇýÄ
ÜR 1½cùÙ*~{qrï,Ç>kÝdhcp-options {€ÒVÃmanÄ
18.2.2.
ÏjâE
18.2.3.
éÄZ*ŽqÖì
óDHCP qÖìÞÇ/var/lib/dhcp/dhcpd.leases ©G¥?8øDHCP {0’ÏjâE
”©GXa”úCÓ•šÇc£I{{IP Œ{DHCP ÏfåÑÌÄû?óÏjâE
¥”fåÝiÏ{ŸÝÖIP ŒúI{{é6ÖÏ{)ZªŽ†ÏÖ1ù~u5ÂÏ
{{MAC Œ
ÏjâE¥Ä~{-4Âõ…£)ï-ÃGMTÄÇX4ý-
ÏjâEXú­OÇO$ÇX®ÔLDÇċ.{ÏÌúû?tÇø{
ÏjâE¥Çdhcpd.leases ©Gú­×֏dhcpd.leases~Çl€ÇøÏjâEúU
œdhcpd.leases ©G
óÏjâEú­×֏÷P©GÇc©GúUœƒÇDHCP EŸÇ‹,úÀ‹Çø:‹
,Ìÿd˜*êY«<YÇéÄqÖĉ{dhcpd.leases ©GÒXÌ?óYÇ>
XOcÏ©GOYø)̿ċƋ{ÎÏ©GÇ,s—Íõ¯th{Í
4²dhcpd.leases~ ÷P©G­×֏dhcpd.leasesÇl€òéÄEŸÇ
­
óD'éÄDHCP qÖìƒÇø:ø:Þ?ódhcpd.leases ©GÇqÖìRÃúéĘ*YÇ
©GX?ó{›Ç&~touch /var/lib/dhcp/dhcpd.leases ×uOÇ
éÄDHCP qÖÇ&~/sbin/service dhcpd start ×*ŽDHCP qÖìÇ&
~/sbin/service dhcpd stop ט*.tEŸÇóZsÄéÄÇ>kݑ149
¥•˜[®qÖ{få
˜*{ø:ËzêXŽÇdŽÁÇb4.tDHCP qÖìéÄÙ¥ƒÇ,1
{˜DHCP qÖìó Ç÷÷ÞéÄó/etc/sysconfig/dhcpd ¥Ç²ŽÁ{ÖÁ
tDHCPDARGS {ï,¥Õ
18.
ÄÕÌå{˜NFÃDHCPÄ
131
# Command line options here
DHCPDARGS=eth0
˜*‹ÇQ‹ÜÇ{3ÛåìÇY«0ÒÌL`~œÇ,1ú{˜ÄDHCP
0’u,ÉÞ5ÂIP ŒÖÇ,1ú~*3ۃ€{\d{DHCP qÖì
½Ëzt\d{&ø:͓\ÇO~’Ã/,ÉuËzÇ{EŸÇ
ÙÇ,ó/etc/sysconfig/dhcpd ¥½{×q 1ÝiÕ
• -p <portnum> — ½dhcpd a”)&{udp à=Rh倊67DHCP qÖìó½
{udp à=L {à=RhÞ²ÃaQÉDHCP 0’ž˜Ç˜*zIêå€{à=67Ç
qÖìóà=67 Þ)&>FÇl€óà=68 ÞÃa0’˜*ó$ÿ½êÇà=Rh
u&~DHCP ÝS®Çč½{DHCP ÝS®{)&à=Œ43à=-<>k
ݑ18.2.4 
• -f — ²EŸÇ*ÑŸÇäqYó®A!ž~
• -d — ²DCHP qÖìEŸÇ9t)ïFØÃcì¥Yó®A!ž~˜*ǖ‹
½Ç†“RúUœ/var/log/messages
• -cf filename — ½{˜©G{ ˜å€ ˜4/etc/dhcpd.conf
• -lf filename — ½ÏjâE©G{ ˜˜*ÏjâE©G.?óÇóDHCP qÖì
š'éÄ&~3Ç©G–­ñOFóÛ{åìޏ®Aø{b&~” 1å€{ ˜4/var/lib/dhcp/dhcpd.leases.
• -q — óéĔEŸÇÇX+rŸÇYfå
18.2.4. DHCP
ÝS®
{ÝS®ÃdhcrelayÄ㎲ÃDHCP qÖì{{DHCP ZBOOTP >FÝ
ÉÙÇ{ÇÝõÇDHCP qÖì
hìÇDHCP 0’>FfåÇDHCP ÝS®²”>FÝÉDHCP ÝS®éÄč½{
ïDHCP qÖìhìÇDHCP qÖì(ÃÇÃaǔÃaúBÝ\Bɘ!ð>F
{d
ø:&~INTERFACES ó/etc/sysconfig/dhcrelay ©G¥½êz=ÇDHCP ÝS®
)&ċz=Þ{DHCP >F
éÄDHCP ÝS®Ç&~service dhcrelay start ×
DHCP
18.3.
{˜DHCP 0’
{˜DHCP 0’{‘Z4h½Xê#/õjÌó“ã,Ç¥ú#/Çø
:̏”{˜ôh{XÜL˜*ó“〓ãê<ÇKudzu a”Ì#/
ÇÇ?
+Ç{˜#a{XÜL>h½†Red Hat Linux {mG/Žï,ÇÇ •http://hardware.redhat.com/hcl/˜*X4„“ãǓÝKudzu {˜{Ç%w
ÇñœýÇXÜLÇ >kݑ319¥•ñœXÜL{û
CÓ{˜DHCP 0’lj•/etc/sysconfig/network ©Gué~ÉÖ?
•/etc/sysconfig/network-scripts ø9¥šÇd÷÷{{˜©Gó”ø9¥ÇšÇ÷
÷ыÇw)ifcfg-eth0 {{˜©GÇY°{eth0 4d÷÷{ÖÁ
/etc/sysconfig/network ©Ga”Ý91qÕ
1
NETWORKING=yes
1.
Kudzu
4óø:Zsäq{mGæÓäÇÇ~ug½ø:ÞÝ#øêýJmG
132
18.
ÄÕÌå{˜NFÃDHCPÄ
{YÇ©G¥,‹ÍõfåÇb4˜*.óZséÄÉÇNETWORKING #ތú÷
yes
/etc/sysconfig/network-scripts/ifcfg-eth0 ©Ga”Ý91qÕ
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
šÇ.{˜&~DHCP {÷÷щÇ{˜©G
˜*D CošŽÁu{˜DHCP 0’Ç>kݑ129 uÜR•&~d®Óäu{˜
dz=&~DHCP {-<
18.4.
ÙÇýî
ÜRY°–‹õù{{˜ 1{fåÇ>kïýî
18.4.1.
“ãê{©l
{€ÒVÃmanÄ— ÃcDHCP EŸÇ{äqÆ®
{€ÒVÃmanÄ— ‰:˜[{˜DHCP {˜©GÖÝiJ¾
dhcpd.leases {€ÒVÃmanÄ— ‰:˜[{˜DHCP Ï©GÖÝiJ¾
dhcp-options {€ÒVÃmanÄ— ‰:ódhcpd.conf ¥ÒDHCP 1{ªÖÝi
J¾
dhcrelay {€ÒVÃmanÄ— ‰:DHCP ÝS®ZÇ{{˜ 1
• dhcpd
• dhcpd.conf
•
•
•
19.
Apache HTTP
qÖì{˜
óRed Hat Linux 8.0 ¥ÇApache HTTP qÖìúÍctÇý2.0ÇÇ&~X3{{˜ 1,Red
Hat Linux 7.3 )ÇRPM žGÝú­c×֏httpd˜*.Cӏû#?{{˜©GÇ
>kÝ/usr/share/doc/httpd-<ver>/migration.html ÝRed Hat Linux k¥{
û#5s
˜*ó1{Red Hat Linux Çý¥&~HTTP {˜Óä{˜êApache HTTP qÖìÇl€‰q
ÿÇ,1&~YÇa~Ǔu²{˜©Gû#tÇý2.0 {cÂ*éÄHTTP {˜ÓäǕ
#{˜Çl€â?Äâ?{{˜©GÒ̦Çý2.0 /Ž
HTTP {˜Óä㎏Apache HTTP qÖì{˜/etc/httpd/conf/httpd.conf {˜©G
ÇX&~Î{srm.conf Ýaccess.conf {˜©GֲǢ8¸,1/,CošŽÁu
{˜Ç¾˜ŠÌå9auZ!LjÞËz
‹ÝióRed Hat Linux ¥{ÜL,1&~HTTP {˜Óäu{˜˜*“ãêi{ÜLÇ
Ç¢X&~YÇÓäu“ã
‰“ãhttpd Zredhat-config-httpd RPM žGÝb&~HTTP {˜ÓäǤ‰X
=ø:ZÊY!éÄYÇǓǚâÌh\ => ø:÷˜ => qÖì÷˜
=> HTTP qÖìÇÝóshellþ˜ÇXTerm ÝGNOME ªàÄ
+¥Eœredhat-confighttpd ×
Be
˜*.&~YÇÓäÇ>XCÓö/etc/httpd/conf/httpd.conf {˜©GHTTP {˜Óäó
â?•#?RñǓ€ÄÄYÇ©G˜*.HTTP {˜Óä ¥–‹{iÜLÝ{˜ 1ÇX&~YÇÓä
&~HTTP {˜Óäu{˜Apache HTTP qÖì{ÄZ½˜ÄcÕ
1. óÌ)ü{˜äý÷˜
2. šâŠÌå)üu{˜å€÷˜
3. óŠÌå)üÇ{˜å€{ŠÌå
4. ˜*.XŽÇURL ݊Ìå
ØqÖÇi{ŠÌå
5. óqÖì)ü{˜qÖì÷˜
6. óu‡®)ü{˜Ëz÷˜
7. ²Ä‹{©G…›tDocumentRoot Zcgi-bin ø9¥
8. RñǓ?â?{÷˜
19.1.
äý÷˜
&~Ì)üu{˜äýqÖì÷˜
134
19. Apache HTTP
qÖì{˜
C19-1. äý÷˜
óqÖìÖÁ©ýã¥Qœ‹Y&~{qr­Ö” 1Zhttpd.conf ¥
{ServerName #éaServerName ÷˜y‘qÖì{ÌåÖÇ~uOURL {
­s5˜*–‹½BqÖìÖÁÇy‘qÖìÌAC,ø:¥{IP Œu‰ÛÇqÖì
ÖÁX½:4Ç{IP Œž˜Ç,.²{qÖìÖÁ÷www.example.comÇ
{qÖì{"DNS ÖÁe4foo.example.com.
ó̞…GŒ©ýã¥Qœy‘qÖ쑏V{ž…GŒ” 1
Zhttpd.conf ¥{ServerAdmin #éa˜*{˜qÖì{FØÝ9ž…G
ŒÇ”ŒRÌú~’~u5qÖì{®Ê
b¯å€{Š4Õroot@localhost
&~,~Œ©ýãu½BqÖìzIŸœËz>F{à=” 1Zhttpd.conf ¥
{Listen #éaRed Hat å€{˜Apache HTTP qÖìóà=80 Þ)&:“\y‘/
µ
šâ•<u½BzI>F{ÙÇà=ǘC19-2Ä+{=Ìñ,1 )
&ċŒ 1uó½B{à=Þ)&ċIP ŒÇ,1óŒã¥½qÖìÌz
I>F{ŒšÇà=½ÇIP Œ˜*.ó3à=Rhލ½õÇIP ŒÇ
>šÇIP ŒI/Oø˜*‹,Ç&~IP ŒX4­ÖÇYø̽DNS †¯
½-<>kÝhttp://httpd.apache.org/docs-2.0/dns-caveats.html ¥{Issues Regarding DNS and
Apache
óŒ ã¥QœhRÃ*Ä{H*Z )&ċŒøšâ,~ŒU%¥
{ö•<Zšâ •<Ä+{=#3ǐX,V=¥{ãŠ.ú½÷Í
øìøÇ Çl€šâÍø•<
" ˜*÷˜êqÖìu)&1024 1{à=nj4Ê~’béÄÇé•1024 Z1Þ{à
=Çhttpd ,1úÊ/~’éÄ
19. Apache HTTP
qÖì{˜
135
C19-2. ,~Œ
19.2.
å€÷˜
½BêqÖìÖÁ̞…GŒ1ù,~Œƒ€ÇšâŠÌå )
üÇl€šâÞÁ{öå€÷˜ •<˜C19-3Ä+{=Ìñó”=¥{y
‘qÖì{˜å€÷˜˜*êNJÌåǏ”ŠÌå{˜{÷˜Ìú€f
~镊Ì喋½B{ÇÒÌ&~倊
19.2.1.
5š{˜
ø9œÂï,ZFØ¥{倊é•õjqÖìÑ7~˜*X2½YJ÷˜Ç
>X•Ç¢
C19-3. 5š{˜
ø9œÂï,¥ïñ{1ø½BDirectoryIndex DirectoryIndex 4~’/,ó
ø9ր½tR"Ã/ Äu>Fø9ÂZDŽqÖì
Ø{å€
ž ˜ Ç h ì ~ ’ > F  http://www.example.com/this_directory/ Ç Æ Ì z
tDirectoryIndex  à ¥ ? ó Ä Ç Ý „ q Ö ì Ä { ø 9 ï , q Ö ì Ì A C ¯
136
19. Apache HTTP
qÖì{˜
IDirectoryIndex ¥ïñ{©GÇ?
ØÇIt{‘Ç©G ˜*ǖIt[©GÇ
?%Options Indexes ”ø9÷˜ÇqÖìÒÌÄ?(ÃÇHTML Â*{ï,Çïñ”
ø9¥{ø9Z©G
&~FØSRYu{˜Apache HTTP qÖìóñFØZ¯²0’­s5ÉýÝ
i\URL” 1ZErrorDocument #éa˜*h0’ACËzApache HTTP qÖì
ñê¯ÝFØÇå€qÄ4+FØSRï¥{;\FØ·åRSå€{˜Ç ”
FØSRÇl€šâö •< å€u+å€{;áFØ·å URL u
²0’­s5tÇi\URLÇ?ó ˜ã¥QœÝihttp:// ó{URL ©Gu
²0’­s5tÇ\URLÇ?óy‘qÖì{©lÊQœ©G{4» ˜Œ1R"
Ã/Ä>Ç?#镩lÊ{ ˜
ž˜Ç²404 –‹ItFØSR­s5tó404.html ©G¥O{Dz404.html
…›tDocumentRoot/errors/404.htmlóYǾ°ÇDocumentRoot 4½B{©lÊ
ø9Ã倏/var/www/htmlÄl€Ç ©G*404 - –‹It FØSR{qÇ
l€Qœ/errors/404.html * ˜
,å€FØlh\¥Ç,1 ï 1ƒÕ
• +lZž…GŒ — óċFØ¥+å€l1ùóServerAdmin ¥
½{5‘V{ž…GŒ•{˜ServerAdmin {-ûfåÇ>kݑ19.3.1.1

• +l — óFØ{Ž\+å€{l
• Ãl — óFØ{Ž\X+l
19.2.2.
9†“
q Ö ì å € ² Q † “ U œ/var/log/httpd/access_log © G Ç ² F Ø † “ U
œ/var/log/httpd/error_log ©G
Q†“Ý9Çċéy‘qÖìËzèC{ï,Ç9ACËz{0’{IP ŒÇA
CËz{†ÏZ-Ç1ùAC5Â{y‘qÖìÞ{©GQœÑ?”få{4»Z©G
֘*4»Z©GÖX1R"Ã/Ä>ǔ4»Ò4#é•{˜{qÖìÊø9Ӕ 1
¦TransferLog #éa
19. Apache HTTP
qÖì{˜
137
C19-4. 9†“
,1{˜½›{†“Â*04Ç &~½›9÷Çl€ó½›†“
ã¥Qœ½›{†“nÇ{˜LogFormat >kÝ http://httpd.apache.org/docs2.0/mod/mod_log_config.html#formats uÜR”{Â*få
F؆“Ý9Ä{qÖìFØ{ï,QœÑ?”få{4»Z©G֘*4»Z©G
ÖX1R"Ã/Ä>ǔ4»Ò4#é•{˜{qÖìÊø9Ӕ 1¦ErrorLog #
éa
&~†“ÿ/h\u÷˜F؆“¥FØ·å{-ûÇÝÇ,1ú÷˜ÄÃ,!;Qt!ûÄemergalertcriterrorwarnnoticeinfo Ýdebug” 1ZLogLevel #éa
5DNS †¯ h\¥ ½{Š½BHostnameLookups  Ã5†¯Ì
Ç 5†¯Ìé~Ç v­5†¯²Š÷v­
˜* ê5†¯Ç{qÖìÌďšÇ,{y‘qÖì>F©l{Ëz‰ÛIP
Œ‰ÛIP Œ?›ø{qÖìÌËzDNS u¯IZìIP Œ#éa{ÌåÖ
˜* êv­5†¯Ç{qÖì̉qv­5†¯DNS¦é›€Ç‰qê
'5†¯€ÇqÖìÌóˆ*Þò‰q't5†¯ót5†¯¥Ç–èa‹ÇIP Œš
{‘'5†¯¥{Œ
/ž€uÇa”²” 1÷Ã5†¯ÇODNS >FÌÉ{qÖìñÞÇ{
qÖì{¤Ý,Ì>z˜*{qÖ:ž$ÇAC‰q5†¯Ýv­5†¯{k/ÒÌ
:žÒ
5†¯Zv­5†¯,ÉrÞu€4ǯċ†¯ÌåÖ{Ç/Ëzóå{
HaXŽƒ@O$Ǐ{y‘qÖìDǏrǐÉ{¼CDÇa”²” 1÷Ã5†¯
19.2.3.
¢¸#Þ
êCGI lýÝqÖìàœÃSSIÄNj‹•¢¸#ÞApache HTTP qÖì,1&
~mod_env ÜLu{˜ú”ÉCGI lýZSSI {¢¸#Þ&~¢¸#Þu”ÜL
{˜
138
19. Apache HTTP
qÖì{˜
C19-5. ¢¸#Þ
&~CGI lý÷˜\Iu÷˜”ÉCGI lýZSSI {¢¸#ޞ˜Ç²¢¸#
ÞMAXNUM ÷50ǚâCGI lý÷˜{•<ǘC19-5Ä+l€ó¢¸#
Þ©ýãEœMAXNUMÇó÷˜{Š ©ýãEœ50šâh½CGI l
ý÷˜\I{˜SetEnv 
&~”ÉCGI lý \IuóqÖìD'éÄCGI lý”¢¸#ފ†”¢¸#
ÞÇóshell +Eœenvšâ”ÉCGI lý{ •<Çófñ{é›U¥Q
œ¢¸#Þ{ÖÁšâh½u²Çtï,¥”ÉCGI lý \I{˜PassEnv 
˜*.ÍøìÇ¢¸#ÞÇO$Ç{ŠÒX̔ÉCGI lýZSSI Ç&~CGI lýR
>÷˜ \IšâÙ¥{•<Çl€QœR>÷˜{¢¸#ÞÖÁÇZUnsetEnv
#éa
öYJ¢¸#ފÇ,ï,¥ ÇÇl€šâ#a{ö•<,ï,¥Íø1
øǚâ#a{ö•<
ŸZê‰Apache HTTP qÖì¥{¢¸#ÞÇ>kÁ{Õ
http://httpd.apache.org/docs-2.0/env.html
19.2.4.
ø9
&~ø9u½ø9{˜ 1Ǧ<Directory> #éa
19. Apache HTTP
qÖì{˜
139
C19-6. ø9
šâÞn{ö•<uÄ‹–‹óÁ{ø9ï,¥½{ø9{˜å€ø9 1 { 1úïÞó <Directory> { Options ¥,1{˜ï 1Õ
• ExecCGI — ㎉qCGI lý˜*” 1–‹ú ÇCGI lýÒXÌú‰q
• FollowSymLinks — ãŽê±nRÓz
• Includes — ãŽqÖìàœ
• IncludesNOEXEC — ãŽqÖìàœÇb4óCGI lý¥¢~#exec Z#include ×
• Indexes — ˜*>F{ø9¥X?óDirectoryIndexØindex.htmlÄÇ+ø9Ž{
Â*šê{ï,
• Multiview — |Ñcontent-negotiated multiviews֔ 1ú倢~
• SymLinksIfOwnerMatch — ‹óø)©GÝø9ZÓz{ċV#3Çb걔nRÓ
z
½ø9½ 1ǚâø9ï,'k{•<˜C19-7 Ä+{=Ìñ
ó=Ž\{ø9©ýãQœ{˜{ø9,D{ï,¥ 1Ç?~&D
{ 1{˜Order Order ;›allow Zdeny úµ${~“óãŽÌåu
ZáýÌåu©ýãÇ,1½ïŠƒÕ
• ãŽÄ‹Ìå— Eœall uãŽtċÌå{6¯
• \I­Ö— ãŽÄ‹ÖÁš{½nÝ1½nˆe{Ìå{6¯
• qrIP Œ— ãŽt½IP Œ{6¯
• — ˜192.168.1.0/255.255.255.0
• dCIDR ä)— ˜10.3.0.0/16
140
19. Apache HTTP
qÖì{˜
C19-7. ø9÷˜
˜* êt.htaccess ©GRSø9 1Ç.htaccess ©G¥{{˜ÒÌú€ ~
19.3.
ŠÌå÷˜
,1&~HTTP {˜Óäu{˜ŠÌåŠÌå㎏X3{IP ŒÌåÖÝ3
åìÞ{X3à=äqX3{qÖ잘Ç,1ó3Çy‘qÖìÞ&~ŠÌåuä
qhttp://www.example.com Zhttp://www.anotherexample.com YÜÇ5é•å€{ŠÌå
Zä•IP {ŠÌåǔ 1Z<VirtualHost> #éaÖé•ä•ÖÁ{ŠÌåǔ 1
Z<NameVirtualHost> #éa
ìNJÌå÷˜{a~•”ŠÌå˜*ì&~öå€÷˜ •<r
ÇqÖì\Û÷˜ÇŠÌå÷˜¥e–‹ú½BÇ å€÷˜ÒÌú&~ž˜Ç,1
óÌ)ü¥½B̞…GŒÇXóšÇŠÌå¥Ç/½Bž…GŒ
HTTP {˜Óä Ýi˜C19-8Ä+{倊Ìå
19. Apache HTTP
qÖì{˜
C19-8. ŠÌå
http://httpd.apache.org/docs-2.0/vhosts/
õ•ŠÌå{få
19.3.1.
141
Zó{åìޓã{Apache HTTP qÖì©l
ØêÍ
ZöŠÌå
ŠÌåǚâŠÌå )üÇl€šâ •<¤,1,ï,¥ Ç
ŠÌåÇl€šâö•<uöÇ
ž 1
ž 1÷˜a~•tó{˜{ŠÌåóŠÌåÖÁ©ýã÷˜ŠÌå
{ÖÁ”ÖÁúHTTP {˜Óä~uK/X3{ŠÌå
² © l Ê ø 9 { Š ÷  Ý 9 ” Š Ì å Ê © l à ˜index.htmlÄ { ø 9 ” 1
Z <VirtualHost> {DocumentRoot #éaóRed Hat Linux 7 ƒÇÄ
Ø
{Apache HTTP qÖì&~/home/httpd/html *DocumentRoot,4óRed Hat Linux 9
¥Çå€{DocumentRoot 4/var/www/html
̞…GŒZVirtualHost {ServerAdmin #éa˜* êóFØ
°+lZž…GŒ{›Ç”Œú~óFØ{lÞ
óÌåfå\IÇ å€ŠÌåä•IP {ŠÌåÝä•ÖÁ{ŠÌ
å
倊Ìå
‘
a”{˜Ç倊ÌåÃ#Ç倐‹Ç÷˜Äh>F{IP Œ–‹ó
NJÌå¥h#ïñÇå€{ŠÌåÒÌú&~˜*倊Ì喋ú½BÇÌ
qÖì÷˜ÒÌú&~
ä•IP {ŠÌå
‘
˜* êä•IP {ŠÌåÇÇÊâqÖì{IP Œu{˜<VirtualHost> 
{¶ôÒÌñóIP Œã½IP Œ½õ•ÇIP ŒÇ~8²Ç
¢I½à=Ç&~IP Address:Port Â*&~:*u”IP Œ{˜Ä‹à
=óqÖìÌåÖ㥍½ŠÌå{ÌåÖ
19.3.1.1.
142
19. Apache HTTP
qÖì{˜
ä•ÖÁ{ŠÌå
‘
˜ * ê ä • Ö Á { Š Ì å Ç Ç Ê â q Ö ì { Ì å Ö Á u {
˜NameVirtualHost {=ÒÌñóIP Œã½IP Œ½õ•
ÇIP ŒÇ~8²ǢI½à=Ç&~IP Address:Port Â*&~:*
u”IP Œ{˜Ä‹à=óqÖìÌåÖ㥍½ŠÌå{ÌåÖó/
Ö\IǚâuÌåÖ{/Ö/ÖÌó NameVirtualHost 
ServerAlias 
19.3.1.2. SSL
Õ
X,1óSSL ¥&~ä•ÖÁ{ŠÌåÇOSSL ºCèìzI“\y‘qÖì{yVÄ
ó#/th{ä•ÖÁ{ŠÌå{HTTP >Fƒ˜*.&~ä•ÖÁ{ŠÌåÇÇ¢ó
{:“\y‘qÖì¥&~
C19-9. SSL |Ñ
˜*Apache HTTP qÖ얋{˜SSL |ÑÇApache HTTP qÖìZÇ{0’ƒ-{/fÒXÌ
ú·Yé•XÝiˆ|Ýâ·få{5u€4,q{ž˜Çq͞GZ©l{Í
5ÒX&~“\/µlÇÂFf~få{žÛÖ5Òa”&~Apache SSL |Ñu
·/µé~Apache SSL |ÑÌé~mod_ssl “\ÜL/,HTTP {˜Óäué~ÇÇ
ŒóÌ)ü=> ,~Œ¥ãŽ/,à=443 {6¯-<>kݑ19.1 l€Ç
óŠÌå)ü¥ ŠÌåÖǚâö•<Ç,&D{h\¥ SSLÇ?%
é~SSL |Ñ 1ǘC19-9Ä+SSL {˜\Iú½{˜êŠè{jhyVj
hyV{“\y‘qÖì
ØèyÇ?50’y‘¨ì,ғ\qÖì{üPŒ
19. Apache HTTP
qÖì{˜
143
qéo{jhyVXó{5&~Red Hat Linux ¥
Ø{ŠèyV•éoCA
€,{jhyV{-<Ç>kݑ209
ÙNJÌå 1
ŠÌå{5š{˜¢¸#Þ1ùø9 1Zšâêöå€÷˜•<1
€ÄD{#3X,ÇY°{{˜~•tó{˜{Ç/ŠÌå•YJ 1{û
Ç>kݑ19.2 
19.3.1.3.
19.4.
qÖì÷˜
qÖì)üãŽ{˜äý{qÖì÷˜å€÷˜óõj<YÑ47~{
C19-10. qÖì{˜
éG{ŠZLockFile #éaóqÖì&~USE_FCNTL_SERIALIZED_ACCEPT
ÝUSE_FLOCK_SERIALIZED_ACCEPT Hǔ²4»÷Ã©GÄ~{4»ÇŒ
Ñ?óýcÞø:logs ø9 •NFS á0ޘ*/"˜$Ça”²å€Š•ý
cÞìÿúÊ~’ÖR{ø9
PID ©G{ŠZPidFile #éa”÷˜qÖì9ŸÇIDÃPIDÄ{©G”©
Ga”êúÊ~’ÖRõj<YÇa”&~倊
XeÝûø9{ŠZCoreDumpDirectory #éaApache HTTP qÖìóÝûXe
ÌACݦt”ø9¥å€Š4ServerRootlǘ*äqqÖì{~’Ä&~{üP–‹
t”ø9{UY!ÇXeÝûÒÃúUœ˜*.²XeÝûUœc1~•®Aø{Ç>²
YNJ•êúqÖì{äqüPUœ{ø9
~’{ŠZUser #éaÇ÷˜qÖìÃI>FÄ~{userid~’{÷˜û½qÖì
{6¯Y!”~’ÄÃ6¯{©GÇ{5u5Xê6¯å€{User 4apache
”~’a”p‹½YÇO$Çê?Ri\~’,1D{©G”~’¤4ċúqÖì
ñ{CGI ŸÇ{ċVÇXa”ú㎉q[ø{X4ÃIHTTP >F{h
144
19. Apache HTTP
qÖì{˜
´·
ø:wó)ÇX²User ÷Ê~’²User ÷Ê~’̏{y‘qÖì›
ôL{“\&É
ótžv*¥Çhttpd ‰ŸÇD1Ê~’üPuäqÇb4ÇÇÌÁýúbÉapache ~’q
ÖìŒ1Ê~’éÄ{ÆO4ÇljÉt1024 1{à=1024 1{à=4ø:&~
â{ÇO$‹Ê~’b‹&~Y`qÖì²ËztÇ{à=ÇÇÒÌózI[Ë
z>F²ŸÇbÉapache ~’
Group {Š¦Group #éaGroup ZUser i#‘Ç÷˜qÖìÃI>FÄ~{
kå€k4apache
19.5.
®ru
šâ®ru)üu{˜.&~{qÖìŸÇ{!LjÞÇ1ù0’Ëz0Á{Apache
qÖì 1YJ 1{å€÷˜óõj<Y4ôh{•#YJ÷˜Ìk/{y‘
qÖì{ru
HTTP
C19-11. ®ru
²!õËzjÞ÷qÖìê3ÿ®{0’>F{!õjÞqÖ쏚ÇËzO
Çhttpd ŸÇŸÇjÞHt!L!݀džtìŸÇˆeÇy‘qÖìbêzIc0’
Ëz˜*X­cHApacheǏ” 1÷˜{ŠRX§°256” 1¦MaxClients 
#éa
Ëz§½B{qÖìó/fQZÃa{Æj/4ÇËz§½B{
qÖìózBGET >FõÈÇózBPOST ÝPUT >F{TCP ÝõÈÇ1ùóÃ
aTCP Ý{ACK ƒ-õÈËz§úå€÷300 ÆÇYóõj<YÑ47~{
” 1¦TimeOut #éa
²š'Ëz!õ>FjÞ÷šÇљËzÄãŽ{!õ>F'j倊100ÇYa”ó
õj<YÑ7~” 1¦MaxRequestsPerChild #éa
˜* ê㎚'Ëz,‹Ã!›>F 1ÇMaxKeepAliveRequests {ŠÒÌ
40ÇYÌãŽÃ!›{>F'j
˜*R> êãŽÑÈuËz 1ÇKeepAlive ÒÌú÷false˜* ê
ÇÇKeepAlive ÒÌú÷trueÇ?%KeepAliveTimeout {ŠÌú÷'Ëz{
19. Apache HTTP
qÖì{˜
145
§-¥ ½{Š”÷˜{§Æj4{qÖìóÃIê1>Fƒ€ÇËzƒ
ÇVÇ>FÌ{Æj`zBt>FÇqÖìÒ̕~Ëz§¥{Š
²Ñ™Ëz÷ÇvL{jŠ,Ìs—qÖì¤Ý>zÇYâACËz”qÖì{~
’jÞ½” 1{jŠÖLÇÇ~’ò'Ëz{qÖìŸÇÒÖõ
19.6.
â?÷˜
˜*X.â?Ä){Apache HTTP qÖì{˜ÇšâHTTP {˜Óä=n{R>•
<Ìú
+h€˜*šâê4uh€” Ç{÷˜ÒXÌúâ?
˜ * . â ? Ä ) {Apache HTTP q Ö ì { ˜ Ç š âHTTP { ˜ Ó ä =  n
{h½•<Çé›UÒÌñ˜*šâê4Ç{÷˜ÒÌúâ?
ó/etc/httpd/conf/httpd.conf ¥#Ç{Ƌ{˜Ìúƒ˜
˜*Y4‘'&~HTTP {˜ÓäÇÌtÇ´·{˜©G.²úCÓ•{é›
U˜*HTTP {˜Óä5thttpd.conf {˜©G.úCÓ•ÇÇ̲CÓ•{©Gâ
?/etc/httpd/conf/httpd.conf.bak
­
â?÷˜ƒ€ÇŒ&~service httpd restart ×u­céÄhttpd EŸÇŒ4Ê~’
b‰q”×
19.7.
ÙÇýî
ŸZê‰Apache HTTP qÖìÇ>kïýî
19.7.1.
•
•
Apache HTTP qÖì©l— ˜*“ãêhttpd-manual žGÝÇ?%óäqApache HTTP
qÖìEŸÇÃhttpdÄÇ,1†Apache HTTP qÖì{©lKÇy‘¨
ìÇl€óäqApache HTTP qÖì{qÖìÞ!tURLÕhttp://localhostzuǚâ©
l Óz
/usr/share/docs/httpd-<version> — Apache Migration HOWTO ©lÝ9ê,Çý1.3
tÇý2.0 {øï•#1ù˜[CÓû#{˜©G{få
19.7.2.
•
•
•
•
•
“ãê{©l
‹~{5
žGä—Ì•Apache HTTP qÖìÇý2.0 {©
lÇÝi
qÖì
http://localhost/manual/index.html — ó{ýø:ÞéÄêApache HTTP qÖìqÖì€Ç
,1&~”URL u†Apache HTTP qÖìÇý2.0 {©l
http://www.redhat.com/support/resources/web_ftp/apache.html — Red Hat {b|ёÇ
‹~{Apache HTTP qÖìÓz{ï,
http://www.redhat.com/support/docs/faqs/RH-apache-FAQ/book1.html —„Red Hat H{Red
Hat Linux Apache Centralized Knowledgebase http://www.apache.org — The Apache Software Foundation
http://httpd.apache.org/docs-2.0/ — Apache
Apache HTTP
Version 2.0 User’s Guide
146
19.7.3.
•
•
19. Apache HTTP
qÖì{˜
#V÷
Apache: The Definitive GuideÇ*VÕBen Laurie ZPeter LaurieÖO’Reilly & Associates, Inc. ñ
Ç
Red Hat Linux k; Red Hat, Inc. — YýkÝiê,Apache HTTP qÖìÇý1.3 C
Óû#tApache HTTP qÖìÇý2.0 {€ÒNjApache HTTP qÖì{Í-ûfåÇ
1ùóApache HTTP qÖì¥ÜL{€Ò
20.
Apache HTTP
20.1.
ë
20.2.
¦“\#{žGݖc
“\qÖì{˜
ý9
Øê•é~êmod_ssl “\ÜLu&~OpenSSL EZÓäÝ{Apache HTTP qÖìqÖ
ì{äýfåRed Hat Linux Ø{Y®Ç\G{\óý9¥RÌúÁ“\y‘qÖìÝ
“\qÖì
mod_ssl ÜL4Apache HTTP qÖì{“\ÜLmod_ssl ÜL&~„OpenSSL ™
Ø{Ó
äuÉApache HTTP qÖì1­Õ— ·/f{Ŧƒ#'Ç&~žHTTPÇ
¨ìZy‘qÖì-{/µÒÌ&~©ýÇÇ¢ó¨ìZqÖìƒ-{4"Þ,ÌúÙ
Ç|R?<Ý
ý9?X4YJǓ{q\ݍ{©l¥.ÜR•ìÌ{Íýœ{©lÇý9ó\7{
0̏ZE»
ý9RÌ5+˜[“ãYJǓ¤‰=ºÄ·ØyV>F˜[Ä·üÖ{y
V1ù˜[“ãyVu~•{“\qÖì{Z½
mod_ssl {˜©G •/etc/httpd/conf.d/ssl.confñœYÇ©G&mod_ssl ê
Ó*njó/etc/httpd/conf/httpd.conf ¥ÝiInclude conf.d/*.conf YÒ
óRed Hat Linux 9¥Ç”Òúå€Ýióå€{Apache HTTP qÖì{˜©G¥
é~“\qÖìǖ艓ã1žGÝÕ
httpd
‘
žGÝÝ9httpd EŸÇZ#{Óä{˜©GC)Apache HTTP qÖìÜ
L€ÒVÃmanÄZÙÇúApache HTTP qÖì&~{©G
httpd
mod_ssl
‘
mod_ssl žGÝÝimod_ssl ÜLÇÇ/,“\ z€ÃSSLÄZQ€“\ÃTLSÄN
FApache HTTP qÖì
ØêL{·Å
openssl
openssl žGÝÝ9OpenSSL ÓäÝOpenSSL ÓäÝ"SSL ZTLS NFǤÝiÇ
žø{{·E
ø$ƒiÇÙÇÝióRed Hat Linux ¥{žGÝ,1
ؽÇÝ{“\ÕÃbX4“\q
Öìäqĉ{ÄÕ
‘
httpd-devel
‘
žGÝÝ9Apache HTTP qÖì{Ý9©G>©GZAPXS ÓäǓ˜*
K®ñœi{ÜLÃX4”—¬Ä
Ø{Älj1Þċ©GZǓ>kÝRed
Hat Linux k uÜR•&~Apache HTTP qÖì{DSO Õu²ÜLñœ“\q
Öì{-ûfå
˜*XK®óApache HTTP qÖì¥ñœiÜLÇX“㔞GÝ
httpd-devel
148
20. Apache HTTP
“\qÖì{˜
httpd-manual
žGÝÝ9HTML Â*{Apache ™{Apache User’s Guide €Ò”
¤,óhttp://httpd.apache.org/docs-2.0/ ¥It
OpenSSH žGÝ
‘
The OpenSSH žGÝ
Øê~uóÏÇåìÞ~9Z‰q×{OpenSSH dËzÓä
ø\OpenSSH Óä·Ä‹b/ÃÝi=ÄÇO$,1½ú'&Ç3)RËzZ
ÙÇé{åìZÏÇåì-/f{Ôâ
openssh žGÝÝiOpenSSH 0’Ç“ZqÖìщ{Xe©Gopenssh žGݤÝ
iscpÇÇ4rcpÃ~uóåì-…›©GÄZftpÃ~uóåì-Q©GÄ{“\¦
openssh-askpass žGÝ|Ñé›U={+”=ó&~OpenSSH S®
+Q
œ=
openssh-askpass-gnome žGÝ,1óOpenSSH Ǔ
+Qœ=ZGNOME óÁ¢
¸å&~u+Cošé›=˜*äq{4GNOMEÇ?&~OpenSSH ÓäÇa
”“㔞GÝ
openssh-server žGÝÝisshd “\shell EŸÇZ#©G“\shell EŸÇ
4OpenSSH G{qÖì0ǘ*.ãŽSSH 0’Ëzt{ÌånjóÌå
ޓ㔞GÝ
openssh-clients ž G Ý Ý 9 Ÿ q ·SSH q Ö ì Ë z Ä ‰ { 0 ’ Ç “ Ç Ù ¥
Ý i ÕsshÃrsh { “ \ ¦ Ä ÖsftpÃftp { “ \ ¦ Ç ~ u ó å ì - Q ©
GÄÖsloginÃ~•ÏÇ~9{rlogin Z/,Telnet NF¦Ìå/f{telnet {“\
¦Ä
•OpenSSH {-ûfåÇ>kݑ159Red Hat Linux k1ùOpenSSH {
5Õhttp://www.openssh.com
‘
httpd-manual
openssl-devel
‘
žGÝÝ9HQ‹È¡·®*ZNF|Ñ{a~Ǔĉ{·ÕEZÝ
9©G‹óÝiSSL |Ñ{a~ǓÇb‰“㔞GÝ— &~SSL X
“㔞GÝ
openssl-devel
stunnel
žGÝ
ØêStunnel SSL ÌwǓStunnel |ÑTCP Ëz{SSL ·ÇO$Ç,
1ÃSSL {EŸÇZNFØPOPIMAP ZLDAPÄ
Ø·ÇeX‰éEŸÇ{
h)[•
,20-1 +ê“\qÖìžGÝ{!Ç?5,ҚǞGÝé“\y‘q֓ã4dX
,è
‘
stunnel
žGÝÖÁ
httpd
mod_ssl
openssl
httpd-devel
httpd-manual
openssh
openssh-askpass
4d, ,X Ú
d
d
d
4
4
4
4
20. Apache HTTP
“\qÖì{˜
žGÝÖÁ
openssh-askpass-gnome
openssh-clients
openssh-server
openssl-devel
stunnel
,20-1. “\žGÝ
20.3.
yVZ“\–c
20.4.
&~.?ØÒZyV
149
4d, ,X Ú
4
4
4
4
4
{“\qÖì&~“\ z€ÃSSLÄZÃõj<YÄuyVY…ÃCAÄ{jhyV{
\u
ؓ\uSSL ÿ®¨ìZ{“\qÖì-{·/µZ#èyCA €,{jh
yV{“\qÖì
ØèyÃCA 1Ç{Ö¹Zâé{åè„üP{€yÄh{¨
ì&~SSL ·/µÇÌtsJyÞ{™ýͽ ÃURLÄ{>‹Çhttps://
í
·v•ØÒ{&~Ã,1²Ç¢h)jâÂ*{³·hZ‰hØÒÄ:{ÝéÁ{
·b¥Ç/Ö{ÜàÑ&~3²ØÒÇÇ¢,1~Y²ØÒu»H
${QóÚáÝ:éÁ
·b¥Ç‹Ü²ØÒ??ÕÚØZ·Øì|Ýìåè²Æ¢{·Øâ·ÇÚYÆ¢{ÚØÖ
&~·Øh{jâ~ÚØb‰h
÷˜{“\qÖìÇRÌ&~Úá·buOÚØZ·Øéóõj<YÇÌ5
ìCA ˜yV>FÃÝi{ÚØÄ{ډüP{yâ1ù‡QCA RÌDè{yV
>FZüPÇl€²{“\y‘yVÃÉ
“\qÖì&~yVu5y‘¨ì)ÒüP,1Ä{yVÃw)üy
VÄÇÝV,1,yVY…¥ÜRyVu‹‚{CA {yVÌZâ¦ì½Ú‰Ýåè
#Ë{5{üP
iÇ,1O{üyVl>Õ?ÇüyVXa”ú~óõj—¢¸¥
üyVXÌú~’{¨ìÄzI— ¨ìRÌn®~’4dzI”yV?O“\Ëz
>kݑ20.5 uÜR•üZCA üÖ{yVK/{-ûfå
ó‹êü{yVÝuCA {yV€Ç‰²Ç“ãó{“\qÖìÞ
˜*.‹?{ØÒZyVþ˜Ç˜*“ã“\qÖìu¦Ú‰{“\qÖì—
¬ÄÇ,Rêó“\qÖì¥&~?{ØÒZyVóÁYÜ«<YÇRÃ&
~?{ØÒZyVÕ
• ˜*•#ê{IP ŒZ­Ö — yV45½IP ŒZ­ÖéÅ{˜*•#ê­Ö
ÝIP ŒÇ‰ù>PcyV
• ˜*‹PuVeriSign {yVÇb.•#qÖìžG — VeriSign 4&~v-{CA˜*
.‹P„•ÙÇÆOÜz{VeriSign yVÇ,ÌDó{c“\qÖì¥&~
‹{VeriSign yVÇlÇRXÌúãŽ&~ÇY4OVeriSign â½qÖìžGZIP
Œ/­Ö\uÅyV
˜*•#ê1ÞkjޘÇ,&~êǓ\qÖ여Çó.&~YǓ
\qÖìÄǏ,{{˜ÄÜR{VeriSign yVRÃóc{˜¥&~ŒÜRPc
yV
150
20. Apache HTTP
“\qÖì{˜
˜*‹,1&~{.?ØÒZyVÇRXÄcØÒÝÜRcyVlÇ,‰Ý#
?ÍÖÝ9ØÒZyV{©G
²{?ØÒ©GÝ#tÕ
/etc/httpd/conf/ssl.key/server.key
R{?yV©GÝ#tÕ
/etc/httpd/conf/ssl.crt/server.crt
óÝ#êØÒZyVƒ€Ç!t‘20.9 
˜*ÿRed Hat “\y‘qÖìÇ{ÎØÒÃhttpsd.keyÄZyVÃhttpsd.crtÄ
RÌ •/etc/httpd/conf/ R‰Ý#?­×Ö{ØÒZyVÇO$“\qÖìb
&~Ç¢&~1ÜÇ×uÝ#?­×ÖØÒZyV©GÕ
mv /etc/httpd/conf/httpsd.key /etc/httpd/conf/ssl.key/server.key
mv /etc/httpd/conf/httpsd.crt /etc/httpd/conf/ssl.crt/server.crt
l€Ç&~Á{×uéē\qÖìÕ
/sbin/service httpd start
éē\qÖìÇÌú
+Qœ=éhEœ=逕[Enter] EÇqÖìÒÌéÄ
20.5.
yV¡n
˜*,Red Hat Linux Ø{RPM ¥“ãê“\qÖìÇDZåØÒZAyVÒÌúÄ?
8˜ó7h{ø9¥lÇó&~“\qÖìƒÇ‰Ä{ØÒ?ÜRth#/
{qÖì{yV
‰ØÒZyVbv*“\y‘qÖ— Y?›ø,1ÄÇü{yVÝ,ìCA ÿé
oP„CA üÖ{yVYÜV-‹K/Ú
„CA üÖ{yV{qÖì
ØÜ1­ÅÕ
• ¨ìÃ/žÄÌÄ#/yVÇ?%X
+~’ÒêãŽ/“\Ëz
• hìCA ÅêüÖ{yVÇÆ¢4ó5¨ìZâ
Ø{åè{üP
˜*{“\qÖìúLÚ¯Ä6¯Ç{“\qÖ쉋CA üÖ{yVÇO$6¯{
5{~’,1f”5{h4Òp‹Ç{OèÄp‹óüyVÇCA Dèù>yV{å
èh"˜Æ¢ÄÓ
õj|ÑSSL {y‘¨ì‹ÇÇ¢ÌÄzIyV{CA ï,˜*¨ì±tPuï
,ƒi{GYCA {yVǨìÌ®¯~’4dzIËz
,1{“\qÖìÄPü{yVÇb4>?ÇüyVRXÌ
ØZCA ü{y
V#3{ÕüyVRXÌú~’{¨ìÄ#/Ç%ÇRXÌZâ
Ø5{åè{ü
P„CA ü{yV“\qÖì
ØYÜ1­{Ř*{“\qÖìRÌ~ó—¢
¸¥Ç,̉CA ü{yV
,CA ÜRyV{C™:ž;\Á4éÙZ½{;\ÃcÕ
1. O·{ÚØZ·Øé
2. ÊâÚØOyV>FyV>FÝi•{qÖìZÌÑÇ{ډ{få
3. 5ìCA ˜yV>FÇ1ùyÒ{üP{©l·¢X5OF” ýÇCA{
û½,1OÁó,V{²èÞÇÝV{ŠŒÝ3/{²èÞÇÝV\,²ÞD
20. Apache HTTP
“\qÖì{˜
151
h ½êÇCA €Ç‰$¬Æ¢
Ø{€ÒuÜRyV
hCA é{üP{]"uw?€ÇÆ¢ÒÌÉPjhyV
5. ó{“\qÖìޓã”yVÇl€)ÿ®“\/Ö
XX4,CA ÿÜRyVǤ4&~ü{yVǑÇZ½Ñ4ÄØÒ>kݑ20.6 u
ÜRÄØÒ{+
4.
20.6.
ÄØÒ
Œ4Ê~’bÄØÒ
DÇcd t/etc/httpd/conf ø9¥Ç&~Á{×Íøó“ã¥Ä{"ØÒZyVÕ
rm ssl.key/server.key
rm ssl.crt/server.crt
Ù'ljÄ{±åØҕ¦t/usr/share/ssl/certs ø9¥ÇEœ1×Õ
make genkey
{ø:Ì+Z1Qñ#‘{>åÕ
umask 77 ; \
/usr/bin/openssl genrsa -des3 1024 > /etc/httpd/conf/ssl.key/server.key
Generating RSA private key, 1024 bit long modulus
.......++++++
................................................................++++++
e is 65537 (0x10001)
Enter PEM pass phrase:
óljEœ=éÜz!“\uÇ{=a–èÝi¬ÇnÇÝijZ)šÇ
%X4#›¥{Ä#Îi>ÔÇ{=4KILBU{
Õ
óš'éē\qÖì{щQœYÇ=ÇO$>RǏóe
­cEœ=uDèÇ4dth`thEœêÇÇÝi{ØÒÇw
)>/etc/httpd/conf/ssl.key/server.key {©GÒÌúO
Õ?ǘ*X.óš'éē\qÖì{ÑQœ=ÇR‰ÁYÜ×ÇX
4make genkey uOØÒ
&~Á{×uO{ØÒÕ
/usr/bin/openssl genrsa 1024 > /etc/httpd/conf/ssl.key/server.key
l€&~Y×uh½ØÒ{Y!úth÷˜Õ
chmod go-rwx /etc/httpd/conf/ssl.key/server.key
ó&~1Þ×OØҀÇRX‰&~=éuéē\qÖì
152
20. Apache HTTP
“\qÖì{˜
Be
ó{“\qÖ쥢~=Õ4«“\Z·¢X
¦¢~“\qÖì{=Õ
X&~=ÄÄ{¯ZÌå{“\‘~Ò#ž˜Ç¥‹|ˆ3êÌåÞ{žUNIX “
\ø:ÇÆÒ,1ÜR{·ØÃserver.key ©G{ŽÄ”ØÒ,1~u
ؑ‚4u
{“\qÖì{
˜*UNIX “\ø:óÌåÞú€]‘Ãù“ãv*ø:{V¶ZÍcÖXv*X{݋
{qÖÄǓ\qÖì{=,ÒX4ilDŽ•{“\qÖìa”–ú
ª$­céÄÇQœ=ÄQu{iâóõj<Y4Šzq{
server.key ©Ga”úø:{Ê~’p‹ÇXa”úÙÇ~’6¯É”©G÷PÇR÷P‚ý
?8ó“\ƒÿ‰÷P{ÆO4ǘ*ó&~ØÒOêyV>F€¿êserver.key
©GÇ{yVÒXÌòHÇCA é$ãϐòù>Ã?éoÄPcyV
˜*K®,CA ÿéoyVÇ>™Ý֑20.7 ˜*K®Äü{yVÇ>™Ý
֑20.8 
20.7.
ĘÉCA {yV>F
`OêØÒÇZÒ4ÄyV>Flj²”>F˜É ¥{CA>h½ •/usr/share/ssl/certs ø9Ç?EœÁ{×Õ
make certreq
{ø:Ì+ïQñÇl€¤Ì>Qœ=éÃø:¢~ê= 1ÄÕ
umask 77 ; \
/usr/bin/openssl req -new -key /etc/httpd/conf/ssl.key/server.key
-out /etc/httpd/conf/ssl.csr/server.csr
Using configuration from /usr/share/ssl/openssl.cnf
Enter PEM pass phrase:
EœóÄØÒ {={ø:RÌ+J+Çl€5®¯øï¯{Q
œÌúÝióyV>F¥Ä+{QñZ+¾ÃIÇåuZÁ#‘Õ
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a
DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ’.’, the field will be left blank.
----Country Name (2 letter code) [GB]:US
State or Province Name (full name) [Berkshire]:North Carolina
Locality Name (eg, city) [Newbury]:Raleigh
Organization Name (eg, company) [My Company Ltd]:Test Company
Organizational Unit Name (eg, section) []:Testing
Common Name (your name or server’s hostname) []:test.example.com
Email Address []:admin@example.com
Please enter the following ’extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
20. Apache HTTP
“\qÖì{˜
153
å€ÃI›±óš1F€Á{iRÃ[]ľ˜Ç‘1F{få4yVú~•{)
ǘÄ+Õ
Country Name (2 letter code) [GB]:
å€{QœñóiRÇ4GBzI倊ǐ‰•[Enter]Çݜ{){ÜÇñ{
SR
ŒzEœ{ŠYJQœÑ4XÓ²{Çb4‰$,1ïÕ
• X~­Ý²{ÀU~\ÁØÇSt. Louis a”úUÄSaint LouisÄ
• ˜ * ² ”CSR ÉCAÇ > h â ó Ä ‹ { ã Ñ Ø ê t h { f å Ç /
4Organization Name ZCommon Name YÜ1CA 5†CSR ¥
Ø{få1g½{åè
4déÄ
Ø{Common Name ‹CA RÌáýÝiÆ¢€ÃH{få{CSR
• é•Common NameÇ>h½Eœê{“\qÖì{]"ÖÁËH{DNS ÖÁÄÇX4
qÖì{/Ö
• Email Address a”4ÌÝø:®Ê{ž…GŒ
• >½@#&! ƒ¡{OnìJCA RÌáýÝ9On{>FO$ǘ*{
ډÖÁÝ9&DzǩUandX&~&
• X&~YÜ1ŽauÕA challenge password ZAn optional company nameX
QœYJã™Ç‰•[Enter] EuzI8¸{倊ý,
fåQœq€ÇÇw)/etc/httpd/conf/ssl.csr/server.csr {©GÒÌúO”©
G4{yV>FÇ,1±É{CA
ó ½êCA €Ç•LÆ¢ó5
Ø{€Òq/YJ€ÒÌ·ª˜[˜yV>FǤ
‰ýJ©l1ù‡Qfå
ówêCA {F€ÇÆ¢ÒÌÉyVÃ/ž/,ž…GÄRÇ¢{yVâ?
ÃÝ="Ä/etc/httpd/conf/ssl.crt/server.crt>h½É”©GâP÷P
20.8.
Oü{yV
,1Oü{yV>Õ?Çü{yVRXÌ
؄CA ü{yVÄ
Ø{“\Zâ
•yV{-ûfåÇ>kݑ20.5 
˜*.›*ü{yVÇD‰•L‘20.6 ¥
Ø{+uO±åØÒ`OêØ
ÒÇ>h½ •/usr/share/ssl/certs ø9¥ÇòEœÁ{×Õ
make testcert
RÌt1QñÇÌú
+Qœ=éÃø:ÄêÃ={ØÒÄÕ
umask 77 ; \
/usr/bin/openssl req -new -key /etc/httpd/conf/ssl.key/server.key
-x509 -days 365 -out /etc/httpd/conf/ssl.crt/server.crt
Using configuration from /usr/share/ssl/openssl.cnf
Enter PEM pass phrase:
Qœ=é€Ã˜*OêÃ={ØҖ‹
+ÄÇÌúFQœÍõfå®å{Q
ñ1ù+¾Qœ¦1{+#5ɏ{ÌåZåè
Øth{fåÄÕ
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a
DN.
154
20. Apache HTTP
“\qÖì{˜
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ’.’, the field will be left blank.
----Country Name (2 letter code) [GB]:US
State or Province Name (full name) [Berkshire]:North Carolina
Locality Name (eg, city) [Newbury]:Raleigh
Organization Name (eg, company) [My Company Ltd]:My Company, Inc.
Organizational Unit Name (eg, section) []:Documentation
Common Name (your name or server’s hostname) []:myhost.example.com
Email Address []:myemail@example.com
Øêthfå€Çü{yVÒÌó/etc/httpd/conf/ssl.crt/server.crt ¥úO
ÄyV€Ç‰&~1×u­céē\qÖìÕ
/sbin/service httpd restart
20.9.
AyV
A倓ã{AyVCA ü{yV1ùü{yVDz{y‘qÖìÝt1Ì
òserver.example.com ¦Ä{­ÖÄÕ
https://server.example.com
Õ
Õ?http €Á{shttps: íú~ó“\HTTP /Ö¥
˜*&~{4„ÖCA ü{yVÇ{¨ì,ÌÄzI”yVÃX
+Qπ?
O“\Ëz{¨ìXÌÄ#/AÝü{yVÇOYJyVX4„CA ü{˜
*–‹&~uCA {yVÇ>$¬¨ì{+uzIyV
{¨ìzIêyV€Ç{“\qÖìÒÌ+å€{Ì
20.10.
6¯qÖì
6¯{“\qÖìÇ&~Z1#‘{URLÕ
https://server.example.com
{:“\qÖì,1&~Z1#‘{URL u6¯Õ
http://server.example.com
“\y‘/µ{)ïà=4à=443:“\y‘/µ{)ïà=4à=80“\qÖìå€
{˜éYÜÇà=Ñ)&O$ÇXóURL ¥½à=RhÃà=RhÌú"½Ä
lǘ*{˜ê{qÖì)&:)ï{à=Ãø80 Z443 ƒi{ÄnjóšÇURL ¥
½‘ó:)ïà=ÞËzqÖì{à=Rh
20. Apache HTTP
“\qÖì{˜
155
¾˜Ç,É{qÖì)ê#a{˜ÇO$óà=12331 ÞäqÇ:“\{ŠÌå
[‘óËz”ŠÌå{URL ьóURL ¥½à=RhÁ{URL ¾ÌACËzóà
=12331 )&{:“\y‘qÖìÕ
http://server.example.com:12331
20.11.
ÙÇýî
‹Apache HTTP qÖì{ikýî>kݑ19.7 
20.11.1.
“ãê{©l
— ó“ãêhttpd-manual žGÝ?äqApache HTTP qÖì{
qÖìÞKy‘¨ìÇl€ÝtURL http://localhost/manual/mod/mod_ssl.html
• mod_ssl documentation
20.11.2.
•
•
http://www.redhat.com/mailing-lists/ — ,1óYÇURL Þ¾Ýredhat-secure-server …Gï
,
¤,1/,É<redhat-secure-server-request@redhat.com> YǏŒ˜ž…GÇ
?óÌy¥Ýisubscribe YÇ#u¾Ýredhat-secure-server …Gï,
http://www.modssl.org — mod_ssl 54•mod_ssl {Y…ufå”5ä‹TŒ{©l
ýîÇÙ¥ÝiUser ManualÇ •http://www.modssl.org/docs
20.11.3.
•
‹~{5
#V÷
ǑÇÇ*VÕBen Laurie ZPeter LaurieÖO’Reilly & Asso-
Apache: The Definitive Guide
ciates, Inc.
156
20. Apache HTTP
“\qÖì{˜
21.
BIND
{˜
ý9"½.²=ºê•BIND ZDNS {äý#ÇOóY°·¢XÌAC‰:BIND ZDNS
{–'ý95‰:˜[&~Bind {˜ÓäÃredhat-config-bindÄu{˜äý{BIND q
ÖìKLBind {˜Óäóš'a~•#O/etc/named.conf {˜©GZ/var/named
ø9¥{KL{˜©G
­
Xö/etc/named.conf {˜©GBind {˜Óäóa~•#ƒ€Ä”©G˜*.{˜&
~Bind {˜ÓäÃ{˜{÷˜Ç>²Ç¢t/etc/named.custom ¥
{˜Óä ‰X =ø:ZÊ6¯YéÄBind {˜ÓäǚâÁÆÞ{Ìh\ =>
ø:÷˜ => qÖì÷˜ => ­ÖqÖÇÝóshell +ØXTerm ÝGNOME ªàÄ
Eœredhat-config-bind ×
Bind
C21-1. Bind {˜Óä
Bind {˜Óä ²å€{KLø9{˜Ä/var/namedċ½{KL©GÑ4#镔ø9Ä
ÓBind {˜Óä¤ÝiéQœŠ{äýª5†ž˜Ç˜*Ç\{1øa”4IP ŒÇ
"úãŽó©ýK­¥EœjZšÃ.Än
Bind {˜ÓäãŽÇt5ÌKÇÇ5ÌKÇZÇ,KêYJKL€ÇÒ
,1,Ì=¥öÝÍøǢǘC21-1Ä+
öÍøìKƒ€ÇŒšââ?•<Ý ©G => â?uU
œ/etc/named.conf {˜©GZ/var/named ø9¥{šÇKL©Ga~YJ•#¤Ì
named qÖ­cñœ{˜©G ©G => RñÌóRñ©Gâ?Ä)•#
21.1.
t5ÌK
t5ÌKÑÁDÌKÄǚâcO•<Ç t5ÌKLÇl€ó­Ö©
ýKQœÌK{­Ö
158
21. BIND
{˜
Ç¡‘C21-2{c=ÌñÇÙ¥Ýi1 1Õ
• ÖÁ — óÇ=¥Qœ{­Ö
• ©GÖ — DNS jâE©G{©GÖÇ#é•/var/named ÓÇú½÷€Vê.zone
{­Ö
• Éø — ÌK{̞…GÉøŒ
• ÌÖÁqÖì(SOA) — GYçÕÃSOAÄ9Ǎ½!7\”­få{ÖÁqÖì
• “ïRh — DNS jâE©G{“ïRhóš'©G•#ÇYÇRhÑa”5
”ÇO$”KL{'ÖÁqÖìÒê5Ât!c{jâBind {˜Óäóš'{˜•
#{Ñ̔”RhǤ,1úCӔÇ04šâ“ïRhŠk{÷˜•
<
• -÷˜ — Ñ?óDNS jâE©G¥{mc­A,ÏZ–è
TTLÃÙ×-ĊċŠÑ1Ə\ • 9 — öZÍø•Ìå/ÖZÖÁqÖ샡{ýÍ
9
C21-2. t5ÌK
ÌÖÁqÖì(SOA)Œú½ÇŒšâ9\I{•<u–荽ÇÖ
ÁqÖì9
{˜êt5ÌK€Çšâh½u(Ãt˜C21-1Ä+{Ì=,nh\¥Çšââ?
uUœ/etc/named.conf {˜©GÇ1ù/var/named ø9¥Ä‹\Õ{KL©GÇ?&EŸ
Ç­cñœ{˜©G
”{˜ó/etc/named.conf ©G¥OêZ1#‘{1øÕ
zone "forward.example.com" {
type master;
file "forward.example.com.zone";
};
21. BIND
{˜
159
ǤOêQ‹1få{/var/named/forward.example.com.zone ©GÕ
$TTL 86400
@
IN
SOA ns.example.com. root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
IN
21.2.
NS
192.168.1.1.
5ÌK
5ÌKǚâcO•<? 5ÌKLQœ.{˜{IP Œ)Œ{®
Ǭ ž˜Ç˜*.{˜{IP Œ)Œ4192.168.10.0/255.255.255.0ÇóIP ŒÃ3
Ǭ Ä©ýK­Qœ192.168.10
ǘC21-3Ä+{c=ÒÌñÇÙ¥Ýiï 1Õ
1. IP Œ — ¦¦óÇ=Qœ{®Ç¬ 2. 5IP Œ — X,öÊâQœ{IP Œ½{
3. Éø —ÌK{̞…GÉøŒ
4. ©GÖ — /var/named ø9¥DNS jâE©G{ÖÁ
5. ÌÖÁqÖì(SOA) — GYçÕÃSOAÄ9Ǎ½!7\”­få{ÖÁqÖì
6. “ïRh — DNS jâE©G{“ïRhóš'©G•#ÇYÇRhÑa”
5”ÇO$”KL{'ÖÁqÖìÒê5Ât!c{jâBind {˜Óäóš'{
˜•#{Ñ̔”RhǤ,1úCӔÇ04šâ“ïRhŠk
{÷˜•<
7. -÷˜ — Ñ?óDNS jâE©G¥{mc­A,ÏZ–è
TTLÃÙ×-ĊċŠÑ1Ə\ 8. ÖÁqÖì — 5ÌKöÝÍøÖÁqÖì–è‰ÇÖÁqÖì
9. 5  Œ , — ó 5 Ì K Z Ç ¢ { Ì å Ö {IP  Œ ï , ž ˜ Ç é •
5 Ì K192.168.10Ç , 1 ó 5  Œ , ¥ 192.168.10.1Ç 1 ù Ì å
Öone.example.com.ÌåÖ½1šÃ.Ĉeu,ÒÇ4Ìå{\Ö
160
21. BIND
{˜
C21-3. 5ÌK
ÌÖÁqÖì(SOA)Œú½ÇŒšâ9\I{•<u–荽ÇÖ
ÁqÖì9
{˜ê5ÌK€Çšâh½u(Ãt˜C21-1Ä+{Ì=,nh\¥Çšââ?
uUœ/etc/named.conf {˜©GÇ1ù/var/named ø9¥Ä‹\Õ{KL©GÇ?&EŸ
Ç­cñœ{˜©G
”{˜ó/etc/named.conf ©G¥OêZ1#‘{1øÕ
zone "10.168.192.in-addr.arpa" {
type master;
file "10.168.192.in-addr.arpa.zone";
};
ǤOêQ‹1få{/var/named/10.168.192.in-addr.arpa.zone ©GÕ
$TTL 86400
@
IN
SOA ns.example.com. root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@
IN
NS
ns2.example.com.
21. BIND
{˜
1
2
PTR
PTR
IN
IN
21.3.
161
one.example.com.
two.example.com.
,KL
,KLÑÁ'ÌKÄǚâcO•<? ,KLó­Ö©ýK­Q
œ,KL{­Ö
ǘC21-4Ä+{c=ÒÌñÇÙ¥Ýiï 1Õ
• ÖÁ — óÇ=¥Qœ{­Ö
• ÌKLï, — ,KL,¥5Âjâ{ÖÁqÖ씊Œ4‹H{IP Œó©
ýK­QœjZšÃ.Ä
• ©GÖ — /var/named ø9¥DNS jâE©G{ÖÁ
C21-4. ,KL
{˜ê,KL€Çšâh½u(Ãt˜C21-1Ä+{Ì=,nh\¥Çšââ?u
Uœ/etc/named.conf {˜©GÇ1ù/var/named ø9¥Ä‹\Õ{KL©GÇ?&EŸÇ
­cñœ{˜©G
”{˜ó/etc/named.conf ©G¥OêZ1#‘{1øÕ
zone "slave.example.com" {
type slave;
file "slave.example.com.zone";
masters {
1.2.3.4;
};
};
{˜©G/var/named/slave.example.com.zone ónamed qÖ,ÌKLqÖì¥ñKLj
âúO
162
21. BIND
{˜
22.
èy{˜
h~’~9œRed Hat Linux ø:ÇÙ~’ÖZ={\ŒúDèÝèyÃauthenticatedÄ1
g½Æ4d‹H{Ù×~’‹Ç~•Dè~’{få •ýø:֋Çø:²èyMÒ
ÉÏÇø:Þ{~’jâE
èy{˜Óä
Øê{˜NISLDAPZHesiod u5Â~’fåÇ1ù²LDAPKerberos
ZSMB {˜ÄèyNF{CošŽÁ
Õ
˜*ó“ã¥Ý&~“\ÿ/{˜Óä{˜ê¥ÿÝ°ÿ“\ÿ/ÇÝóGNOME Lokkit Ǔ¥ ê
°ÿ݄ÿ“\ÇÝiNIS ZLDAP ó{dèy0ÒXúãŽ,3Û
ý9?X-û‰:š«X3{èy¡nlj:ê˜[&~èy{˜Óäu{˜YJèy¡n
,óÁÞéÄCošÇý{èy{˜ÓäÇ ÁÆÞ{Ìh\ => ø:÷˜ => è
yÇÝóshell +ØXTerm ÝGNOME ªàÄEœauthconfig-gtk ×éÄä•
©ý{ÇýÇóshell +Eœauthconfig ×
­
RñêèyǓ€Ç•#ÌÁýH
22.1.
~’få
~’få)üÞ‹Ç 1é~ 1ǚâÇk{8¸… '¢~ 1ǚâÇk
{… 'u88ǚâh½uRñǓ?a~•#
164
22.
èy{˜
C22-1. ~’få
1{ï,‰:êšÇ 1Ä{˜{1øÕ
• ¥?~’få — ” 1ué~ÖÁqÖ¥?EŸÇÃnscdÄÇ?{˜ÇóZsé
Ä
Œ“ãênscd žGÝb&YÇ 1H
• é~NIS |Ñ — ” 1u²ø:{˜ÄËzNIS qÖìuèy~’Z={NIS 0
’šâ{˜NIS•<u½NIS ­ZNIS qÖì˜*NIS qÖ얋ú½ÇEŸÇ
ÌAC/,Bu¯IÇ
Œ“ãêypbind žGÝb&YÇ 1H˜*é~êNIS |ÑÇportmap Zypbind
qÖÌúéÄÇÇ¢ÌóZsúé~
• é~LDAP |Ñ — YÇ 1u{˜ø:u/,LDAP 5Â~’fåšâ{
˜LDAP•<u½LDAP œÂäïDNZLDAP qÖì˜*&~TLS u
·Ëzú ÇQ€“\ÒÌú~u·˜ÉLDAP qÖì{=
Œ“ãopenldap-clients žGÝb&YÇ 1H
•LDAP {ÍõfåÇ>kÝRed Hat Linux k
• é~Hesiod |Ñ — YÇ 1u{˜ø:u,ÏÇHesiod jâE¥5ÂfåÇÝi~
’få
Œ“ãhesiod žGÝ
22.2.
èy
èy)üãŽ{˜dèy0é~ 1ǚâÇk{8¸… '¢~ 1ǚ
âÇk{… 'u88Ç
22.
èy{˜
165
C22-2. èy
1‰:êšÇ 1Ä{˜{1øÕ
• &~¶= — YÇ 1uó/etc/shadow©G¥X4/etc/passwd ©G²=
Ñ?¶=Â*¶=ó“ã¥úå€é~ÇÇ4·¢ôÅM?~uø:“\
u{D
Œ“ãêshadow-utils žGÝb&YÇ 1H•¶={ÍõfåÇ>k
ÝRed Hat Linux k¥{~’ZkY9
• &~MD5 = — YÇ 1ué~MD5 =ÇÌ㎟H256 Çn{=X3
4/ž{蕬Çn{=” ó“ã¥úå€ ÇÇ4·¢ôÅM?~uø
:“\u{D
• é~LDAP |Ñ — YÇ 1ut)ï{é~PAM {a~Ǔ&~LDAP uèyš
â{˜LDAP•<u½1fåÕ
&~TLS u·Ëz — &~Q€“\u·˜ÉLDAP qÖì{=
LDAP œÂäïDN — /,Ç{#/ÖÁÃDNÄu5Â~’få
LDAP qÖì — ½LDAP qÖì{IP Œ
Œ“ãêopenldap-clients žGÝb&YÇ 1H•LDAP {-<>kÝRed
Hat Linux k
• é~Kerberos |Ñ — YÇ 1ué~Kerberos èyšâ{˜Kerberos•<u
{˜Õ
­ — {˜Kerberos qÖì{­­4&~Kerberos {dDŽÇÝõÇKDCÇ
1ùLÞ0’Ä
KDC — ½B·ØI¥eÃKDCÄÇ4IKerberos ¦{åì
®qÖì — ½äqkadmind {®qÖì
Œ“ãkrb5-libs Zkrb5-workstation žGÝb&YÇ 1H•Kerberos {<>kÝRed Hat Linux k
• é~SMB |Ñ — ” 1{˜PAM &~SMB qÖìuèy~’šâ{˜SMB•<
u½Õ
Ó* — ½&~{SMB Ó*
•
•
•
•
•
•
•
166
•
22.
èy{˜
­;›ì — ½&~{SMB ­;›ì
22.3.
×qÇý
èy{˜Óä¤ê*–‹ŽÁ{×qÓäuäq×qÇý,1ú~ó{˜lý
Ýkickstart lý¥èy 1ó,22-1¥ú;QÃc
1
--enableshadow
--disableshadow
--enablemd5
--disablemd5
--enablenis
--disablenis
--nisdomain=<domain>
--nisserver=<server>
--enableldap
--disableldap
--enableldaptls
--disableldaptls
--enableldapauth
--disableldapauth
--ldapserver=<server>
--ldapbasedn=<dn>
--enablekrb5
--disablekrb5
--krb5kdc=<kdc>
--krb5adminserver=<server>
--krb5realm=<realm>
--enablesmbauth
--disablesmbauth
--smbworkgroup=<workgroup>
--smbservers=<server>
--enablehesiod
--disablehesiod
--hesiodlhs=<lhs>
Ãc
é~¶=
¢~¶=
é~MD5 =
¢~MD5 =
é~NIS
¢~NIS
½NIS ­
½NIS qÖì
~’fåé~LDAP
~’få¢~LDAP
LDAP é~TLS
LDAP ¢~TLS
èyé~LDAP
èy¢~LDAP
½LDAP qÖì
½LDAP äïDN
é~Kerberos
¢~Kerberos
½Kerberos KDC
½Kerberos ®qÖì
½Kerberos ­
é~SMB
¢~SMB
½SMB Ó*
½SMB qÖì
é~Hesiod
¢~Hesiod
½Hesiod LHS
22.
èy{˜
1
--hesiodrhs=<rhs>
--enablecache
--disablecache
--nostart
--kickstart
--probe
,22-1. ×q 1
167
Ãc
½Hesiod RHS
é~nscd
¢~nscd
X)Ý*Žportmapypbind Znscd qÖÇý"
Ç¢.²ú{˜
X+~’ŽÁ
æZ+d倊
" YJ 1¤,1óauthconfig {€ÒVÃmanÄÝóshell +Eœauthconfig --help uIt
168
22.
èy{˜
23.
…GQS®ÃMTAÄ{˜
…GQS®ÃMail Transport AgentÇMTAÄ4,Red Hat Linux ø:¥˜…G{÷Ǔ…
G~’S®ÃMail User AgentÇMUAÄǘEvolutionMozilla MailMuttÇú~uÝÖZU
ž…Gh~’,MUA ¥˜P…Gǔ…Gú˜tMTAÇl€MTA ²YP…G˜É
øïMTAdžtÇtHÇ{!ª˜ø)Ž
ý"~’XK®,ø:¥˜ž…GNjJĚ{ÖÝø:Ǔ,Ì&~/bin/mail ×
u²Ý9†“>å{…G˜Éýø:{Ê~’
Red Hat Linux 9 ØêÜÇMTAÕSendmail ZPostfix˜*ÜVþ“ãêÇsendmail Ò4å€
{MTA…GQS®#¦ì ãŽ~’ sendmail Ýpostfix *ø:{å€MTA
&~䕩ý{…GQS®#¦ìǓÇ{ø:ތ“ãredhat-switch-mail RPM ž
Gݘ*.&~CošÇýÇredhat-switch-mail-gnome žG݉ú“ã•“
ãRPM žGÝ{-<Ç>kݑV \I
éąGQS®#¦ìÇ ÁÆÞ{Ìh\=> ø:Óä => Íõø:Óä =>
…GQS®#¦ìÇÝóshell +ØXTerm ÝGNOME ªàÄ¥Eœredhat-switchmail ×
”Ç“ÌÄ5X =ø:4dóäq˜*ÇóäqǔǓÒÌóCošÜ*¥éÄÇ
˜C23-1Ä+˜*–‹5tXÇÇÒÌó©ýÜ*¥éě…GQS®#¦ì ó©ý
Ü*äqÇ&~redhat-switch-mail-nox ×
C23-1. …GQS®#¦ì
˜* h½u•#MTAÇú ¥{…GEŸÇÒÌóZsúéÄǙú ¥{…G
EŸÇÌú¢~ÇYøÇÇÒXÌóZsúé~Öú ¥{…GEŸÇúéÄÇÙDžGE
ŸÇú*ŽÇYøǕ#ÒÌÁý
•ž…GNFZMTA {-ûýîÇ>kÝRed Hat Linux k•MUA {-<Ç
>kÝRed Hat Linux œ 
170
23.
…GQS®ÃMTAÄ{˜
IV.
ø:{˜
ÿXê;›Ñ6¯1ù˜[,Red Hat Linux ø:ÞBøžGZmGfå€ÇY\I‰:êžD
{ø:{˜Ö
ø9
24.
25.
26.
27.
28.
29.
30.
31.
;›Ñ6¯ .................................................................................................................................. 173
~’Zk{˜ .......................................................................................................................... 177
Bøø:få .............................................................................................................................. 185
K\å{˜ .................................................................................................................................. 193
Ě{Ö .............................................................................................................................. 213
†“©G...................................................................................................................................... 219
ÿX...................................................................................................................................... 221
XÜL...................................................................................................................................... 227
24.
;›Ñ6¯
hÊ/~’Ã:Ê~’Äóý~9t®åÞÇÆ¢úG£Ü¡OY!Õ
1. Æ¢,1äqìJ/žÃäq{Ǔ
2. Æ¢,16¯ìJ/žÃ6¯{©GÃ/ž4~u6¯cc{O÷÷©GÄ
„•\Ç®å‹õÇ;›ÑÇõ ~’,1ó3-ó®åÞý~9ÇÙ¥ƒ½ó
6¯YJ©G{nťܑÇó;›Ñ~9{~’q\p‹ J©G`‘Ç~’
Õ=ÇÇ~9{~’ÒÌp‹YJ©G
¦ƒ#'ǚÇó;›Ñ~9{~’ÑúãŽäq/ž!•Ê~’{ǓuqÄ֘*X ó
äqÇYJqÄ,1úÝióCoš~’ŽÁ{h\ó”qÇý¥Ç,,;›Ñ6¯{Ǔ
ÝihaltpoweroffZreboot
24.1.
¢~/,Ctrl-Alt-Del å
•Lå€÷˜Ç/etc/inittab ©G½{ø:,ó;›Ñ&~[Ctrl]-[Alt]-[Del] E\u
?­éø:˜*.q\¢~Y1Ålj²/etc/inittab ©G¥Áq#ÄÕ:Ç
04óédzRÃ#ÄÕ
ca::ctrlaltdel:/sbin/shutdown-t3-rnow
iÇ,4.G£Ç/:Ê~’,;›Ñ&~[Ctrl]-[Alt]-[Del] u­éø:{Y¼,1
/,Á{Z½u²”Y!½ÉìJ~’&~Õ
1. óÞÁ+{/etc/inittab { q¥-a 1ǘÄ+Õ
ca::ctrlaltdel:/sbin/shutdown -a -t3 -r now
-a )“/shutdown ×V¯I/etc/shutdown.allow ©GÇ·¢óZ½¥RÌ
O”©G
2. ó/etc ø9¥OÇw)shutdown.allow {©Gshutdown.allow ©Ga”ïñ
ãŽ&~[Ctrl]-[Alt]-[Del] uø:{~’Ö/etc/shutdown.allow ©G&~ï,Â
*ǚqïñÖ~’ǘÄ+Õ
stephen
jack
sophie
Êâ1Þshutdown.allow ©G{¾ÇstephenjackZsophie úãŽ&~[Ctrl]-[Alt]-[Del]
u,;›Ñø:hYÇE\ú&~Ç/etc/inittab ¥{shutdown -a Ò̆
/etc/shutdown.allow ¥ïñ{~’ÃÝÊ~’Ä4dóŠ;›ÑÞ~9ê˜*~9V
4Ù¥ƒÇø:Ò̙ÖdÇø:;›ÑÞÒÌ+ñFØ>å
•shutdown.allow {-ûfåÇ>kÝshutdown {€ÒVÃmanÄ
24.2.
¢~;›ÑǓ6¯
ê¢~~’é;›ÑǓ{6¯Ça”1Ê~’üPäqÁ{×Õ
rm -f /etc/security/console.apps/*
174
24.
;›Ñ6¯
ó;›Ñ–‹úâ{¢¸ÃBIOS ZZsãñǓ{=–‹ú÷˜Ö[Ctrl]-[Alt]-[Delete] E
\–‹ú¢~֞ÍZ­÷–‹ú¢~ÄÇ,X.ãŽ[~’ó;›ÑÞäqY
Jå€,1,;›ÑÞ&~{×ÕpoweroffhaltZreboot
R>YJÅÇ1Ê~’üPäqÁ{×Õ
rm -f /etc/security/console.apps/poweroff
rm -f /etc/security/console.apps/halt
rm -f /etc/security/console.apps/reboot
24.3.
¢~ċ;›Ñ6¯
PAM pam_console.so ÜL®;›Ñ©G{Y!ZèyÕ{˜PAM {-<Ç>k
ÝRed Hat Linux kÄ˜*.¢~ċ{;›Ñ6¯ÇÝiǓZ©G{6¯Ç²
ċ/etc/pam.d ø9¥Z~pam_console.so {éѕÕ:1Ê~’&~Á{lýÒ
,1HtYø{Õ
cd /etc/pam.d
for i in * ; do
sed ’/[^#].*pam_console.so/s/^/#/’ < $i > foo && mv foo $i
done
24.4.
½B;›Ñ
ÜL&~/etc/security/console.perms ©Gug½ø:;›ÑÞ~’{Y
!”©G{ª:žÙÖ,1ö”©G1"Xòa~YJ+lÇ倩G¥‹q
åu˜Õ
pam_console.so
<console>=tty[0-9][0-9]* :[0-9]\.[0-9] :[0-9]
h ~ ’ ~ 9 € Ç Æ ¢ Ì ú Ë z t ì « ‹ Ö Á { ª à Ç  4 Ö Á ¡ ‘:0
Ýmymachine.example.com:1.0 {X qÖìǏ4¡‘/dev/ttyS0 Ý/dev/pts/2 {÷
÷å€÷˜¥ÇýŠ;›ÑZýX qÖìú½BýÇb4˜*.²Z#ù{ •
à=/dev/ttyS1 Þ{"ªàh*ýÇ,1²ÞÁq•Õ
<console>=tty[0-9][0-9]* :[0-9]\.[0-9] :[0-9] /dev/ttyS1
24.5.
&©G,,;›Ñ6¯
/etc/security/console.perms
©G¥{ìãÝ91qÕ
<floppy>=/dev/fd[0-1]*\
/dev/floppy/*/mnt/floppy*
<sound>=/dev/dsp*/dev/audio*/dev/midi*\
/dev/mixer*/dev/sequencer\
/dev/sound/*/dev/beep
<cdrom>=/dev/cdrom*/dev/cdroms/*/dev/cdwriter*/mnt/cdrom*
˜*‹Ç,1óY㰜U{é>h½{é¥ÄS{4th{÷
÷ž˜Ç,11YqÕ
<scanner>=/dev/scanner/dev/usb/scanner*
24.
;›Ñ6¯
175
ÃhlÇ>h½/dev/scanner {h4{·Ã$÷÷ÇX4{mcPÄìÄ
Y4‘Z‘Z4½B˜[ÿ˜ J©Gó/etc/security/console.perms ©G{!€
ã¯I¦1¡‘{éÕ
<console>0660<floppy>0660root.floppy
<console>0600<sound>0640root
<console>0600<cdrom>0600root.disk
l€ÇZ1¡‘{qÕ
<console> 0600 <scanner> 0600 root
hó;›Ñ~9€ÇÒÌúÉ£/dev/scanner ÷÷{ċYÇÙY!40600Ý,úÖ
UÄhÕ=€Ç”÷÷ÒÌúÊ~’Ä‹ÇY!Î40600ÃóRúÊ~’ÖUÄ
24.6.
ÙÇa~Ǔé~;›Ñ6¯
˜*.&ÙÇa~Ǔú;›Ñ~’6¯ÇfR{Z½ÒÌõJ
Dǐ‹×ó/sbin Ý/usr/sbin ¥{a~Ǔbó;›ÑÞ6¯ÇO$.äq{Ǔ
Œúâ?ó ÜÇø9¥wêÞÁ{G€Ç‰qÁ{Z½Õ
1. OÇ,{a~ǓØ1¾¥{fooÄt/usr/bin/consolehelper {ÓzÕ
cd /usr/bin
ln -s consolehelper foo
O©G/etc/security/console.apps/fooÕ
touch /etc/security/console.apps/foo
3. ó/etc/pam.d/ ø9¥foo qÖOÇPAM {˜©G)tÇ{;\04&~halt
qÖ{PAM {˜©G{‚ýǘ*.•#q{›Ç•”©GÕ
cp /etc/pam.d/halt /etc/pam.d/foo
ó Ç h ä q/usr/bin/foo Ç Ç Ò Ì ® ~consolehelperÇ ” × Ì 
Ï/usr/sbin/userhelper u è y ~ ’ è y ~ ’ Çconsolehelper Ì ® ¯ ~ ’ {
= à ¥/etc/pam.d/foo 4/etc/pam.d/halt © G { ‚ ý { › Ç d Ç Ç Ì  ‰ q
ó/etc/pam.d/foo ¥{×ÄÇl€&~ÊY!uäq/usr/sbin/foo
óPAM {˜©G¥Ça~Ǔ,1ú{˜&~pam_timestamp ÜLuÔÃ¥?Ä'ÄÕ{
Aha~ǓúéÄ?
Øêth{èy€ÃÊ=ÄÇÇ-©GÒÌúO
•Lå€÷˜ÇÄÕèyÌú¥?ÊI¨óYãÏÇó3̛¥äq{ÙÇ{˜&
~pam_timestamp {a~ǓÌď”~’èy— ~’XòQœÊ=
”ÜLúÝiópam žGÝ¥é~Y1ÕÇetc/pam.d/ ¥{PAM {˜©GŒÝi1
qÕ
2.
authsufficient/lib/security/pam_timestamp.so
sessionoptional/lib/security/pam_timestamp.so
‘Ç1auth >{qa”ó[auth sufficient qƒ€Ç1session >{qa”óÄ
‹session optional qƒ€
˜*{˜&~pam_timestamp {,ÁÆÞ{Ìh\•<éÄ{a~ǓúÄՏèyÇ
C)ÒÌ+óÁÆ{/K­Ã¥äq{4GNOME óÁ¢¸Äèy,πÃ倏ÊI
¨ÄǔC)ÒÌ>
~’,1/,šâC)? ƒèy 1uƒ¥?èy
176
24.7. floppy
24.
k
;›Ñ6¯
˜*„•ì«ÆOÇ;›Ñ6¯éX7~ljÉ:Ê~’
Øtø:žcPÄì{6¯ÇY
,1/,&~floppy kuHt&~ ½{Óä²~’tfloppy kÒ,1êY°
5
Øêǘ[&~gpasswd u²~’fred tfloppy k{¾Õ
[root@bigdog root]# gpasswd -a fred floppy
Adding user fred to group floppy
[root@bigdog root]#
óÇ~’fred Ò,1/,;›Ñ6¯ø:{žcPÄìê
25.
~’Zk{˜
~’®ì ㎆•ZÍøý~’Zk
&~~’®ìnjäqX =ø:Çä÷ÊYÇ?%“ãêredhat-config-users
RPM žGÝ,óÁéÄ~’®ìǚâÁÆÞ{Ìh\ => ø:÷˜ => ~’Z
kÇÝóshell +ØXTerm ÝGNOME ªàÄEœredhat-config-users ×
C25-1. Red Hat ~’®ì
†Ýiø:\\ý~’{ï,ǚâ~’)ü†Ýiø:\\ýk{ï
,ǚâk)ü
˜*‰¯I½{~’ÝkÇóœÂ,HìãEœÖÁ{Çn•[Enter]
Eݚâa~,Hì•<ú,H{ï,ÒÌú+
É~’Zk\“ÇšâïÖ~’ÝkÒ̕L”ï{fåú\“
Red Hat Linux ²500 1{~’ID âÉø:~’~’®ìå€X+ø:~’†Ý
iø:~’ó{ċ~’Ç,nh\¥R> D 1 => ,Hø:~’Zk
•~’Zk{ifåÇ>kÝRed Hat Linux k1ùRed Hat Linux ø:®é
¤C~.
25.1.
c~’
c~’Çšâ~’•<ǘC25-2 Ä+{=ÒÌñó7h{ãE
œc~’{~’ÖZ\Áó=Zh€=ãEœ==Œ–è‹Ç
n
" ~’{=֟ÇÙÆ|ÒÖXŽ4_tYÇ=Ç,X²Ž,~9t~’{BR¥·¢¤OFX
ÊâÄ#u =Ç=!P4ñjZOn{\
178
25.
~’Zk{˜
Ç~9shell˜*Xh½a” ýÇshellÇÒ>zIå€{/bin/bashå€{
Ìø94/home/~’Ö,1•#~’O{Ìø9ÇÝV/,R> OÌø9u
X~’OÌø9
˜* OÌø9Çå€{{˜©GÒÌ,/etc/skel ø9¥…›tc{Ìø9¥
Red Hat Linux &~~’ˆ|kÃuser private groupÇUPGÄ0™UPG 0™?Xݕ
#UNIX ÿ®k{)ï0ÖǐX,
ØêÇcÕ½•Lå€÷˜ÇšhOÇc~
’{ÇǦ~’Ö#3{ÕkÒÌúO˜*X.OYÇkÇR> ”
~’Oˆ|k
~’½~’IDÇ CӍ½~’ID˜*YÇ 1–‹ú Ç,Rh500 )€{
Ç,~~’ID ÒÌúI`Éc~’Red Hat Linux ²„•500 {~’ID âÉø:~’
šâh½uO”~’
C25-2. Oc~’
{˜Í°ÿ{~’auޘ=,ÏÄÇÝó~’€•~’auÇ>kݑ25.2 
²~’œtÍõ{~’k¥Çšâ~’)üÇ ”~’Çl€šâauó~
’au=¥Ç k)ü .t”~’œ{kÇ1ù~’{ÌkÇl€
šâh½
25.2.
•~’au
†ìÇ?~’{auǚâ~’)üÇ,~’ï,¥ ”~’Çl€ó•<h\¥š
âauÃÝV,nh\¥ qÄ => auÄÇ¡‘C25-3{=ÒÌñ
25.
~’Zk{˜
179
C25-3. ~’au
~’au=úIÅÄõÇQ)ü{ÙÕ
• ~’jâ — +ó~’{˜{äý~’få&~YÇ)üu•#~’{\Á
=Ìø9Ý~9shell
• BRfå — ˜*.tBRtHìû½†Ï,ÏÇ é~BR,Ïó
Ø{
ãQœ†Ï ~’BR.úà uÃÔ~’BRÇ,&~’Ãóø:~9
• =få — YÇ)ü+ê~’=!€'ú•#{†Ï›~’ó½jƒ€
•#=Ç é~=,Ϥ,1÷˜ãŽ~’•#=ƒ²,{jÇ~’ú
´·V•#=ƒ²,{jÇ1ùBR#XÙ׃²,{j
• k — .t~’œ{k1ù~’{Ìk
25.3.
ck
c~’kǚâk •<Ç¡‘C25-4{=ÒÌñEœck{Ö
ÁuOck½kIDÇ CӍ½kIDÇl€ GIDRed Hat Linux ²
„•500 {kID âÉø:k
šâh½uOkckÒÌñókï,¥
C25-4. Ock
ók¥~’Ç>kݑ25.4 
25.4.
•kau
†ì?k{auÇ,kï,¥ ”kÇl€ó•<h\¥šâau ÃÝ nh\©G => auÄÇ¡‘C25-5{=ÒÌñ
180
25.
~’Zk{˜
C25-5. kau
k~’)ü+êýJ~’4k{ÄÊ ÙÆ~’u²Æ¢œtk¥ÇÝR> ~’u²Æ¢,k¥#øšâh½Ýa~u•”k¥{~’
25.5.
×q{˜
˜*Íõ¡&~×qÓäÇÝV–‹“ãX =ø:Ç>ký91ȁu{˜~’Z
k
25.5.1.
~’
óø:Þ~’Õ
1. &~useradd ×uOÇý{~’BRÕ
useradd <username>
2. &~passwd ×Ç/,`=Z=šuÉìBRÃÕ
passwd <username>
useradd {×q 1ó,25-1¥úïñ
1
-c comment
-d home-dir
-e date
-f days
-g group-name
-G group-list
-m
-M
Ãc
~’{Õ:
~uRSå€{/home/username Ìø9
¢~BR{†ÏÇÂ*ÕYYYY-MM-DD
=,πÇBR¢~{jÃ¥½ê0ÇBRó=,πÌ
úÁ/¢~¥½ê-1Ç=,πÇBRRXÌú¢~Ä
~’å€k{kÖÝkRhÔk󍽌?óÄ
~’4Ù¥ÄÊ{ikÖÝkRhÃå€1i{Äï,Ç~Ï
RIÅÃk󍽌?óÄ
¥Ìø9X?óOÇ
XOÌø9
25.
~’Zk{˜
1
-n
-r
-p password
-s
-u uid
,25-1. useradd ×q 1
25.5.2.
181
Ãc
X~’O~’ˆ|k
OÇUID B•500 {XQÌø9{ø:BR
&~crypt ·{=
~’{~9shellÇ倏/bin/bash
~’{UIDÇnj4Õ{Ç%L•499
k
Éø:kÇ&~groupadd ×Õ
groupadd <group-name>
groupadd
{×q ó,25-2¥úïñ
1
Ãc
-g gid
k{GIDÇnj4Õ{Ç%L•499
-r
OB•500 {ø:k
-f
¥k.?óÇRñ?+FØÃkXÌú•#Ę*½
ê-g Z-f 1Çk.?óÇ-g 1ÒÌúƒQ
,25-2. groupadd ×q 1
25.5.3.
=š
“\åDÇF~’½Ï•#Æ¢{=4ҜƒÞY,1ó~’®ì{=få)ü
ÞÝö~’)t
,shell +~’{˜=,ÏÇ&~chage ×DZ€&~,25-3¥{ 1Ç1ù~’{
~’Ö
­
&~chage ×Ƕ=½úé~
1
-m days
-M days
-d days
Ãc
½~’Œ•#=Ä-Å{!èj˜*Š0,Ç=ÒXÌ
,Ï
½=‹H{!õjh” 1½{jÞ-d 1½{
jB•h{†ÏÇ~’ó&~”BRҌ•#=
½,1970 #1 Û1 †åÇ=ú•#{j
182
25.
1
-I days
-E date
-W days
,25-3. change ×q 1
~’Zk{˜
Ãc
½=,πÇBRúÃXÙ×{j˜*Š0ÇBRó=
,πÒXÌúÃ
½BRúÃ{†ÏdžÏÂ*YYYY-MM-DD¥X~†ÏÇ
,1&~1970 #1Û1†€²,{j
½=,Ï´·~’{j
" ˜*chage ׀›Ëø~’ÖÃÃÙÇ 1ÄÇÇÌ+h={šjŠ?äqYJjŠú•#
˜*ø:®Ê.t~’óD'~9÷˜=Ç~’{=,1ú÷˜Áý,ÏÇ,›~
’óD'~9€Áý•#Ç
›~’óD'~9t;›Ñ{˜=Ç>$¬1Z½Õ?Ç¥~’&~SSH NFu~
9ÇYÇ,ÇÒqX/
1. ÃÔ~’{= — ˜*~’X?óÇ&~useradd ×uOYÇ~’BRÇb4XÉ
Ç[=ÇÄ1DžÎúÃ
˜*=.²úé~Ç&~Á{×uÃÔÇÕ
usermod -L username
2. ›ý/=,Ï — EœÁ{×Õ
chage -d 0 username
”ײ=!€'•#{†Ï÷˜epochÃ1970#1Û1ÄX=,Ï|Q4d?
óÇYNJ̛=Áý,Ï
3. ÉBRà — HtYø{‹Ü«ž~0®Ê,1`Çð)=Ý8=
´·
X&~passwd u÷˜=ÇOÇÌ¢~¦¦{˜{=ý/,Ï
`ð)=Ç$¬1Z½Õ
• &~python ×uéÄ×qpython ‰:ìÇ{+˜Õ
Python 2.2.2 (#1, Dec 10 2002, 09:57:09)
[GCC 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
ó
+ÇEœ1×òpassword ¦Ä·{=Dzsalt ¦ÄôÜÇ
LUÝBUñjšnÝR"nǞ˜+ ab Ý+ 12ÄÕ
import crypt; print crypt.crypt("password","salt")
ÙQñ{·=¡‘•12CsGd8FRcMSM
• Eœ[Ctrl]-[D] uRñPython ‰:ì
• ²·={Qñ="t1×¥ÃXQ>—{8ÂÄÕ
usermod -p "encrypted-password" username
¦Ù`ð)=Ǥ,1&~1×u`8=Õ
•
usermod-p""username
25.
~’Zk{˜
183
Be
&~8=é~’Z®Êu€Ñi0"ÇbÇeQ‹Ç4‡{ˆu‘®0,1ÌD~9
?Ÿœø:>BY«…SÇM?®ÊóÉBRÃ{Dè~’.²)Pê~9ï÷
ÃX4ý«<YÇD'~9€Ç~’ÑÌú
+Qœc=
25.6.
éŸÇ{‰:
ïZ½Ü+êóé~¶={ø:Þ&~useradd juan ׀{<oÕ
1. ó/etc/passwd ©G¥cê‹juan {qYq{š˜Õ
• Ç1~’Öjuan >
• =ã‹ÇxÇ,+ø:&~¶=
• 500 Ý500 1Þ{UID úOÃóRed Hat Linux ¥Ç500 1{UID ZGID úâ
ø:&~Ä
• 500 Ý500 1Þ{GID úO
• , {GECOS fåú8¸
• juan {Ìø9ú÷/home/juan/
• å€{shell ú÷/bin/bash
2.
ó/etc/shadow ©G¥cê‹juan {qYq{š˜Õ
• Ç1~’Öjuan >
• ñó/etc/shadow ©G¥=ã{ÜÇçRÃ!!ÄÌÃÔBR
Õ
˜*ìÇ·{=&~ê-p )“ú”ÇYÇ=Ìú8˜ó/etc/shadow ©G¥~•”~
’{ q¥
•
3.
4.
=ú÷˜{X,Ï
ó/etc/group ©G¥cêq‹juan k{fåZ~’Ö#3{kw)~’ˆ|
kÃuser private groupĕ~’ˆ|k{-<Ç>kݑ25.1 
ó/etc/group ©G¥c{Yq䋘šÕ
• Ç1kÖjuan >
• =ã‹ÇxÇ,+ø:&~¶=
• GID ¦ïÞ/etc/passwd ©G¥~’juan q¥{#3
ó/etc/gshadow ©G¥cê‹juan k{qYq{š˜Õ
• Ç1kÖjuan >
• ñó/etc/gshadow ©G¥=ã{ÇçRÃ!ÄÌÃԔk
• ċÙÇãя8¸
184
25.
~’Zk{˜
~•~’juan {ø9úOó/home/ ø9ƒ”ø9~’juan Zkjuan ċÇ
{ÖUZ‰qY!~’juan ċċÙÇY!Ñúáý
6. /etc/skel/ ø9ÃÝ9å€~’÷˜Ä{©Gú…›tcO{/home/juan/ ø9¥
YÇø:ÞÒ?óêÇw)juan {úÃ{BRíÙÇǮʌ&~passwd ×
”BR`Ç=ÇÝV¤,1÷˜=š
5.
26.
Bøø:få
ó¦ó˜[{˜ø:ƒÇa”¦ó˜[Bøäý{ø:f垘Ça”w˜[Iñ
•8?{jÞ,~mcPÄì8-{jÞÇmcIK0™Ç1ùtóäqŸÇ{fåý9
RÿX˜[&~Ç;\×ZǓu,{Red Hat Linux ø:¥5ÂY¡få
26.1.
ø:ŸÇ
×+Çhø:ŸÇ{ï,ǔï,¥ÝiÙÆ~’p‹{ŸÇ+ŸÇ1ùÇ
¢{ċVÇ&~ps aux הï,4Ç·Õï,֦雀ÇÇ4óé~Y1×
tóäq{ŸÇ{OL˜*‰Ç/Íc{äqŸÇï,Ç&~ÁÃc{top ×
ps {QñÌiŸ3ŽÇO¤,¶ô¥—,Ç,1²ÇwQñÉless ×Õ
ps ax
ps aux | less
,1&~ps ×Zgrep ×{\u†ìŸÇ4dóäqž˜Çg½emacs 4dóä
qÇ&~ÁYÇ×Õ
ps ax | grep emacs
×+êhtäq{ŸÇ1ù•Ç¢{­fåÇÝiÇ¢{?ZCPU ~ޔï
,4]"-{4Ä{1
ØêÇtop {Qñ+¾Õ
top
00:53:01 up 6 days, 14:05, 3 users, load average: 0.92, 0.87, 0.71
71 processes: 68 sleeping, 2 running, 1 zombie, 0 stopped
CPU states: 18.0% user 0.1% system 16.0% nice 0.0% iowait 80.1% idle
Mem: 1030244k av, 985656k used, 44588k free,
0k shrd, 138692k buff
424252k actv, 23220k in_d, 252356k in_c
Swap: 2040212k av, 330132k used, 1710080k free
521796k cached
PID USER
15775 joe
14429 root
17372 joe
17356 joe
1 root
2 root
3 root
4 root
5 root
347 root
357 root
372 bin
388 root
389 root
414 root
476 root
PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
5 0 11028 10M 3192 S 1.5 4.2 0:46 emacs
15 0 63620 62M 3284 R 0.5 24.7 63:33 X
11 0 1056 1056 840 R 0.5 0.4 0:00 top
2 0 4104 4104 3244 S 0.3 1.5 0:00 gnome-terminal
0 0 544 544 476 S 0.0 0.2 0:06 init
0 0 0 0 0 SW 0.0 0.0 0:00 kflushd
1 0 0 0 0 SW 0.0 0.0 0:24 kupdate
0 0 0 0 0 SW 0.0 0.0 0:00 kpiod
0 0 0 0 0 SW 0.0 0.0 0:29 kswapd
0 0 556 556 460 S 0.0 0.2 0:00 syslogd
0 0 712 712 360 S 0.0 0.2 0:00 klogd
0 0 692 692 584 S 0.0 0.2 0:00 portmap
0 0 0 0 0 SW 0.0 0.0 0:00 lockd
0 0 0 0 0 SW 0.0 0.0 0:00 rpciod
0 0 436 432 372 S 0.0 0.1 0:00 apmd
0 0 592 592 496 S 0.0 0.2 0:00 automount
RñtopǕ[q] E
,1Ztop å&~{Ä×ÝiÕ
186
26.
×
×
[Space]
[h]
[k]
[n]
[u]
[M]
[P]
,26-1. Ä{top ×
Bøø:få
Ãc
Ãc
Áýmc+
+Ð϶ô
À‹ìŸÇÌú
+QœŸÇID 1ù
˜ÉÇ{fR
•#+{ŸÇjÞÌú
+QœjÞ
•~’\“
•?~Þ\“
•CPU ~Þ\“
" ¡‘•Mozilla ZNautilus {a~Ǔä÷"Ç¡Ãthread-awareÄ — õÇ"ÇÌúOuÿ®õÇ
~’ÝõÇ>FÇ%šÇ"Çы{PID•Lå€÷˜Çps Ztop +ÌÃð)Ä"dž
ċ"ÇÇ&~ps -m ×Ýótop ¥Eœ[Shift]-[H]\E
˜*Ztop #ÇÍõ¡&~CošŽÁÇ,1&~GNOME ø:)@ì,óÁÞéÄ
ÇÇ ÁÆÞ{Ìh\ => ø:Óä => ø:)@ìÝóX =ø:{shell +
Eœgnome-system-monitorl€ ŸÇï,)ü
GNOME ø:)@ìãŽótäq{ŸÇï,¥œÂŸÇǤ,1†Ä‹ŸÇp‹{Ÿ
ÇÝÙ×{ŸÇ
ê‰Íõ•ìŸÇ{<YÇ ”ŸÇÇl€šâÍõfå•<•”ŸÇ{ûÒÌ
+ó={Ž\
*ŽìŸÇÇ ”ŸÇÇl€šâˆeŸÇY‹Ï•ˆeé~’Qœ.Xò)ñ'a{
ŸÇ
•½ï{fåu\“Çšâ”ï{ÖÁfåú\“{ ïÌ~ý½º+
•Lå€÷˜ÇGNOME ø:);ìX+"Ǖ#YÇD 1Ç ö => D 1ǚâŸÇï,)üÇl€ +"ÇD 1¤ãŽ{˜Íc-Å֚ǟÇ
å€+{fåÖ1ùø:)@ìC,{Ôº
26.
Bøø:få
187
C26-1. GNOME ø:)@ì
26.2.
?~Þ
×+ø:{Ô®?Zb¦K{ÞÇ1ù.&~{8{á0{óX¥à
{Zú¥?{?jÞ
free
total
used
free shared buffers cached
Mem:
256812 240668
16144 105176
50520 81848
-/+ buffers/cache: 108300 148512
Swap:
265032
780 264252
free -m
×+{fåZÁ#3Çb4Ç1MB \ Ç"•ÝÖ
total
used
Mem:
250
235
-/+ buffers/cache:
Swap:
258
0
free
15
105
258
shared buffers cached
102
49
79
145
˜*Zfree #ÇÍõ¡&~CošŽÁÇ,1&~GNOME ø:)@ì,óÁÞéÄ
ÇÇ ÁÆÞ{Ìh\ => ø:Óä => ø:)@ìÝóX =ø:{shell +
Eœgnome-system-monitorl€ ŸÇï,)ü
188
26.
Bøø:få
C26-2. GNOME ø:)@ì
26.3.
df
©Gø:
×ç·ø:{c8-~ޘ*óshell +Eœêdf ×ÇÇ{Qñ¦Á#‘Õ
Filesystem
/dev/hda2
/dev/hda1
/dev/hda3
none
1k-blocks Used Available Use% Mounted on
10325716 2902060 6899140 30% /
15554 8656
6095 59% /boot
20722644 2664256 17005732 14% /home
256796
0 256796 0% /dev/shm
•Lå€÷˜Ç”Óä²IKLB+1KB {LÇ.~{Z,~{c8-1KB \ +
†1MB ZGB \ {fåÇ&~df -h ×-h 1S,|,ÖÂ*Ç{Qñ¡‘•Õ
Filesystem
Size Used Avail Use% Mounted on
/dev/hda2
9.8G 2.8G 6.5G 30% /
/dev/hda1
15M 8.5M 5.9M 59% /boot
/dev/hda3
20G 2.6G 16G 14% /home
none
251M 0 250M 0% /dev/shm
óIKï,¥Ç‹14/dev/shm”1øS,ø:{Š?©Gø:
du ×+úø9¥{©G&~{ï8-jޘ*óshell +Eœêdu ×ǚÇ
ø9{~ÞÑÌóï,¥+Çhø9Zø9{ZÌóï,{!€q¥ú+˜*
X.†šÇø9{~ÞÇ&~du -hs ×u&~|,Ö{Â*ïñø9~ÞZ&~du
--help ×u†Íõ 1
†Coš{ø:IKZc8-~ÞÇ&~ø:)@ì)üǘC26-2{Ž\Ä+
26.
Bøø:få
189
" •"c{{fåÇ>kݑ69
26.3.1.
);©Gø:
ØêÇw)diskcheck {ÓäǓÇÇ)@ø:Þ{8c8-jÞÊâ
{˜©G{½ÇhÇÝõÇcPÄìÞ{~ÞHt½ÇÝÇÇÌ5ø:®Ê˜ž
…G&~”Óänj“ãêdiskcheck RPM žGÝ
”Óä*šBcron Öäq
1#Þ,1ó/etc/diskcheck.conf ©G¥ú½BÕ
• defaultCutoff — hcPÄì{~ÞHtYǺIÇÇÒÌú緞˜Ç˜
*defaultCutoff = 90 ú½ÇcPÄì{~ÞHt90%Ǟ…GÒÌúñ
• cutoff[/dev/partition]
—
§ Ö I K {defaultCutoff ¾ ˜ Ç ˜
*cutoff[’/dev/hda3’] = 50 ú½Çh/dev/hda3 IK{~ÞHt50%Çdiskcheck Ò
Ì´·ø:®Ê
• cutoff[/mountpoint] — §Öñš{defaultCutoffž˜Ç˜*cutoff[’/home’] =
50 ú½Çh/home ñš{~ÞHt50%Çdiskcheck ÒÌ´·ø:®Ê
• exclude — ½diskcheck ƒQ{ÇÝõÇIKž˜Ç˜*exclude = "/dev/sda2
/dev/sda4" ú½Çó/dev/sda2 Ý/dev/sda4 {~ÞHt½{#äºI{<Y
Çdiskcheck RXÌ´·ø:®Ê
• ignore — ½ƒQ{ÇÝõÇ©Gø:ÇÂ*-x filesystem-typež˜Ç˜
*ignore = "-x nfs -x iso9660" ú½êÇónfs Ýiso9660 ©Gø:{~ÞHt!›
Çø:®ÊRXÌú´·
• mailTo — hIKÝñšHt!›Ç5ø:®Êñ´·{ž…GŒ
ž ˜ Ç ˜ *mailTo = "webmaster@example.com" ú  ½ ê Ç ´ · Ò Ì ú … Éwebmaster@example.com
• mailFrom — ½ž…GV{üPY‹Ï•ø:®Ê,Hudiskcheck {…G
ž˜Ç˜*mailFrom = "Disk Usage Monitor" ú½êǘÉø:®Ê{ž…G
{VÒ4c~Þ);ì
• mailProg —  ½ ˜ ž … G ´ · & ~ { … Ç “ ž ˜ Ç ˜ *mailProg =
"/usr/sbin/sendmail" ú½êÇSendmail ÒÌú~*…Ç“
˜*•#ê{˜©GÇX­céÄqÖÇOš'cron Öäq{Ṋ̃֔
{˜©GŒäqcrond qÖb‰qcron Ög½”EŸÇ4dóäqÇ&
~/sbin/service crond status ×M?óZséĔq֕óZsÄé
Äcron qÖ{-ûfåÇ>kݑ149
Red Hat Linux
1
26.4.
mG
˜*ó{˜mG±t¯ÇÝV4.ê‰{ø:¥‹ýJmGÇ,1&~mG¨
ìǓu+úæt{mGóóÁ¢¸éĔǓǚâÌh\ => ø:Óä
=>mG¨ìÇÝóshell +Eœhwbrowser˜C26-3Ä+ÇÇ+ê{c÷÷
žcmcPÄìZÇ¢{IKd÷÷+÷÷ø:÷÷1ù@ªšâ&}h\Þ
{¡/ÖÁNjfåÒÌú+
1.
•cron {-<>kݑ289
190
26.
Bøø:få
C26-3. mG¨ì
¤,1&~lspci ×uïÞċ{PCI ÷÷&~lspci -v ×uÜz-û{fåÇÝ&
~lspci -vv ×uÜzÍ-û{Qñ
ž˜Çlspci ×,1ú~ug½ø:@ª{›¢ÛnR1ù?LBÕ
01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 04) (prog-if 00 [VGA])
Subsystem: Matrox Graphics, Inc. Millennium G400 Dual Head Max
Flags: medium devsel, IRQ 16
Memory at f4000000 (32-bit, prefetchable) [size=32M]
Memory at fcffc000 (32-bit, non-prefetchable) [size=16K]
Memory at fc000000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at 80000000 [disabled] [size=64K]
Capabilities: [dc] Power Management version 2
Capabilities: [f0] AGP version 2.0
˜*Xwø:{›ÛÝnRÇlspci ,1ÐÏug½YJfå
26.5.
ÙÇýî
¦óÍõ•Bøø:få{#Ç>kïýî
26.5.1.
“ãê{©l
+êÇê¦ps å&~{ 1ï,
top {€ÒV— Eœman top u¦ó•top ZÇ{ 1{#
free {€ÒV— Eœman free u¦ó•free ZÇ{ 1{#
• ps --help
•
•
—
26.
Bøø:få
{€ÒV— Eœman df u¦ó•df ZÇ{ 1{#
{€ÒV— Eœman du u¦ó•du ZÇ{ 1{#
lspci {€ÒV— Eœman lspci u¦óÍõ•lspci ×ZÇ{Žõ 1{få
/proc — /proc ø9{Ž,1~uBøÍ-û{ø:få•/proc ø9{ifåÇ
>kÝRed Hat Linux k
• df
• du
•
•
26.5.2.
•
191
#V÷
Red Hat Linux
ø:®é¤C~; Red Hat, Inc. — ÝiǕ)@ýÍ{9
192
26.
Bøø:få
27.
K\å{˜
K\å{˜ÓäãŽ~’óRed Hat Linux Þ{˜K\åǔÓ䏑K\å{˜©GK\"
Xåø9ZK\,Hì
ØNÏ
,Çý9 )ÇRed Hat Linux å€&~CUPS K\ø:,{å€K\ø:LPRng …ú
Ø
ê˜*ø:4,1{&~LPRng {Red Hat Linux ¥ÿu{Çÿ,ÇXÌ&~CUPS u
SLPRngÖø:…Ì™&~LPRng
˜*ø:4,1{&~CUPS {Red Hat Linux Çýÿu{Çÿ,ÇÌâ{˜{èïÇ
ø:…Ì™&~CUPS
K\å{˜Óäê{˜CUPSÇê{˜LPRng K\ø:Êâ{ø:{˜½ÇÇÌ{
˜Ù×{K\ø:
&~K\å{˜Óänjä÷ÊYéÄYÇa~Ç“Ç ÁÆÞ{Ìh\ =>
ø:÷˜ => K\ÇÝEœredhat-config-printer ה×ÌÊâÇĉq{¢
¸4CošX =ø:¤4䕩ý{;›ÑuÄg½Ça”1Coš¤4©ýo*uäqÇ
“
¤,1/,óshell +Eœredhat-config-printer-tui u›K\å{˜Óä*ä•
©ý{Ǔäq
­
Xö/etc/printcap ©GÝ/etc/cups/ ø9¥{©GK\åEŸÇÃlpd ÝcupsÄóš'é
ÄÝ­céÄÇc{{˜©GÑÌúÄÕOhóK\å{˜Óä¥a~Ä)•#Ç{˜©GÌ
úÄÕO
˜ * ó & ~LPRngÇ ? . X & ~K \ å { ˜ Ó ä Ç K \ å Ç > ö/etc/printcap.local ©G/etc/printcap.local ©G¥{1ø–‹+óK\å{˜
Óä¥Çb4ÌúK\åEŸÇÖR˜*,1{Red Hat Linux ¥ÍcÇ?{{˜©
GÒÌúݦtúYÇǓ&~{cÂ*šhc{˜©GúÄÇÎ{˜©GÑÌúâ?
/etc/printcap.old
˜*ó&~CUPSÇK\å{˜ÓäXÌ+[–‹&~K\å{˜Óä{˜{èïÝá0Ö
X,ÇÇX̲Ǣ,{˜©G¥Íø
C27-1. K\å{˜Óä
194
27.
K\å{˜
,1{˜1¡n{K\èïÕ
• ýËz — †z/,?qÝUSB à=Ëzt®åÞ{K\å
• É{CUPS (IPP) — Ëztê/,TCP/IP d&~ÉK\NFŸœ{K\åÇ
‘ÁIPPþ˜ÇËztdÞÇäqCUPS {Red Hat Linux ø:{K\åÄ
• É{UNIX (LPD) — Ëztê/,TCP/IP dŸœ{ÙÇUNIX ø:Þ{K\åþ
˜ÇËztdÞÇäqLPD {Red Hat Linux ø:{K\åÄ
• É{Windows (SMB) — Ëzt/,SMB duá0K\å{ÙÇø:Þ{K\åþ
˜ÇËztMicrosoft Windows™ åìÞ{K\åÄ
• É{Novell (NCP) — Ëzt&~Novell’s NetWare db{ÙÇø:Þ{K\å
• É{JetDirect — /,HP JetDirect †zËztdX4®åÞ{K\å
­
˜*ÇcèïÝ•Ç?èïnja~YJ•#b&Ç¢H
šâa~•<uâ?Ä){•#?­céÄK\åEŸÇYJ•#óEŸÇú­cé
ÄXÌúUœ{˜©G$iÇ,1 qÄ => qÄ
27.1.
ýK\å
ýK\åǘ/,?qà=ÝUSB à=Ëzt{®åÞ{K\åǚâK\å{˜
ÓäÌ=Þ{cO•<ǘC27-2Ä+{=ÒÌñšâŸu™
C27-2. K\å
ó˜C27-3Ä+{=¥ÇóÖÁ©ýã¥QœÇÕÖÁK\åÖÁXÝ98ÂÇ
Œ1ñ>K\åÖÁ,1Ý9ñjá"Ã-ÄZ™"Ã_Ĥ,1Qœ•
K\å{;áÃcÇÙ¥,1Ý98Â
27.
K\å{˜
195
C27-3. èïÖÁ
šâꟀǘC27-4Ä+{=ÒÌñ, èï¡n¥ ýËzÇl
€ ÷÷YÇ÷÷/ž4/dev/lp0Ã?qK\åÄÝ/dev/usb/lp0ÃUSB K\åĘ*
ï,¥–‹÷÷ǚ⭷Ã÷÷u­c·Ã®åݚ⽛÷÷uCӍ½Çš
âŸu™
C27-4. ýK\å
Z4 K\å¡n>Ýt‘27.7 u™
27.2.
ÇIPP K\å
K\å4ËztäqCUPS {3dÞ{X3Linux ø:Þ{K\å•Lå€{˜ÇK\
å{˜Ó䨁du¯Iá0{CUPS K\åÔ 1,1/, qÄ => á0u
•#ÄċÉ{IPP K\åÑ1¨èï{o*ñóÌ=¥
˜*óK\qÖìÞ{˜ê3ÛÇnjêóŸœ{UDP à=631 ޘZzBËz˜
*ó0’ØK\>F{®åÄÞ{˜ê3ÛÇnjúãŽóà=631 ޘZzBË
z
˜*¢~êĨÕDž,1/,K\å{˜ÓäÌ=Þ{cO•<uÇÉ
{CUPS K\åÇÌ+ǘC27-2Ä+{=šâŸu™
ó˜C27-3Ä+{=¥ÇóÖÁ©ýã¥QœÇÕÖÁK\åÖÁXÝ98ÂÇ
Œ1ñ>K\åÖÁ,1Ý9ñjá"Ã-ÄZ™"Ã_Ĥ,1Qœ•
K\å{;áÃcÇÙ¥,1Ý98Â
IPP
196
27.
K\å{˜
šâꟀÇC27-5ÒÌñ, èï¡nh\¥ É{CUPS (IPP)
C27-5. ÇIPP K\å
~•1 1{©ýãÌñÕ
• qÖì — K\åÄËz{ÏÇåì{ÌåÖÝIP Œ
• 4» — tÏÇåìÞ{K\èï{4»
šâŸu™
Z4 K\å¡n>Ýt‘27.7 u™
­
É{IPP K\qÖìŒãŽuýø:{Ëz-<>kݑ27.13 
27.3.
ÏÇUNIX (LPD) K\å
ÏÇUNIX K\åǘËzó3dÞ{X3Linux ø:Þ{K\åǚâK\å{˜Ó
äÌ=Þ{cO•<˜C27-2Ä+{=ÒÌñšâŸu™
ó˜C27-3Ä+{=¥ÇóÖÁ©ýã¥QœÇÕÖÁK\åÖÁXÝ98ÂÇ
Œ1ñ>K\åÖÁ,1Ý9ñjá"Ã-ÄZ™"Ã_Ĥ,1Qœ•
K\å{;áÃcÇÙ¥,1Ý98Â
, èï¡nh\Þ É{UNIX (LPD)Çl€šâŸ
27.
K\å{˜
197
C27-6. ÏÇLPD K\å
~•1 1{©ýãÌñÕ
• qÖì — K\åÄËz{ÏÇåì{ÌåÖÝIP Œ
• èï — ÏÇK\åèïå€K\åèï/ž4lp
šâŸu™
Z4 K\å¡n>Ýt‘27.7 u™
­
ÏÇK\qÖìŒ,ýø:zIK\*-<>kݑ27.13.1 
27.4.
Samba (SMB) K\å
&~SMB NF6¯{K\åØËztMicrosoft Windows ø:Þ{K\åÄǚâK\
å{˜ÓäÌ=¥{cO•<˜C27-2Ä+{=ÒÌñšâŸu™
ó˜C27-3Ä+{=¥ÇóÖÁ©ýã¥QœÇÕÖÁK\åÖÁXÝ98ÂÇ
Œ1ñ>K\åÖÁ,1Ý9ñjá"Ã-ÄZ™"Ã_Ĥ,1Qœ•
K\å{;áÃcÇÙ¥,1Ý98Â
, èï¡nh\¥ É{Windows (SMB)Çl€šâŸ˜*K\åË
z{4Microsoft Windows ø:Ç YÇèï¡n
198
27.
K\å{˜
C27-7. SMB K\å
˜C27-7Ä+ÇSMB á0úÄ5t?ïñšâšÇá0ÖÁk{F>uj0ï,,j0
ï,¥ ÇK\å
˜*óI{K\喋óï,¥ñǚâ}{½•<~•1 1{©ýãÌñ
Õ
• Ó* — á0K\å{Samba Ó*{ÖÁ
• qÖì —á0K\å{qÖì{ÖÁ
• á0 — .~uK\{á0K\å{ÖÁYÇÖÁŒZÏÇWindows åìÞ½B
{Samba K\å{ÖÁ#3
• ~’Ö — 6¯K\åČ~9&~{~’ÖÁ~’óWindows ø:ތ
?óÇ?%Œ‹6¯K\å{Y!å€{~’Ö›nguestÃWindows qÖìÄ
ÝnobodyÃSamba qÖìÄ
• = — ó~’Ö㥍½{~’{=Ã¥‰Ä
šâŸu™l€ÇK\å{˜ÓäÌACËzá0K\å˜*YÇá0K\å‰~
’ÖZ=ÇÇé›UÌñu
+Qœ‹H{á0K\å{~’ÖZ=˜*½êth
{á0ÖÁǤ,1óY°•#ǘ*‰&~Ó*ÖÁuËzá0ÇÇ,1óYÇé›U
°½YÇé›UZšâ½•<€Ä+{=#3
Z4 K\å¡n>Ýt‘27.7 u™
´·
˜*‰&~~’ÖZ=ÇÇ¢úÒ©Ñ?óúÊ~’Zlpd ÖR{©G¥Yøǘ*/|ä÷
ÊYÇƢҋ,Üç~’ÖZ=½Y«<Y{Ç6¯K\å{~’ÖZ=a”X3•
ýRed Hat Linux ø:Þ{~’BR˜*Ç¢X3Ç ,ñ{“\&ÉÌ4™²GY{éK
\å{&~˜*qÖìÞ¤‹©Gá0ÇOF&~X3•K\åèï{=
27.5.
Novell NetWare (NCP) K\å
Novell NetWare (NCP) K\åǚâK\å{˜ÓäÌ=Þ{cO•<˜C27-1Ä
+{=ÌñšâŸu™
ó˜C27-3Ä+{=¥ÇóÖÁ©ýã¥QœÇÕÖÁK\åÖÁXÝ98ÂÇ
Œ1ñ>K\åÖÁ,1Ý9ñjá"Ã-ÄZ™"Ã_Ĥ,1Qœ•
K\å{;áÃcÇÙ¥,1Ý98Â
27.
K\å{˜
199
, èï¡nh\¥ É{Novell (NCP)
C27-8. NCP K\å
~•1 1{©ýãÌñÕ
• qÖì — K\åÄËz{NCP ø:{ÌåÖÝIP Œ
• èï — NCP ø:Þ{K\å{ÏÇèï
• ~’ — &~K\åČ~9{~’Ö
• = — 1Þ~’㍽{=
Z4 K\å¡n>Ýt‘27.7 u™
´·
˜*‰&~~’ÖZ=ÇÇ¢úÒ©Ñ?óúÊ~’Zlpd ÖR{©G¥Yøǘ*/|ä÷
ÊYÇƢҋ,Üç~’ÖZ=½Y«<Y{Ç6¯K\å{~’ÖZ=a”X3•
ýRed Hat Linux ø:Þ{~’BR˜*Ç¢X3Ç ,ñ{“\&ÉÌ4™²GY{éK
\å{&~˜*qÖìÞ¤‹©Gá0ÇOF&~X3•K\åèï{=
27.6.
JetDirect K\å
JetDirect K\åǚâK\å{˜ÓäÌ=Þ{cO •<˜C27-1Ä+{=Ò
ÌñšâŸu™
ó˜C27-3Ä+{=¥ÇóÖÁ©ýã¥QœÇÕÖÁK\åÖÁXÝ98ÂÇ
Œ1ñ>K\åÖÁ,1Ý9ñjá"Ã-ÄZ™"Ã_Ĥ,1Qœ•
K\å{;áÃcÇÙ¥,1Ý98Â
, èï¡nh\¥ É{JetDirectÇl€šâŸ
200
27.
K\å{˜
C27-9. JetDirect K\å
~•1 1{©ýãÌñÕ
• K\å —JetDirect K\å{ÌåÖÝIP Œ
• à= — JetDirect K\å)&K\*{à=å€à=9100
Z4 K\å¡n>Ýt‘27.7 u™
27.7.
K\ånRZˆe
êK\å{èï¡n€ÇZÒ4 K\ånR
ÌtÇZC27-10#‘{=˜*ǖ‹úÄ5tÇ,ï,¥ ÇK\å•L
—¢I¡,nh\¥ K\å{—¢{ÖÁšh êÇX3{—¢€ÇK
\ånRï,ÑÌúÍc,ï,¥ K\ånR
C27-10. K\ånR
M?{K\PÄǓ4Êâ ½{K\ånR {K\PÄǓ².K\{jâÿ®ÄK
\åꮉ{Â*„•ýK\å4†zËzt{®åÞ{ljÇK\PÄǓu
ÿ®˜ÉK\å{jâ
˜*ó{˜ÏÇK\åÃIPPLPDSMB ÝNCPÄÇÏÇK\qÖì/ž‹Ç{K\PÄ
Ǔ˜*ó{ý®åÞ i{K\PÄǓÇjâÒÌúõ',H?úݦÄK\
åÄî‰{Â*
27.
K\å{˜
201
h½jâXÌúõ',HÇD>ó—¢Þ /~ÇóK\ånRÞ Æ)K\
èïÝPostscript K\åa~ê•#€ÇK\<AuAèc{˜˜*A½ÇÏÇ
K\qÖì,–‹{˜K\PÄǓAøÊâÏÇK\å{—¢ZnRu K\PÄÇ
“Ça~•#€ÇòK\<A
" ,1óêK\å€ ÇX3{K\PÄǓ04ÇéÄK\å{˜ÓäÇ,ï,¥ K\
åǚâöǚâPÄǓ)üÇ ÇX3{K\PÄǓÇl€a~YJ•#
27.7.1.
h€K\å{˜
!€Z4h€{K\å{˜˜*÷˜thǚâa~uK\èïÇdǚ
â€Ru•K\å{˜
óÌ=¥šâa~•<uâ?{•#?­céÄK\åEŸÇa~ê•#€ÇK\
<Auh½{˜{thu-<>kݑ27.8 
˜*‰K\äý{ASCII ø\1i{nÃÝi~•†©ƒ¡{ªÓ¥{nÄnjÃú
{PÄǓ 1Ç? ½Ñ›Postscript-<>kݑ27.9 ˜*óêK
\èï€öÇǤ,1{˜’<LBƒ¡{ 1
27.8.
K\A
{˜êK\å€Ça”K\<Auh½K\åêtžäqK\AÇ,K\åï
,¥ .Aè{K\åÇl€,Anh\¥ \7{A
˜*•#êK\PÄǓÝ•êPÄǓ 1Ça”K\<AuAX3{{˜
C27-11. A 1
27.9.
•?K\å
ÍøìÇ?K\åÇ YÇK\åÇl€šâÓäyÞ{Íø•<K\åÒÌ,K\
åï,¥Íøšâa~•<uâ?•#?­céÄK\åEŸÇ
202
27.
K\å{˜
÷˜å€K\åÇ,K\åï,¥ K\åÇl€ ÓäyÞ{倕<å€K\å
C) Ìóï,¥å€K\å{å€ïñ
êK\å€Ç¤,1öÇ¢{÷˜,K\åï,¥ ö{K\åÇl€šâ
ö•<˜C27-12Ä+{QÙ)ü{=ÒÌñ”=Ý9 ¥K\å{hŠŸq
ê•#€Çšâh½•<šâK\å{˜ÓäÌ=¥{a~uâ?•#?­cé
ÄK\åEŸÇ
C27-12. öK\å
27.9.1.
èïÖÁ
27.9.2.
èï¡n
27.9.3.
K\åPÄǓ
27.9.4.
PÄǓ 1
­×ÖK\åݕ#Ç{;áÃcǕ#èïÖÁ)ü¥{Ššâh½u(ÃtÌ
=K\å{ÖÁa”ÌóK\åï,¥ú•#šâa~uâ?•#?­céÄK\åE
ŸÇ
èï¡n)ü+êóK\åZÇ{÷˜ ¥{èï¡n,1•#K\å¡nݝ
•#Ç{÷˜•€Çšâh½u(ÃtÌ=šâh½uâ?•#?­céÄK\
EŸÇ
Êâ {èï¡nÇX3{ 1Ìú+•YJ 1{ÃcÇ>k#a{K\å9

K\åPÄǓ)ü+êh&~{K\PÄǓ˜*Çú•#êǚâh½uÃt
Ì=šâa~uâ?•#?­céÄK\EŸÇ
PÄǓ 1)ü+ê°ÿK\å 1šÇK\PÄì{ 1ÌQ‹X3Ú~ 1‹Õ
27.
K\å{˜
203
˜*K\*{!€–‹,K\å¥fñþ˜Ç¦+})ЃÄÇa” ˜¦fR(FF)˜*ÇXå*~ÇAø ˜QˆefR(EOT)•<ìJK\
剘¦fR(FF)Z˜¦fR(FF)ÜVufñ!€YÇ 1é
•LPRng K\ø:‹~
• ˜*˜¦fRXå*~Ça” ˜QˆefR(EOT)>k1Þ{˜¦
fR(FF)\IYÇ 1óLPRng K\ø:¥,~
• ˜*K\PÄǓÃ#/ìJ˜ÉÇ{jâÇa” "½™j⏩ý‹ó
±t¯b YÇ 1˜*” 1ú ÇK\PÄǓÌ"½Ä‹˜ÉÇ{Ã#/{
j⏩ý˜*” 1ZR©ýݦÄPostscript 1åú ÇK\PÄǓÌ"½™
j⏩ýÇl€²ÇݦÄPostScript” 1óLPRng K\ø:¥‹~
• ˜*äýASCII ø\ƒi{nú˜ÉK\åe–‹úthK\؆©nÄÇa” ½Ñ›Postscript” 1½Ñ›:)ï{PostScript ÇO$Ç¢êúthK\
˜*K\åX|ÑACK\{Ç,1Aø YÇ 1¾˜Ç YÇ 1u²†©
K\t:†©K\åÞ
‰q1Þqĉõ“J-ø:óK\th±t¯Ç>X&~YÇ 1
¤‹Ç˜*K\åÃÿ®PostScript ÿ/3 Ç,1 YÇ 1” 1̲Çݦ
ÄPostScript ÿ/1
• GhostScript ½,H — ãŽóK\åÃÿ®ìÇPostScript ÿ/ ý,
HݦtPS ÿ/1ÝݦtPS ÿ/2” 1óCUPS K\ø:¥&~
êPostScript PÄǓb,~
• R©ýݦÄPostscriptúå€ ˜*K\åêK\©ýÇAøóK\©ý©l
R> ” 1uÀáK\-˜*&~{4CUPS K\ø:ÇÇÒX4Ç, {1øÇ
O©ý4ÌúݦÄPostScript
• ’<LB㎠’<{LB” 1ÝiUS LetterUS LegalA3 ZA4
• ‹H{,HK倏C˜*K\†©nÇ ja_JPdÇzBå€{C ª
K
• ŸÍ倏K\åå€YÇ 1,1ú•&~ÇWc¥{’<
•PÄǓ 1ǚâh½u(ÃtÌ=šâa~uâ?•#?­céÄK\E
ŸÇ
•
27.10.
â?{˜©G
h&~K\å{˜Óäâ?K\å{˜Ça~ǓÒÌOÇ{{˜©GYÇ{˜©
Gú~uO/etc/cupsø9¥{©GÃÝlpd ÖR{/etc/printcap ©GÄ,1&~×
q 1uâ?ÝÁ…K\å{˜Óä©G˜*/etc/cupsø9Ý/etc/printcap ©Gúâ
??Á…t3 ˜ÇK\å{˜ÒXÌúÁ…Y4„•K\åEŸÇóš'­céÄ
ÑÌ,K\å{˜Óä{O{˜©G¥OÇc{/etc/printcap ©GhOø:{˜
©G{÷PÇ&~10uâ?K\å{˜©G˜*ø:&~{4LPRng K\ø:Ç?
ó/etc/printcap.local ©G¥ê½›÷˜ÇÇa”úâ?÷Pø:{\I
â?{K\å{˜Ç1Ê~’üPEœÕ
/usr/sbin/redhat-config-printer-tui --Xexport > settings.xml
{{˜ÒÌúâ?tsettings.xml ©G¥
˜*YÇ©Gúâ?ÇÇ,1ú~’Á…K\å÷˜YóK\å{˜úÍø{<YÖÝó­c
“ãêRed Hat Linux {<YÖÝóõÇø:މ3K\å{˜{<Y/‹~ó­c
“ãÇYÇ©Ga”úâ?óX3{ø:ÞÁ…{˜Ç1Ê~’üPEœ1×Õ
204
27.
K\å{˜
/usr/sbin/redhat-config-printer-tui --Ximport < settings.xml
˜*.‹êÇ{˜©GÃ.²óø:Þ{˜êÇÝõÇK\åÄÇ?.ACsœÇ{
˜©GÇ?{{˜©GÒÌúƒ˜˜*.â?{˜Ç?óâ?{©G¥{˜Ç,
1&~1×u\?©GÃ1Ê~’üPÄÕ
/usr/sbin/redhat-config-printer-tui --Ximport --merge < settings.xml
l€Ç{K\åï,ÒÌÝ9óø:Þ{˜{K\å1ù,â?{{˜©G¥sœ{K\
å˜*sœ{{˜©G¥‹ÇZø:Þ?K\èï3Ö{èïÇsœ©G¥{èïÒ̧Ö
?K\å
sœê{˜©GÃX‹–‹merge ×ÄÇь­céÄEŸÇ˜*&~{
4CUPSljq1×Õ
/sbin/service cups restart
˜*&~{4LPRngljq1×Õ
/sbin/service lpd restart
27.11.
×q{˜
˜*–‹“ãXÇ?%X.&~䕩ý{ǓÇ,1/,×quK\åY«0ó
,lý¥Ýkickstart “ã{%post \I°K\å{i‹~
27.11.1.
ýK\å
K\åÇäqÕ
redhat-config-printer-tui --Xadd-local options
Ù 1‹Õ
--device=node
‘
ÉÄ&~{÷÷š¾˜Õ/dev/lp0
--make=make
‘
ÉÄIEEE 1284 MANUFACTURER nÝfoomatic jâE¥{K\嗢Û{ÖÁ
Ã¥Ãmanufacturer nÄ
--model=model
‘
ÉÄIEEE 1284 MODEL nÝfoomatic jâE¥ïñ{K\ånRÃ¥Ãmodel n
Ä
--name=name
‘
Ã, Äcèï{ÖÁ˜*–‹É½ÇRÌ&~ä•÷÷šÃ˜“lp0”Ä{ÖÁ
--as-default
Ã, IJÇ÷å€èï
˜*&~{4CUPS K\ø:Ãå€ÄÇóêK\å€Ç&~1×uéÄÝ­céÄK
\åEŸÇÕ
‘
27.
K\å{˜
205
service cups restart
˜*&~{4LPRng K\ø:ÇóêK\å€Ç&~1×uéÄÝ­céÄK\åE
ŸÇÕ
service lpd restart
27.11.2.
ÍøýK\å
¤,1/,×quÍøK\åèï
1Ê~’üPuÍøìÇK\åèïÇäqÕ
redhat-config-printer-tui --Xremove-local options
Ù 1‹Õ
--device=node
‘
ÉÄÄ~{÷÷šÇ˜/dev/lp0
--make=make
‘
ÉÄIEEE 1284 MANUFACTURER nÝfoomatic jâE¥{K\嗢Û{ÖÁ
Ã¥Ãmanufacturer nÄ
--model=model
ÉÄIEEE 1284 MODEL nÝfoomatic jâE¥ïñ{K\ånRÃ¥Ãmodel n
Ä
˜*&~{4CUPS K\ø:Ãå€ÄÇ,K\å{˜Óä{˜¥ÍøêK\å€Ç&~1×
u­céÄK\åEŸÇ&•#HÕ
‘
service cups restart
˜*&~{4LPRng K\ø:Ç,K\å{˜Óä{˜¥ÍøêK\å€Ç&~1×u­
céÄK\åEŸÇ&•#HÕconfiguration, restart the printer daemon for the changes to
take effect:
service lpd restart
˜*&~{4CUPSÇÍøêċK\å€ÇXK®òäqK\åEŸÇêljq1×
Õ
service cups stop
˜*&~{4LPRngÇÍøêċK\å€ÇXK®òäqK\åEŸÇêljq1×
Õ
service lpd stop
206
27.12.
27.
K\å{˜
®K\*
hÉK\åEŸÇ˜K\*þ˜,Emacs ¥K\©ý©GÝ,The GIMP ¥K\C
4ÄÇYÇK\*útK\"Xåèï¥K\"Xåèï4Çú˜ÉK\å{K\*
1ù•šÇK\>F{få{ï,YJfåÝiK\>F{ç՘>F{~’Ö˜
>F{ø:ÌåÖ*Rh
˜*äq{4CošóÁ¢¸ÇšâÁÆÞ{K\å®ìC)uéÄGNOME K\®
ìǘC27-13Ä+
C27-13. GNOME K\®ì
Ǥ,1,ÁÆÞéĚâÌh\ => ø:Óä => K\®ì
•#K\å÷˜ÇâK\åC)Çl€ auK\å{˜ÓäÒÌúéÄ
vâÇ.{˜{K\åu†K\"XåǘC27-14Ä+
C27-14. K\*ï,
R>óGNOME K\®ì¥ïñ{ì*Ç,ï,¥ ÇÇl€ ö => R>
©l
˜*K\"X奋Ù×{K\*ÇK\å/C),ÌñóóÁÁÆÞ{ÁÆ/K
­Ç˜C27-15Ä+OÇšÅÊÆæ'K\*Çvá{K\*,XÌ+C)
27.
K\å{˜
207
C27-15. K\å/C)
šâK\å/C)ÌéÄGNOME K\®ìu+hK\*{ï,
ÁÆÞ¤‹ÇK\®ìC),Nautilus K\ì©GǨ”©G{ ˜Ç²ÇV8t
ÁÆÞ{K\®ìC)˜C27-16Ä+{=ÒÌñšâh½u)K\YÇ©
G
C27-16. K\Dè=
,shell +†K\"Xå¥{K\*ï,ÇEœlpq ×!€qZ1Qñ#‘Õ
Rank Owner/ID
Class Job Files
Size Time
active user@localhost+902 A 902 sample.txt 2050 01:20:46
¾27-1. lpq {Qñ+¾
˜*.R>ìÇK\*Ç&~lpq ×IñYÇ*{RhÇl€&~lprm *Rh¾
˜Çlprm 902 ÌR>¾27-1Ä+{K\*Œä÷th{Y!bêR>ìÇK\*
ø:óK\åÄËz{®åÞ~9Ê~’ÇXR>úÙÆ~’){K\*
¤,1†z,shell +K\©G¾˜Çlpr sample.txt ×ÌK\sample.txt YÇ©
ý©GK\,Hìû½©G{¡n?RÙݦÄK\åꮉ{Â*
27.13.
á0K\å
K\å{˜Óä{á0{˜ 1Ջó&~CUPS K\ø:b‹H{˜LPRng {á
0Ç>kݑ27.13.1 
ãŽdÞX3®åÞ{~’K\t{ø:Þw)á0ÃsharingÄ{K\å•å€÷˜Ç
&~K\å{˜Óä{˜{K\åX4á0K\å
208
27.
K\å{˜
á0Ç{˜ê{K\åÇéÄK\å{˜ÓäÇ,ï,¥ ÇK\ål€ qÄ
=> á0
Õ
˜*–‹ K\åÇqÄ => á0+ø:)Œ{á0 1ÇÇ¢Ä+óqÄÙ
)ü¥
óèïÙ)üÞÇ &èï,úÙÆ~’¼~{ 1
C27-17. èï 1
êá0èï€Ç•Lå€÷˜ÇċÌåÑÌúãŽK\tá0K\åãŽdÞ{ċ
ø:ÑêK\tèï¥,ÌiˆÇ/4óø:†zËztÉ{<YM?•#Y
Ç 1Ç04Õ Ä‹Ìåǚâö•<u+˜C27-18Ä+{=
˜*óK\qÖìÞ{˜ê3ÛÇnjêóŸœ{UDP à=631 ޘZzBËz˜
*ó0’ØK\>F{®åÄÞ{˜ê3ÛnjúãŽóà=631 ޘZzBË
z
27.
K\å{˜
209
C27-18. ãŽ{Ìå
ž)üÄ‹K\å{˜÷˜ÇÝi JK\å{˜Óä¥Xt{K\åÙ¥‹ÜÇ 1Õ
C27-19. ø:)Œ{á0 1
•
•
įIÏÇá0èï — úå€ YÇ 1é~IPP ¨ÇY?›øhdÞÙÇå
ìBÇ¢p‹{èïÇYJèïÌúÄtø:{K\åï,¥Ö„IPP ¨Ä{
K\åX‰i{{˜” 1XÄá0ýø:Þ{˜{K\å
é~LPD NF — ” 1ãŽK\å&~cups-lpd qÖ,{˜&~LPD NF{0’¥z
BK\*cups-lpd qÖ4«xinetd qÖ
´·
˜*é~ê” 1Ç,LPD 0’zBt{ċÌå¥{ċK\*ÑÌúzI
27.13.1.
&~LPRng á0K\å
˜*äq{4LPRng K\ø:Ç,1Cӏ{˜á0ãŽdÞ{ø:K\tRed Hat
Linux ø:Þ{˜{K\åÇ&~1Z½Õ
210
27.
K\å{˜
O/etc/accepthost ©GóYÇ©G¥Ç.ãŽK\6¯{ø:{IP ŒÝÌ
å֚qÇIP ÝÌåÖ
2. ó/etc/lpd.perms ¥R>1q{Õ:nRÕ
ACCEPT SERVICE=X REMOTEHOST=</etc/accepthost
3. ­céÄEŸÇu&•#HÕ
1.
service lpd restart
27.14.
#¦K\ø:
#¦K\ø:ÇäqK\åø:#¦ìǓ ÁÆÞ{Ìh\ => ø:÷˜ =>
Íõø:÷˜ => K\åø:#¦ìÇÝóshell +ØXTerm ÝGNOME ªàÄE
œredhat-switch-printer ×
YÇǓÄ5X =ø:4dóäq˜*ÇóäqÇǓÒÌóCošÜ*¥éÄÇ
˜C27-20Ä+˜*X –‹ú5tÇǓÒÌó©ýÜ*¥éěó©ýÜ*¥éÄÇ
“Ç&~redhat-switch-printer-nox ×
C27-20. K\åø:#¦ì
LPRng ÝCUPS K\ø:óRed Hat Linux 9 ¥ÇCUPS 4å€{K\ø:˜*“ã
êÇK\ø:ÇÇÒ4Ä+{ 1
˜* h½u•#K\ø:Ç ½{K\EŸÇÒêóZsúéÄǙ ½{K\
EŸÇÌú¢~ÇO$ÇXÌóZsúéÄ ½{K\EŸÇý/úé~Ǚ ½{K\
EŸÇý/ú*~ÇO$•#ÌÁýH
27.15.
ÙÇýî
ê‰Íõ•óRed Hat Linux ÞK\{fåÇ>kïýî
27.
K\å{˜
27.15.1.
211
“ãê{©l
— /etc/printcap K\å{˜©G{€ÒV
ãŽ,×qK\©G{lpr ×{€ÒV
man lpd — LPRng K\åEŸÇ{€ÒV
man lprm — ~u,LPRng "Xåèï¥ÍøK\*{×qÓä{€ÒV
man mpage — ~uó<’ÞK\õ{×qÓä{€ÒV
man cupsd — CUPS K\åEŸÇ{€ÒV
man cupsd.conf — CUPS K\åEŸÇ{˜©G{€ÒV
man classes.conf — CUPS ¡/{˜©G{€ÒV
• man printcap
• map lpr
•
•
•
•
•
•
27.15.2.
•
•
—
‹~{5
Ý9êLޕóLinux ÞK\{få
http://www.cups.org/ — •CUPS {©lFAQZcª
http://www.linuxprinting.org — GNU/Linux Printing
212
27.
K\å{˜
28.
Ě{Ö
óLinux ¥ÇÖ,1ú{˜ó½{-㍽{†ÏÝø:²þñބ•½{jÞ
ÄäqRed Hat Linux ½{˜êé­ø:Ö{äqÇ1"&ø:êúÍcž˜Ç
úlocate ×&~{slocate jâEš†ÑúÍcø:®Ê,&~Ě{Öu‰q½Ï÷
P);ø:äq½›lý
Red Hat Linux ±QÇĚÖ{ÓäÕcronanacronatZbatch
28.1. cron
4Ç,1~uÊâ-†ÏÛPhÏ{\u®Ý魅Ö{‰q{EŸÇ
"½ø:љäq˜*hìÖú®Ýø:XóäqǔÖÒXÌú‰qÊâ
-ã:h#-u{˜ÖÇ>kݑ28.2 ®Ý'u{ÖÇ>kݑ28.3 
&~cron qÖnj“ãêvixie-cron RPM žGÝÇ%Œóäqcrond qÖ
g½”žGÝ4d.“ãÇ&~rpm -q vixie-cron ×g½”qÖ4dóäqÇ&
~/sbin/service crond status ×
cron
cron
28.1.1.
cron
{˜cron Ö
{Ì{˜©G4/etc/crontabÇÇÝiÁqÕ
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
q4~u{˜cron Öäq¢¸{#ÞSHELL #Þ{Š·ªø:&~ýÇshell ¢¸
ÃóYǾ°4bash shellÄÖPATH #Þ½B~u‰q×{4»cron Ö{Qñú…
ÉMAILTO #Þ½B{~’Ö˜*MAILTO #Þú½B8¸nÃMAILTO=""ÄǞ…G
ÒXÌúñHOME #Þ,1~u÷˜ó‰q×Ýlý&~{Ìø9
/etc/crontab ©G¥{šqÑS,1ÖÇÇ{Â*4Õ
minute hour day month dayofweek command
I¨Ç,0 t59 ƒ-{[rj
BÇ,0 t23 ƒ-{[rj
day — †ÏÇ,1 t31 ƒ-{[rjØ*½êÛPnj4”ÛP{‹H†ÏÄ
month — ÛPÇ,1 t12 ƒ-{[rjÃÝ&~ÛP{]©;U˜janfeb Ä
dayofweek — hÏÇ,0 t7 ƒ-{[rjÇY°{0 Ý7 S,hφÃÝ&~hÏ{]©;
U˜sunmon Ä
• minute
• hour
•
•
•
—
—
214
28.
Ě{Ö
— ‰q{×Ã×,14ls /proc >> /tmp/proc ƒ¡{×Ç,14‰q
qU{lý{×Ä
ó1Þ[Š¥ÇhRÃ*Ä,1~uS,ċ‹H{Šž˜ÇÛPŠ¥{hR?›øówÙ
ǛÕG€šÛщq”×
rj-{á"Ã-č½Çrj)Œž˜Ç1-4 ?›ørj1234
~ÏRÃ,ÄÅ{ø½Çï,ž˜Ç3, 4, 6, 8 )ÒYÇ½{rj
tR"Ã/Ä,1~u½-ŪGó)Œ€Þ/<integer> ?›øó)Œ,1!
,integerž˜Ç0-59/2 ,1~uóI¨ã½BšÜI¨-ŪGŠ¤,1ZhRå
&~¾˜Ç*/3 {Š,1~óÛPã¥,+š®ÇÛäq'Ö
>³RÃ#Ä{q4Õ:ÇXÌúÿ®
˜ ó/etc/crontab © G ¥ Ä D Ç Ç & ~run-parts l ý u ‰
q/etc/cron.hourly/etc/cron.daily/etc/cron.weekly Z/etc/cron.monthly ø
9¥{lýÇYJlýú#ašBš†š±ÝšÛ‰qYJø9¥{©Ga”4shell
lý
˜*ìcron ։Êâ®Ýu‰qÇX4šBš†š±ÝšÛ‰qÇÇ,1ú
t/etc/cron.d ø9¥”ø9¥{ċ©G&~Z/etc/crontab ¥ø{ª)¾>k
D¾28-1
• command
# record the memory usage of the system every monday
# at 3:30AM in the file /tmp/meminfo
30 3 * * mon cat /proc/meminfo >> /tmp/meminfo
# run custom script the first day of every month at 4:10AM
10 4 1 * * /root/scripts/backup.sh
¾28-1. crontab {¾
Ê~’1i{~’,1&~crontab Óäu{˜cron Öċ~’½B{crontab Ñúâ?
ó/var/spool/cron ø9¥Ç?&~OÇ¢{~’üPu‰q1ì~’üPO
Çcrontab 1øÇ~9”~’Çl€Eœcrontab -e ×Ç&~„VISUAL ÝEDITOR ¢
¸#ލ½{öìuö”~’{crontab”©G&~{Â*Z/etc/crontab #3
hécrontab Ä){•#úâ?€Ç”crontab ©GÒÌÊâ”~’Öúâ?Ç?Uœ©
G/var/spool/cron/username ¥
cron EŸÇšI¨Ñ5†/etc/crontab ©Getc/cron.d/ ø91ù/var/spool/cron
ø9¥{•#˜*ê•#ÇÇ¢ÒÌúñœ?YøÇhìÇcrontab ©G•#€ÒX
­céÄEŸÇê
28.1.2.
;ݎcron {&~
Z/etc/cron.deny ©Gú~u!›écron {&~YÜÇ&~;›©G{
Â*Ñ4šqÇ~’ÜÇ©GÑXãŽ8˜*&~;›©Gú•êÇcron EŸÇ
ÃcrondÄXú­é&~;›©Góš'~’ÝÍø1cron ÖÑÌúÖR
ÃX&~;›©G¥{½˜[ÇÊ~’Ñ4,1&~cron
˜*cron.allow ©G?óǐ‹Ù¥ïñ{~’búãŽ&~cronÇ?%cron.deny ©GÌú
ƒQ
˜*cron.allow ©GX?óÇċócron.deny ¥ïñ{~’Ñú¢Ž&~cron
/etc/cron.allow
28.
Ě{Ö
28.1.3.
215
éÄZ*ŽqÖ
é Äcron q Ö Ç & ~/sbin/service crond start × * Ž ” q Ö Ç &
~/sbin/service crond stop ×M?óZséĔq֕˜[óZsÄé
Äcron qÖ{-<Ç>kݑ149
28.2. anacron
anacron 4Zcron #‘{Ö®ÝìǐX,Ç?XFø:љäqÇ,1~uäq/ž
„cron äq{š†š±ZšÛ{*
&~anacron qÖnj“ãêanacron RPM žGÝÇ%anacron q֌óäq
g½”žGÝ4dú“ãÇ&~rpm -q anacron ×g½”qÖ4dóäqÇ&
~/sbin/service anacron status ×
28.2.1.
anacron
{˜anacron Ö
Öúïó{˜©G/etc/anacrontab ¥©G¥{šqÑS,1ÖÇÂ*4Õ
period delay job-identifier command
׉q{ªGÃjÄ
ÒÔ-ÃI¨Ä
• job-identifier — Ö{ÃcÇ~óanacron {>å¥Ç?**-©G{ÖÁǐ
Ýi:8¸{nÃøR"iÄ
• command — ‰q{×
镚1ÖÇanacron g½”Ö4d.ó{˜©G{period 㥍½{Ï-ú‰q
ê˜*ÇóɽÏ-¤–‹ú‰qÇanacron ÌVdelay 㥍½{I¨jÇl€‰
qcommand 㥍½{×
ÖqĀÇanacron ó/var/spool/anacron ø9{-©G¥9†Ï‹†Ïú
9ÃÃ-ÄÇ%job-identifier {Šú~*-©G{ÖÁ
Zcron {˜©GøÇSHELL ZPATH ƒ¡{¢¸#Þ,1ó/etc/anacrontab ©G{\½
B
å€{{˜©GåuZ1#‘Õ
• period
• delay
—
—
# /etc/anacrontab: configuration file for anacron
# See anacron(8) and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# These entries are useful for a Red Hat Linux system.
1
5
cron.daily
run-parts /etc/cron.daily
7
10
cron.weekly
run-parts /etc/cron.weekly
30 15
cron.monthly
run-parts /etc/cron.monthly
C28-1. å€{anacrontab
216
28.
Ě{Ö
˜óC28-1 ¥ÄDÇ{˜Red Hat Linux anacron {ø{4h⚆š±ZšÛ{cron Ö
Ñúäq
28.2.2.
éÄZ*ŽqÖ
é Äanacron q Ö Ç & ~/sbin/service anacron start × * Ž ” q Ö Ç &
~/sbin/service anacron stop ×M?óZséĔq֕óZsÄé
Äanacron {-<Ç>kݑ149
28.3. at
Zbatch
Zanacron ú~u®Ý­…{ÖÇat ×ú~uó½-®Ý'u{Öbatch
×ú~uóø:²þñÞ\t0.8 1‰q'u{Ö
&~at Ýbatch ×nj“ãêat RPM žGÝÇ?%atd q֌óäqg½”
žGÝ4dú“ãêÇ&~rpm -q at ×g½”qÖ4dóäqÇ&~/sbin/service
atd status ×
cron
28.3.1.
{˜at *
ó썽-®Ý1'u*ÇEœat time ×Y°{time 4‰q×{-
time kj,14ÁÂ*¥[«Õ
• HH:MM Â*— ž˜Ç04:00 S,4:00AM˜*-.,ÇÇÒÌó‘{Y-‰q
• midnight — S,12:00AM
• noon — S,12:00PM
• teatime — S,4:00PM
• ]©ÛֆÏ#PÂ*— ž˜ÇJanuary 15 2002 S,2002 #1 Û15 †#P,‹,Ã
• MMDDYYMM/DD/YYÝMM.DD.YY Â*— ž˜Ç011502 S,2002 #1 Û15 †
• now + -— -1minuteshoursdaysÝweeks \ ž˜Çnow + 5 days S,×a
”ó5 ƒ€{$$/‰q
-Œú½Çzø4,‹,Ã{†Ï•-Â*{-<Ç>Ý
Ö/usr/share/doc/at-<version> /timespec ©ý©G
Eœêat ×ZÇ{-kj€Çat> +ÒÌñEœ‰q{×Ǖ[Enter] EÇl€
EœCtrl-D,1½õ×Ç04Eœš×€•[Enter] EEœÄ‹×€Ç
•[Enter] EݜÇ8qÇl€òEœCtrl-DÝVÇ,1ó
+€Qœshell lýÇólý
{šq€•[Enter] EÇl€ó8qÿEœCtrl-D uRñ˜*Qœ{4lýÇÄ~{shell ÒÌ
4~’{SHELL ¢¸#Þ¥÷˜{ŠÇ~’{~9shellÇÝ4/bin/shÃ&~!{Ä
˜*Y×ÝlýACó)ïQñ¥+fåǔQñÌ~ž…G0*ú…É~’
&~×atq u†Väq{*-<>kݑ28.3.3 
at ×{~êú›Õ-<>kݑ28.3.5 
Ě{Ö
28.
28.3.2.
{˜batch *
28.3.3.
†Väq{*
28.3.4.
ÙÇ{×q 1
217
óø:²þñÞ\t0.8 1‰qì1'u{ÖÇ&~batch ×
Eœbatch ׀Çat> +ÒÌñEœ‰q{×Ǖ[Enter] EÇl€EœCtrl-D
,1½õ×Ç04Eœš×€•[Enter] EEœÄ‹×€Ç•[Enter] Eݜ
Ç8qÇl€òEœCtrl-DÝVÇ,1ó
+€Qœshell lýÇólý{šq€•[Enter]
EÇl€ó8qÿEœCtrl-D uRñ˜*Qœ{4lýÇÄ~{shell ÒÌ4~’{SHELL ¢¸
#Þ¥÷˜{ŠÇ~’{~9shellÇÝ4/bin/shÃ&~!{Äø:²þñÞ\t0.8
1ÇY×ÝlýÒÌú‰q
˜*Y×ÝlýACó)ïQñ¥+fåǔQñÌ~ž…G0*ú…É~’
&~×atq u†Väq{*-<>kݑ28.3.3 
batch ×{~êú›Õ-<>kݑ28.3.5 
†Väq{at Zbatch *Ç&~atq ×Ç+ïVäq{*ǚ1*3
âqšq{Â*Ñ4Õ*Rh†ÏB*¡/1ù~’Ö~’†Æ¢
{*˜*Ê~’‰qatq ×Çċ~’{\\*ÑÌú+
at
Zbatch {ÙÇ×q 1ÝiÕ
1
Ãc
,©G¥ÖR×Ýshell lýÇ:ó
+€½Ç¢
-m
ó*qĀÇÉ~’˜ž…G
-v
+*Rú‰q{-
,28-1. at Zbatch {×q 1
-f
28.3.5.
;ݎat Zbatch {&~
28.3.6.
éÄZ*ŽqÖ
/etc/at.allow Z/etc/at.deny ©G,1~u!›éat Zbatch ×{&~YÜÇ&~;
›©G{Â*Ñ4šqÇ~’ÜÇ©GÑXãŽ&~8¸n˜*&~;›©Gú•
êÇat EŸÇÃatdÄXú­éš'~’AC‰qat Ýbatch ×Ç&~;›©GÑÌ
úÖR
XX&~;›©G˜[½ÇÊ~’Ñ4,1‰qat Zbatch ×
˜*at.allow ©G?óǐ‹Ù¥ïñ{~’b&~at Ýbatch ×Çat.deny ©GÌúƒ
Q
˜*at.allow ©GX?óÇċóat.deny ©G¥ïñ{~’Ñú¢Ž&~at Zbatch ×
éÄat qÖÇ&~/sbin/service atd start ×*Ž”qÖÇ&~/sbin/service
atd stop ×OFóZséĔq֕óZsÄéÄat qÖ{-<Ç>k
ݑ149
218
28.4.
28.
Ě{Ö
ÙÇýî
ê‰Íõ•{˜ÄšÖ{#Ç>kÝïýî
28.4.1.
“ãê{©l
{€ÒVÃmanÄ— écron {c
{€ÒVÃmanÄǑ1 Z‘5 9— ‘1 9{€ÒVÝ9écrontab ©G{c
‘5 9Ý9©G{Â*Ç1ùJ)¾
/usr/share/doc/at-<version>/timespec Ý9ê•,cron *½{-Â*{Í
-ûfå
anacron {€ÒVÃmanÄ— éanacron ZÇ{×q 1{Ãc
anacrontab {€ÒVÃmanÄ— éanacron {˜©G{–c
/usr/share/doc/anacron-<version>/README — Ãcêanacron ùÙ~E
at {€ÒVÃmanÄ— éat Zbatch ×1ùÇ¢{×q 1{Ãc
• cron
• crontab
•
•
•
•
•
29.
†“©G
†“©GÃLog filesÄ4Ý9•ø:>å{©GÇÝiXqÖóø:Þäq{a~Ǔ
X3{†“©GñX3{f徘Nj{4å€{ø:†“©GNj{~•“\>åÇ
‹{ñcron Ö{†“
hóACfäZ‰ûø:¯Ç˜ACñœXPÄǓݯIéø:™²GY{&~èC
dž“©GÌi‹~ý9ÿXtý°V¯I†“©Gǘ[††“©GÇ1ù󆓩G
¥†
ìJ†“©Gúw)syslogd {EŸÇ;›úsyslogd ‘{†“>åï,,1
ó/etc/syslog.conf {˜©G¥It
29.1.
½ †“©G
29.2.
††“©G
õj†“©G •/var/log ø9¥ìJǓ˜httpd Zsamba ó/var/log ¥‹\Õ{?8Ç
¢{†“©G{ø9
Õ?dž“©Gø9¥Ì‹õǀÁQ‹j{©GYJ©G4󆓩Gú¬¢O
{†“©Gú¬¢&~ÇO$©GXÌ#zÔLlogrotate žGÝ¥Ý9ÇêÄÊ
â/etc/logrotate.conf {˜©GZ/etc/logrotate.d ø9¥{{˜©Gu¬¢†“©G
{cron ֕Lå€{˜Ç†“š±Ñú¬¢Ç?ú⏱ƒÈ
õj†“©G&~©ýÂ*,1&~[©ýöì˜Vi ÝEmacs u†Ç¢ìJ†“
©G,1úø:Þċ~’†ÖX,ljp‹ÊYuÝÖõj†“©G
óÄ{]"-{a~Ǔ¥†ø:†“©GÇ&~†“†ìéÄYÇa~Ç
“ÇšâÁÆÞ{Ìh\ => ø:Óä => ø:†“ÇÝóshell +Eœredhatlogviewer ×
C29-1. †“†ì
YÇa~Ǔ+?ó{†“©GÖO$ÇÙï,,̦C29-1Ä+{Q‹X3†Ç
ê†{qr†“ï,Ç>kD{˜©G/etc/sysconfig/redhat-logviewer
220
29.
†“©G
•Lå€÷˜Çh{,†{†“©GšÅ30 Æúmc'•#mcGÇ,nh\¥ ö => D 1˜C29-2Ä+{=Ìñ󆓩G)ü¥ÇšâmcGk
{ÞF>u•#ǚâu(ÃtÌ=mcGÌúÁý•#CÓmch,
1†{©GÇ ©G => ý/mcݕ[Ctrl]-[R]
,H†“©G{Žu†IEÇó,HÕ©ýã¥QœEÇl€šâ,H
ìšâ­÷u­÷Ž
,1󆓩G)ü¥•#ǓĆI†“©G{ ˜,ï,¥ †“©GÇl€š
â•# ˜•<Eœ†“©G{c ˜Çݚ⨁•<u,©G é›U¥½ ©
G ˜šâh½u(ÃtD 1=Çl€šâu(ÃtÌ=
C29-2. †“©G{ ˜
29.3.
5††“©G
†“†ì,1ú{˜óÝ9´·E{qku+´·C)´·#Ç,nh\¥
ö => D 1Çl€šâ´·)üšâ•<u´·#Íø
Ç´·#Ç,ï,¥ ÇÇl€šâÍø
C29-3. ´·
30.
ÿX
êhâX{qruZéÇÄ|Ñ{mG{/ŽuÇRed Hat Linux X„Red Hat XB½
›OèóXúRed Hat qƒÇǽ/,øïÎÂ{ŸÞâyA
Red Hat Linux X&~RPM Â*KÝÇOÇ¢4•ÿZD辘DŽRed Hat, Inc. q
{kernel RPM žGÝú“ã€Çinitrd n4ÌúOÖYøÇó“ãêX3{X€ÇÒ
–&~mkinitrd ט*“ãêGRUB ÝLILO {›ÇǤÌ•ZsãñǓ{{˜
©GuÝiYÇcX
ý9ÿXóx86 ø:ÞÿX{Z½
´·
Oèq½›{X4XúRed Hat Linux “ã|Ñ|Ñ{•,Íh¥O轛X{-<Ç>k
ݎ9A
30.1. 2.4
Çý{X
±Q½›{2.4 XÇÇÝi1ÕÕ
XÍh{ø94/usr/src/linux-2.4/ÇX4/usr/src/linux/
éext3 ©Gø:{|Ñ
éõ­ÿ®ìÃSMPÄ{|Ñ
éUSB {|Ñ
éIEEE 1394 ÷÷ÑÁFireWire™Ä{ðZ|Ñ
Red Hat Linux
•
•
•
•
•
30.2.
ï÷ÿ
óÿXƒÇa”fR1½3D‘Z4h½‹<7~•{ø:{,äq
{Zsc13yñ¯˜*ZsãñǓ–‹úth{˜uZscXÇø:‹ZscÇ
dÒÃZsø:
OZscÇóshell +~9Ê~’Çl€Eœ1×Õ
/sbin/mkbootdisk ‘uname -r‘
" >kmkbootdisk {€ÒVÃmanÄuÝÖÍõ 1
ó™Ç&~Zscu­cZs{åì1D蔞c{,äqu
bÑX&~ZscÇb4a”²Ç?8óǓ\{013y
g½.“ãêýJXžGÝÇóshell +‰qÁ{×Õ
222
30.
ÿX
rpm -qa | grep kernel
â‰q{“ã¡n½Ã{ÇýRhZžGÝ,X3Äǔ×{QñÌÝiìJÝ\\
óÁïñ{žGÝÕ
kernel-2.4.20-2.47.1
kernel-debug-2.4.20-2.47.1
kernel-source-2.4.20-2.47.1
kernel-doc-2.4.20-2.47.1
kernel-pcmcia-cs-3.1.31-13
kernel-smp-2.4.20-2.47.1
,Qñ¥Ç,1g½‰ñýJžGÝu‰qXÿé•\ÿ®ìø:Óǐ
‹kernel žGÝ4‰{
˜*{®åX‹Çÿ®ìljÝi|Ñõÿ®ì{kernel-smp žGÝñOF
…“ãkernel žGÝÇ13yõÿ®ìXXó{ø:¥thäq
˜*{®å{?§,ê4GBnj“ãkernel-bigmem žGÝb&ø:&~õ•4GB
{?ñOF…Γãkernel žGÝ1~•®Akernel-bigmem žGݝi686 ø
Oè
˜*‰PCMCIA |Ñþ˜ó"PžÞÄÇkernel-pcmcia-cs žGÝÒX,è
ø:.­cHXÇݲø:~•XÇX‰kernel-source žGÝ
kernel-doc žGÝÝiX©lÇÇX4‰{˜*{ø:ú~•XÇM?
“ãÇ
kernel-util žGÝÝiê~u;›XÝø:mG{ÓäǓÇÇX4‰{
Red Hat Oè{XX3{x86 Çý)ꀚ 1‹Õ~•AMD Athlon™ ZAMD Duron™ ø
:{athlonÖ~•Intel® Pentium® IIIntel® Pentium® IIIZIntel® Pentium® 4 ø:{i686Ö
~•Intel® Pentium® ZAMD K6™ ø:{i586˜*Xw{x86 ø:{ÇýÇ&~
i386 ÇýOè{XÖÇ4Ä‹ä•x86 {ø:Oè{
RPM žGÝ{x86 ÇýúÝió©GÖ¥¾˜Õkernel-2.4.20-2.47.1.athlon.rpm 4
AMD Athlon™ ZAMD Duron™ ø : € š { Çkernel-2.4.20-2.47.1.i686.rpm 4
Intel® Pentium® IIIntel® Pentium® IIIZIntel® Pentium® 4 ø:€š{óg½êžG
݃€Ç‰ÿXǏkernelkernel-smpZkernel-bigmem žGÝ th{
øÙǞGÝ&~i386 Çý
30.3.
ñÿê{X
g½4d‹,~•{ø:{ÿXÇ0‹P«
• Ÿœhttp://www.redhat.com/apps/support/errata/ 5Ç &~{Red Hat Linux ÇýÇl€
†Ç{ØXØ/žó“\ú¯ÃSecurity AdvisoriesÄ \I,Øï,¥šâ
XØu†Ç{-ûØç·óØ緥Njlj{RPM ï,Ç1ù,Red Hat
FTP 5šñÇ¢{Óz¤,1,Red Hat FTP {º45š¥ñÇ¢º45š{ï,
óhttp://www.redhat.com/download/mirror.html ¥
• &~Red Hat duñXRPM žGÝ?“ãÇ¢Red Hat dêñ!c{X
ÿø:Þ{X˜*ÇOð)RAM n4Ç?{˜ZsãñǓuñœcXÜ
RÍõfåÇ>kÝ http://www.redhat.com/docs/manuals/RHNetwork/ Þ{Red Hat dUser
Reference Guide
˜*,Red Hat Linux {ØÞñêRPM žGÝÇݐ&~êRed Hat duñž
GÝǙÝ֑30.4 ˜*&~êRed Hat duñ?“ãÍcê{XÇ$¬‘30.5
Z‘30.6 ¥{€ÒX,ÇX²X•Äå€Zs1ÇORed Hat dÌIJå€
X•Ä!cÇý
30.
ÿX
30.4.
223
‰qÿ
5Âtċ{žG݀ÇÒ,1)ÿ?Xêóshell +~9Ê~’Çݦ
tÝ9XRPM žGÝ{ø9¥Ç$¬1Z½Õ
­
ñOFâÎXÇ13ycXñ¯
&~rpm ×{-i 1uâÒX˜*&~ê-U 1uÿkernelžGÝÇÇ̃˜h
“ãê{X”׏ÃXÇýZx86 Çý̋ÄX3ÄÕ
rpm -ivh kernel-2.4.20-2.47.1.i386.rpm
˜*ø:4õÿ®ìø:Ǥ‰“ãkernel-smp žGÝÃXÇýZx86 Çý̋ÄX3ÄÕ
rpm -ivh kernel-smp-2.4.20-2.47.1.i386.rpm
˜*ø:4ä•i686 {Ç?Ý9§,4GB {?Ǥ‰“ãi686 øOè{kernel-bigmem
žGÝÃXÇýZx86 Çý̋ÄX3ÄÕ
rpm -ivh kernel-bigmem-2.4.20-2.47.1.i686.rpm
˜*K®ÿkernel-sourcekernel-docsÝkernel-utils žGÝÇ,X‰â
Çý&~Á{×uÿYJžGÝÃÇý̋ÄX3ÄÕ
rpm -Uvh kernel-source-2.4.20-2.47.1.i386.rpm
rpm -Uvh kernel-docs-2.4.20-2.47.1.i386.rpm
rpm -Uvh kernel-utils-2.4.20-2.47.1.i386.rpm
˜*ø:‰PCMCIA |Ñþ˜"PžÄǤ‰“ãkernel-pcmcia-cs ?âÇ
ý˜*&~ê-i 1ÇÇ,Ì(ÃàBÇOX‰”žGÝuZsQ‹PCMCIA |
Ñ{ø:w,YǯÇ&~--force 1ǘÄ+ÃÇý̋ÄX3ÄÕ
rpm -ivh --force kernel-pcmcia-cs-3.1.24-2.i386.rpm
Z4Dèð)RAM cn44dúO-<>kݑ30.5 
30.5.
Dèð)RAM cn4
˜*ø:&~ext3 ©Gø:ÝSCSI ;›ìÇ҉ð)RAM cð)RAM c{ø{4ã
ŽÜLš{XóÇꟜÜL/ž×{÷÷ƒä÷ŸœX‰,”÷÷Zs{ÜL{
Å
ð)RAM c/,&~mkinitrd ×uOlǘ*XùÙ#©G4,Red Hat, Inc.
q{RPM žGÝ¥“ãÝÿ{›ÇYÇZ½ÌúĉqÖO$ÇÇXúCӟqD
èÇ4dúOêÇ&~ls -l /boot ×uh½initrd-2.4.20-2.47.1.img©GúOê
ÃÇýa”š{¦¦“ãê{X{ÇýÄ
Z4DèZsãñǓ.ú{˜uZscX-<>kݑ30.6 
224
30.6.
30.
ÿX
DèZsãñǓ
˜*“ãêGRUB ÝLILO ZsãñǓÇkernel RPM žGÝ{˜Ç¢uZs¦¦“ã{
XÇb4Ç?X{˜ZsãñǓå€ZscX
h€ZsãñǓ.ú{˜ÄZscX4Šz
¦{Y4–­{Z˜*Zsã
ñǓú{˜zXthÇRÃZs{ø:¥Y«<YêÇ&~,O{Zscu
Zs{ø:Çl€òAC{˜{ZsãñǓ
30.6.1. GRUB
˜* êGRUB *ZsãñǓÇ>h€/boot/grub/grub.conf ©G¥Ý9{title \
I¥{Çý¦¦¦“ã{kernel žGÝ{Çý#3Ø*“ãêkernel-smp Z/ÝkernelbigmemÇÌtYÇ\IÄÕ
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
#
all kernel and initrd paths are relative to /boot/, eg.
#
root (hd0,0)
#
kernel /vmlinuz-version ro root=/dev/hda2
#
initrd /initrd-version.img
#boot=/dev/hda
default=3
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-2.47.1)
root (hd0,0)
kernel /vmlinuz-2.4.20-2.47.1 ro root=LABEL=/
initrd /initrd-2.4.20-2.47.1.img
title Red Hat Linux (2.4.20-2.30)
root (hd0,0)
kernel /vmlinuz-2.4.20-2.30 ro root=LABEL=/
initrd /initrd-2.4.20-2.30.img
˜*Oê\Õ{/boot IKÇtX¦initrd n4{4»4#é•/boot IKÓ{
Õ?Çå€Zs1ø–‹ú÷˜cX{˜GRUB uå€ZscXDzdefault #Þ{
Š•ÄÝ9cX{title \I{RhYÇRh,0 )¾˜Ç˜*cX4‘Çtitle \IÇ
²default ÷˜1
,1­cZs®åu)AYÇcXÇ
‰¶ôÞ{>åuhâmGúth5tê
30.6.2. LILO
˜* êLILO *ZsãñǓÇ>h€/etc/lilo.conf ©G¥Ý9{image \I¥
{Çý¦¦¦“ã{kernel žGÝ{Çý#3Ø*“ãêkernel-smp Z/ÝkernelbigmemÇÌtYÇ\IÄÕ
prompt
timeout=50
default=2.4.20-2.30
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.20-2.47.1
label=2.4.20-2.47.1
30.
ÿX
225
initrd=/boot/initrd-2.4.20-2.47.1.img
read-only
append="root=LABEL=/"
image=/boot/vmlinuz-2.4.20-2.30
label=2.4.20-2.30
initrd=/boot/initrd-2.4.20-2.30.img
read-only
append="root=LABEL=/"
Õ?Çå€Zs1ø–‹ú÷˜cX{˜LILO uå€ZscXDzdefault #Þ{
Š•ÄÝ9cX{image \I¥{label {Š1Ê~’üPäq/sbin/lilo ×ué~•
#äq€ÇÙQñ̦˜#‘Õ
Added 2.4.20-2.47.1 *
Added linux
€Á{* ?›Í \I¥{X4LILO Ìå€Zs{X
,1­cZs®åu)AYÇcXÇ
‰¶ôÞ{>åuhâmGúth5tê
2.4.20-2.47.1
226
30.
ÿX
31.
XÜL
Xä‹ÜLš÷óZsǐ‹èÞ{×Xúñœ?Yƒ€ÇÃX[~’
F&~×X¥–‹{ÕÇìXÜLÃkernel moduleÄNj‘ÁPÄǓÃdriverÄ
ÒÌúÄՏñœ?
ó“ã,Ç¥Çø:Þ{mGÌúæä•æˆ*Z~’
Ø{fåǓãǓÌû½ýJÜ
L‰óZsúñœ“ãǓÌ÷˜ÄÕñœå›u?ҏäq
˜*“ã€êcmGÇYÇmG‰ÇXÜLÇø:Œú{˜ucmGñœth
{XÜLhø:&~cmGZs€ÇKudzu ǓÌäqǘ*cmGú|ÑÇÇÒÌú5
tǔǓ¤ÌÇ{˜ÜL,1/,öÜL{˜©G/etc/modules.conf uCӍ½
YÇÜL
Linux
Õ
~u+X =ø:ŽÁ{@ªÜL4XFree86 žGÝ{\IÇX4X{\IÖO$Çý9?
Xa~•”ÜL
¾˜Ç˜*ìø:ÝiêÇSMC EtherPower 10 PCI ÇÜL{˜©GÝ91qÕ
alias eth0 tulip
˜*ø:Þê‘ÇÇÇZ‘ÇÜøÇó/etc/modules.conf ¥Y
qÕ
alias eth1 tulip
ÜzXÜL{ñ~“ï,1ùYJÜLÄ|Ñ{mGÇ>kÝRed Hat Linux k
31.1.
XÜLÓä
˜*“ãêmodutils žGÝǤ,1&~®XÜL{×&~YJ×ug½ÜL
4dúÄՏñœêÇݏGcmGAèX3{ÜL
/sbin/lsmod ×+êhñœê{ÜLï,¾˜Õ
Module
Size Used by Not tainted
iptable_filter
2412 0 (autoclean) (unused)
ip_tables
15864 1 [iptable_filter]
nfs
84632 1 (autoclean)
lockd
59536 1 (autoclean) [nfs]
sunrpc
87452 1 (autoclean) [nfs lockd]
soundcore
7044 0 (autoclean)
ide-cd
35836 0 (autoclean)
cdrom
34144 0 (autoclean) [ide-cd]
parport_pc
19204 1 (autoclean)
lp
9188 0 (autoclean)
parport
39072 1 (autoclean) [parport_pc lp]
autofs
13692 0 (autoclean) (unused)
e100
62148 1
228
microcode
keybdev
mousedev
hid
input
usb-uhci
usbcore
ext3
jbd
31.
XÜL
5184 0 (autoclean)
2976 0 (unused)
5656 1
22308 0 (unused)
6208 0 [keybdev mousedev hid]
27468 0 (unused)
82752 1 [hid usb-uhci]
91464 2
56336 2 [ext3]
éšqÓǑï4ÜLÖÁ֑ï4ÜLLB֑®ï4~Þj
~Þj€Á{fåéšÇÜLÓыÄX3˜*(unused) úïóìÜL{ q¥Ç”ÜL
hҖó&~˜*(autoclean) úïóìÜL{ q¥Ç”ÜL,1úrmmod -a ×Ä
8÷hYÇ×ú‰q€Çċ,Þ'úÄ8÷€™ú&~{ú)êautoclean{ÜL
ÑÌúWñRed Hat Linux X倉qÄ8÷qÄ
˜*ÜLÖÁúïÞóq—{iRÇiR{ÜLÒv•ïÞóYq{‘ï¥{ÜL¾
˜Çó1q¥Õ
usbcore
82752 1 [hid usb-uhci]
Zusb-uhci XÜLv•usbcore ÜL
/sbin/lsmod QñZ†/proc/modules {Qñ#3
ñœXÜLÇ&~/sbin/modprobe ×Çl€ËøXÜL{ÖÁ•Lå€÷
˜Çmodprobe AC,/lib/modules/<kernel-version>/kernel/drivers/ ø9¥ñœ
ÜLš¡ÜLыÇø9ǘ~•dz=PÄǓ{net/ ø9ìJXÜL‹ÜL
vøÇY?›øŒDñœÙÇÜLbñœYJÜL/sbin/modprobe ×5†Y
JvøÇ?óñœ½ÜLñœwYJvø{ÜL
¾˜Õ
hid
/sbin/modprobe hid
YÇ×ñœ[wvø{ÜLÇl€òñœhid ÜL
ó/sbin/modprobe ‰q×{²Ç¢Ñ+ó¶ôÞÇ&~-v 1¾˜Õ
/sbin/modprobe -v hid
Ä+{QñZÁ#‘Õ
/sbin/insmod /lib/modules/2.4.20-2.47.1/kernel/drivers/usb/hid.o
Using /lib/modules/2.4.20-2.47.1/kernel/drivers/usb/hid.o
Symbol version prefix ’smp_’
¤,1&~/sbin/insmod ×uñœXÜLÖX,ÇX‰ûvøO$ÇM?&
~/sbin/modprobe ×
WñXÜLÇ&~/sbin/rmmod ×ZÜLÖÁrmmod ÓäWñXó&~{ZX4ú
t&~{ÜLÄv{ÜL
¾˜Õ
/sbin/rmmod hid
YÇ×Wñhid XÜL
Nj~{ÜLÓä4modinfo&~/sbin/modinfo ×u+•XÜL{fåÄ
ª4Õ
31.
XÜL
229
/sbin/modinfo [options] <module>
Ýi-d ó{ 1+ê•ÜL{;áÃcÇ-p 1ïÞêÜLÄ|Ñ{kjÜR 1{
qrï,Ç>kÝmodinfo {€ÒVÃman modinfoÄ
31.2.
ÙÇýî
•XÜLZÇ¢{Óä{ÍõfåÇ>k1ýî
31.2.1.
“ãê{©l
{€ÒVÃmanÄ— éÇ{Qñ{ÃcZ‰:
{€ÒVÃmanÄ— é×q 1{ÃcZïÞ
modprobe {€ÒVÃmanÄ— é×q 1{ÃcZïÞ
rmmod {€ÒVÃmanÄ— é×q 1{ÃcZïÞ
modinfo {€ÒVÃmanÄ— é×q 1{ÃcZïÞ
/usr/src/linux-2.4/Documentation/modules.txt — ˜[HZ&~XÜL
• lsmod
• insmod
•
•
•
•
31.2.2.
•
‹~{5
http://www.redhat.com/mirrors/LDP/HOWTO/Module-HOWTO/index.html —
Linux Loadable Kernel Module HOWTO
™{
uLinux ©l
230
31.
XÜL
V.
žGÝ®
ø:Þ{ċžGÑúIÄ,ú“ãÿÝÍø{RPM žGÝYÇ\IÃc
ê˜[&~CošZ×qÓäu®Red Hat Linux ø:Þ{RPM žGÝ
Red Hat Linux
ø9
&~ u®žGÝ ............................................................................................................ 233
žGÝ®Óä .......................................................................................................................... 243
d.............................................................................................................................. 247
32.
RPM
33.
34. Red Hat
32.
&~RPM u®žGÝ
RPM žGÝ®ìÃRPMÄ48KÝø:Ç[|Ñ,1&~ÇóRed Hat LinuxÇ1ùÙ
ÇLinux ZUNIX ø:ÞäqRed Hat, Inc. ó¹ÙÇ=HÛóÆ¢{—¬Þ&~RPM bRPM •LGPL Qúq
镪à~’u€ÇRPM ;šêø:Íc“ãÍø“ãÿRPM žGÝ,1&~;á{×
Ò,qÄRPM ‘Ç.“ãžGÝZÇ¢{©G{jâEÇO$Ç,1óø:Þ&~Õ
L{†®ZDè˜*Íõ¡CošŽÁÇ,1&~žGÝ®Óäu‰qŽõRPM ×
-<>kݑ339
óÿ¥ÇRPM ÿ®{˜©G:žžÇO$ûXÌ¿½›{{˜— Y4~Ê/
{.tar.gz ©GÄÃHt{
é•Vu€ÇRPM㎲žGhZǓKÝÇl€
Øɪà~’YǟÇ:ž;
\ÇÇ,O{\Ç©GÝV¶¥PÄY«é{ÀÍhV¶ZOè{8ßÃ
c>4êqžGcÇýÄQu{‘‹Z
Õ
ORPM é{ø:)7h•#nj4Ê~’b“ãÍøÝÿìÇRPM žGÝ
32.1. RPM
{÷ø)
ê®‰˜[&~RPMÇ·¢a”uê‰RPM {÷ø)Õ
,ÿu
‘
&~RPMÇ,1X\c­ãÒ,1óø:ÞÿÇ/GhztÇä•RPM {v
*ø:{cqÇýØRed Hat LinuxÄÇX­c“ã{ø:Ãä•ÙÇKÝø:{
v*ø:‰­ãÄRPM ㎜šÄšÒÿ{ø:žGÝ¥{{˜©G
óÿ¥úâÇO$XÌ¿½›{÷˜X‰O{ÿ©GuÿìžGÝÇ
Oóø:ޓãZÿžGÝ&~3ø{RPM ©G
L{†®Õ
‘
RPM ú÷u
ØL{†®Õ,1órÇjâE¥œÂžGÝÝìJ½©G
¤,144ê‰týÇ©Ga•ýǞGÝǞGÝuý°RPM žGÝ{©GÝió
ú¸À{l¥ÇÙ¥‹½›{Ÿ›l>ǔl>Ý9•žGÝùَ{fåÇã
ŽO¤;„†®ÇžGÝ
ø:Dè
‘
1L{Õ4žGÝDè˜*Ze,ÍøêìžGÝÞ{Ç­©Gǐ
‰D蔞GÝý,[Iž<YÑÌ5/tÇ,1ó­ã”žGÝ
•,{{˜©Gó­ã¥Ìúâ
ÀÍh
‘
Ç­{÷ø)4ãŽ&~¦žG{ÆVÄqÍh—{ÀžGÍh&
~RPMÇ̋ÀÍh&~,{V¶1ùqr{OèY4Ç­{€Öu
Dǘ*Ǔ{cÇýúMñÇX,>)H,1V¶ug½,‰
234
32.
&~RPM u®žGÝ
)&~Y«bÇċH{倊Ç1ùthOèžGŸq{[•#Ñ
øêl
âÑÍhÀ{ø{‘‚éVu€4­{Çb4ÇÌɪà~’Qu°ŸÞ{ž
G·¢.ó$¡\BOGUS {q|ÊÇ¡\Æ¢!êÀÍhY–'
32.2.
&~RPM
‹Ê«äýv*Ü*ÃXÝižGÝOèÄՓãÍø“ãÿ†®ZDèý9
ÝiéšÜ*{.ê‰qr{ 1ZûÇ>&~rpm --help ×ÇÝÝ֑32.5 ¥
•RPM {få
RPM
32.2.1.
¯IRPM žGÝ
32.2.2.
“ã
ó&~RPM ƒÇŒwtý°V¯IÇ¢óÉޜÂÌ(ÎõRPM sEÇb4
˜*I{4„Red Hat Oè{RPM žGÝÇ,1óÁǏ0ItÇ¢Õ
• Red Hat Linux c
• Red Hat ØÕhttp://www.redhat.com/apps/support/errata/
• Red Hat FTP º45Õhttp://www.redhat.com/download/mirror.html
• Red Hat d— •Red Hat d{-<Ç>kݑ349
›n{RPM žGÝÖÁ¡‘•foo-1.0-1.i386.rpm”©GÖÝižGÝÖÁÃfooÄÇ
ýÃ1.0ÄqÇýÃ1Ä1ùøÃi386ēãžGÝ;\ƒôÇ~9Ê~’Çl€
óshell +EœÁ{×Õ
rpm -Uvh foo-1.0-1.i386.rpm
˜*“ãÄÕÇÌt˜Ä+{QñÕ
Preparing...
1:foo
########################################### [100%]
########################################### [100%]
˜ÞÁÄ+ÇRPM +žGÝ{ÖÁÇl€óžGÝú“ãó¶ôÞK\³Ru+“ãŸ
Ý
,RPM Çý4.1 )Çó“ãÝÿžGÝÌ5†žGÝ{ü֘*üÖDè½ÇÒÌ
t˜Ä+{FØ>åÕ
error: V3 DSA signature: BAD, key ID 0352860f
˜*Ç4c{bé©G>{üÖÇÌt˜Ä+{FØ>åÕ
error: Header V3 DSA signature: BAD, key ID 0352860f
˜*–‹“ã\7{ØÒuDèüÖÇ>å¥ÒÌÝ9NOKEYǘÕ
warning: V3 DSA signature: NOKEY, key ID 0352860f
•DèžGÝüÖ{-ûfåÇ>kݑ32.3 
32.
&~RPM u®žGÝ
235
Õ
˜*“ãXžGÝÇa”&~rpm -ivh-<>kݑ309
¯l“ãžGݑó;\4qÇb4‹ÌtFØ
žGÝ.“ã
˜*ìžGÝ{3Çý.²“ãÇÒÌtÕ
32.2.2.1.
Preparing...
########################################### [100%]
package foo-1.0-1 is already installed
˜*óžGÝ.“ã{<Y…K®“ã3Çý{žGÝÇ,1&~--replacepkgs 1ÇÇ·ªRPM uƒQYÇFØÕ
rpm -ivh --replacepkgs foo-1.0-1.i386.rpm
˜*,RPM “ã{©GúÍøêÇÝV.“ãRPM ¥{!ð{˜©Gǔ 1ÒÌi‹~
©GàB
˜*AC“ã{žGÝ¥Ý9.úǞGÝÝ3žGÝ{ ÏÇý“ãê{©GÇÌ
tÕ
32.2.2.2.
Preparing...
########################################### [100%]
file /usr/bin/foo from install of foo-1.0-1 conflicts with file from package bar-2.0.20
&RPM ƒQYÇFØÇ&~--replacefiles 1Õ
rpm -ivh --replacefiles foo-1.0-1.i386.rpm
™‰û{vø
žGÝ,v•ÙǞGÝÇY?›øÇ¢‰“ãÙǞGÝbthäq˜*
AC“ã䋙‰ûvø{žGÝÇÌtÕ
32.2.2.3.
RPM
Preparing...
########################################### [100%]
error: Failed dependencies:
bar.so.2 is needed by foo-1.0-1
Suggested resolutions:
bar-2.0.20-3.i386.rpm
˜*“ã{4Red HatÇÇ/žÌ5OF‰ûvøĉ{žGÝóRed Hat Linux c
ÝRed Hat FTP 5šÃݺ4ÄÞItYǞGÝÇ&~1×uÕ
rpm -ivh foo-1.0-1.i386.rpm bar-2.0.20-3.i386.rpm
˜*YÜǞGÝѓãÄÕÇÌtÕ
Preparing...
1:foo
2:bar
########################################### [100%]
########################################### [ 50%]
########################################### [100%]
236
32.
&~RPM u®žGÝ
˜*ÇX5OF‰ûvøĉ{žGÝÇ,1A~--redhatprovides 1ug½ýÇ
žGÝÝ9ĉ{©G‰“ãrpmdb-redhat žGÝb&~YÇ 1
rpm -q --redhatprovides bar.so.2
˜*Ý9bar.so.2 {žGÝóurpmdb-redhat žGÝ{“ãê{jâE¥Ç”žGÝ{ÖÁ
ÒÌú+Õ
bar-2.0.20-3.i386.rpm
˜*.›“ãÃX4PÍÇOžGÝ,XêthäqÄÇ&~--nodeps 1
32.2.3.
Íø“ã
ÍøžGÝZ“ãžGÝø;\óshell +EœÁ{×Õ
rpm -e foo
Õ
Õ?Ç·¢&~žGÝÖÁ fooÇX4Æ){žGÝ©G foo-1.0-1.i386.rpmÍøìžGÝÇ
‰²foo ¦ÄÆ)žGÝ{"ÖÁ
óÍø“ãìžGÝ̱tvøFØÇhÇ.“ã{žGÝv•ACÍø{ž
GÝÇvøFØÒ̾˜Õ
Preparing...
########################################### [100%]
error: removing these packages would break dependencies:
foo is needed by bar-2.0.20-3.i386.rpm
&RPM ƒQYÇFØÇ?›Íø”žGÝÃX4ÇPÍÇOv•Ç{žGÝ,Ã
tžäqÄÇ&~--nodeps 1
32.2.4.
ÿ
ÿžGÝZ“ã¡‘óshell +Eœ1×Õ
rpm -Uvh foo-2.0-1.i386.rpm
óÞÁ{¾°Xt{4ÇRPM ÄÍøfoo žGÝ{[Çý/"ÞÇ,.†
&~-U u“ãžGÝÇOý"–‹“ãžGÝ{[ÇýÇÇ,1~u“㔞GÝ
ORPM éžGÝZ{˜©G‰qœÿÇ,ÌtZÁ#‘{>åÕ
saving /etc/foo.conf as /etc/foo.conf.rpmsave
Y>å?›øé{˜©GÄ*{•#,XÌZžGÝ¥{c{˜©G5/ŽÇO
$ÇRPM â?ê{Æ)©GÇ?“ãêÇc©Ga”®†YÜÇ{˜©G{K/Ç
l€¦O‰ûYJK/uhâø:™thäq
ÿ"Þ4ÍøZ“ã{\ÇO$ÇóRPM ÿ¥Çøê±tÍøZ“ã¥Ì±t{FØ
iǤÌtÇFؘ*RPM €ACÿtžGÝ{ÇýÇÌtÕ
32.
&~RPM u®žGÝ
237
package foo-2.0-1 (which is newer than foo-1.0-1) is already installed
&RPM ›ÿÇ&~--oldpackage 1Õ
rpm -Uvh --oldpackage foo-1.0-1.i386.rpm
32.2.5.
mc
mcžGÝZÿžGÝ#‘óshell +Eœ1×Õ
rpm -Fvh foo-1.2-1.i386.rpm
{mc 1vó×qލ½{žGÝ{ÇýZ{ø:Þ.“ã{ÇýhRPM {mc
1ÿ®{Çý.“ã{ÇýÍcÇÇÒÌúÿtÍc{Çýlǘ*ìžGݖ
‹“ãÇRPM {mc 1RX̓㔞GÝYZRPM {ÿ 1X3ÇOX”žGÝ{
Çý4d.ú“ãÇÿ 1Ñ̓㔞GÝ
RPM {mc 1,1~•\ǞGÝݞGݘ*¦¦ñêLÞX3{žGÝÇ
.ÿ J.“ãó{ø:Þ{žGÝÇmcý,Htø{˜*&~mcÇXó&
~RPM ,ñ{žGÝ¥ÍøX{žGÝ
óY«<YÇ\&~Á{×Ò,1êÕ
RPM
rpm -Fvh *.rpm
RPM
RÌÄÿ J.²óø:ޓã{žGÝ
32.2.6.
†®
&~rpm -q ×u†®“ã{žGÝ{jâErpm -q foo ×Ì+“ã{žGÝfoo {Ö
ÁÇýZqRhÕ
foo-2.0-1
Õ
Õ?Ç·¢&~{4žGÝÖÁ foo†®žGÝlj²foo ¦Ä"žGÝÖÁ
¦Ù½žGÝÖÁÇ,1Z-q å&~ï 1u½†®{žGÝÇ¢w)žGÝ
½ 1
• -a †®Ä‹.“ã{žGÝ
• -f <file> ̆®p‹<file> {žGÝh½©Gnj½©G{qr4»
Ø/usr/bin/lsÄ
• -p <packagefile> †®žGÝ<packagefile>
½ú†®{žGÝ+ýJfå{0õ«õø1 1~u œÂ{få¡nÇ
¢w)få 1
• -i +žGÝfåÇÝiÖÁÃcqÇýLB›†Ï—ÛÇ1ùÙÇì1
238
32.
&~RPM u®žGÝ
+žGÝÄ9{©Gï,
+žGݥċ©G{çÕ
• -d +ú)©lÃman info README Ä{©Gï,
• -c +ú){˜©G{©Gï,ó“〕#YJ©Gu&žGÝ7~•{ø:
ޘÇsendmail.cfpasswdinittab Ä
é•~u+©Gï,{ 1Ç,1ó׀-v u~Yç{ls -l Â*u+©Gï
,
• -l
• -s
32.2.7.
Dè
DèžGÝv,ìžGݓã{©GZÆ)žGÝ¥{3©G{fåÇDèšÇ©G{L
BMD5 ŠY!¡nċV1ùk
rpm -V ×DèžGÝ,1†®[žGÝ 1ïÞ{øu½Dè{žGÝ
Dè{!;\~4rpm -V fooÇÇDèċófoo žGÝ{©G4dZ!ð“ãø¾
˜Õ
• DèÝ9콩G{žGÝÕ
rpm -Vf /bin/vi
• Dèċ“ãê{žGÝÕ
rpm -Va
• ÊâRPM žGÝ©GuDè“ãê{žGÝÕ
rpm -Vp foo-1.0-1.i386.rpm
˜*ž&RPM jâE.ú» ǔ×ÒÌi‹~
˜*#ÑúDèthÇÒX̋Qñ˜*ñ‡ñÇÇ¢ÒÌú+Qñ{Â*Ýi¬Ç
n{nÃc S,{˜©GÄÇl€4©GÖÁY¬Çn{šÇnÑS,«©Gau
{vˆ*ÇÄv{4©G{auZRPM jâE¥9{au\~Ç.ÚÄ?›øA/
,ïnS,ì¡A½Õ
• 5 — MD5 DèZ
• S — ©GLB
• L — nRÓz
• T — ©G•• D — ÷÷
• U — ~’
• G — k
• M — Ü*ÃÝiY!Z©G¡nÄ
• ? — X,Ö©G
˜*t[QñÇ!Pĕugä4a”Íø¤4­c“㔞GÝÇÝ~«0u
‰ûYǯ
32.
&~RPM u®žGÝ
32.3.
239
5†žGÝ{üÖ
˜*.DèìžGÝ4dú» Ý4•,ǐ‰5†md5sumóshell +EœÁ{×
òcoolapp ¦ÄRPM žGÝ{©GÖÄÕ
rpm -K --nogpg <rpm-file>
Ìt>å<rpm-file>: md5 OKY>å?›ø©Góñ¥–‹ú» tÍ
-û{>åDzץ{-K ¦Ä-Kvv
0ÁÇOžGÝ{V4X4Šzfژ*”žGÝ&~V{GnuPG ØÒÃkeyÄ
úüÖÃsignedÄÇÒÌwY V{üPh"˜Æ¢ÄÓ
RPM žGÝ,1&~Gnu [ˆ¥,ÃÝÁGnuPGÄuüÖÇ,ÐÏ2½ñžGÝ{,f
u
GnuPG 4“\/µÓäÖÇ4PGPëž[ˆÇ“Ä·b{q\Z½D{¦¬&
~GnuPGÇ,1èy©l{‹HuÇóÙÇ/µVƒ-·Ý‰·jâGnuPG ¤ä‹‰·Z
DèPGP 5.x ©G{Å
óRed Hat Linux {“ã,Ç¥ÇGnuPG ú倓ãYøÇ",1Áý)&~GnuPG uD
è,Red Hat Bt{žGÝDljsœRed Hat {ÚØ
32.3.1.
sœØÒ
DèRed Hat žGÝnjsœRed Hat GPG ÚØsœÚØÇóshell +‰q1×
Õ
rpm --import /usr/share/rhn/RPM-GPG-KEY
+~uDèRPM “ã{ØÒï,ljq1×Õ
rpm -qa gpg-pubkey*
é•Red Hat ÚØÓÇÙQñaÝiÕ
gpg-pubkey-db42a60e-37ea5438
+•ì½ØÒ{ûÇ&~rpm -qiÇـ˱×{QñÕ
rpm -qi gpg-pubkey-db42a60e-37ea5438
32.3.2.
DèžGÝ{üÖ
sœêOèV{GnuPG Ú؀Ç5†RPM ©G{GnuPG üÖÇ&~1×ò<rpmfile> ¦ÄRPM žGÝ{ÖÁÄÕ
rpm -K <rpm-file>
˜*#~¼ÇÌtY>åÕmd5 gpg OKY?›øžGÝ{üÖ.úDèǔžGݖ
‹ú» " •GnuPG {-ûfåÇ>kݎ9B
240
32.4.
32.
&~RPM u®žGÝ
~RPM óŠŒÁLüC
镮ø:fäZt¯Ñô‹~E®‰Ç{ 1{!E»4/,+)
,XBeÍøêJ©GÇeX2½ÍøêýJ©G˜*.DèrÇø:ub
èýJ©GÇ,1AAÁ{×Õ
rpm -Va
˜*bèìJ©GÝÇ¢‘‚ú» Ç,a”­c“㔞GÝÝÍø“ãl€ò­c“ã
”žGÝ
‹Ç,ÌtX€#{©GýǞGÝp‹ÇÇ,1QœÕ
rpm -qf /usr/X11R6/bin/ghostview
Ç{QñZ1#‘Õ
gv-3.5.8-22
·¢,1ó1{".<Y\1Þ{ÜǾ"÷{/usr/bin/paste ñê¯Ç
.Dèp‹”Ç“{žGÝÇb4XwýǞGÝp‹paste‰Qœ1×Ò,1
êÕ
rpm -Vf /usr/bin/paste
YøÇ7h{žGÝÒÌúDè
.w•ì½{Ǔ{-ûfåmÚ,1A~Á{×u†Ip‹”Ç“{žGÝ
ĎQ{©lÕ
rpm -qdf /usr/bin/free
Ç{QñZ1#‘Õ
RPM
•
•
•
•
/usr/share/doc/procps-2.0.11/BUGS
/usr/share/doc/procps-2.0.11/NEWS
/usr/share/doc/procps-2.0.11/TODO
/usr/share/man/man1/free.1.gz
/usr/share/man/man1/oldps.1.gz
/usr/share/man/man1/pgrep.1.gz
/usr/share/man/man1/pkill.1.gz
/usr/share/man/man1/ps.1.gz
/usr/share/man/man1/skill.1.gz
/usr/share/man/man1/snice.1.gz
/usr/share/man/man1/tload.1.gz
/usr/share/man/man1/top.1.gz
/usr/share/man/man1/uptime.1.gz
/usr/share/man/man1/w.1.gz
/usr/share/man/man1/watch.1.gz
/usr/share/man/man5/sysctl.conf.5.gz
/usr/share/man/man8/sysctl.8.gz
/usr/share/man/man8/vmstat.8.gz
•
,ÌÇc{RPMÇb4XwÇ{~E¯I•Ç{fåÇ&~Á{×
Õ
rpm -qip crontabs-1.10-5.noarch.rpm
Ç{QñåuZ1#‘Õ
Name
: crontabs
Relocations: (not relocateable)
Version : 1.10
Vendor: Red Hat, Inc.
Release : 5
Build Date: Fri 07 Feb 2003 04:07:32 PM EST
Install date: (not installed)
Build Host: porky.devel.redhat.com
Group
: System Environment/Base
Source RPM: crontabs-1.10-5.src.rpm
Size
: 1004
License: Public Domain
Signature : DSA/SHA1, Tue 11 Feb 2003 01:46:46 PM EST, Key ID fd372689897da07a
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary : Root crontab files used to schedule the execution of programs.
Description :
The crontabs package contains root crontab files. Crontab is the
32.
&~RPM u®žGÝ
241
program used to install, uninstall, or list the tables used to drive the
cron daemon. The cron daemon checks the crontab files to see when
particular commands are scheduled to be executed. If commands are
scheduled, then it executes them.
•
Ž.½crontabs RPM ̓ãýJ©G,1QœÁ{×Õ
rpm -qlp crontabs-1.10-5.noarch.rpm
Ç{QñåuZÁ#‘Õ
Name
: crontabs
Relocations: (not relocateable)
Version : 1.10
Vendor: Red Hat, Inc.
Release : 5
Build Date: Fri 07 Feb 2003 04:07:32 PM EST
Install date: (not installed)
Build Host: porky.devel.redhat.com
Group
: System Environment/Base
Source RPM: crontabs-1.10-5.src.rpm
Size
: 1004
License: Public Domain
Signature : DSA/SHA1, Tue 11 Feb 2003 01:46:46 PM EST, Key ID fd372689897da07a
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary : Root crontab files used to schedule the execution of programs.
Description :
The crontabs package contains root crontab files. Crontab is the
program used to install, uninstall, or list the tables used to drive the
cron daemon. The cron daemon checks the crontab files to see when
particular commands are scheduled to be executed. If commands are
scheduled, then it executes them.
1ÞX,4Ǿ±ø{&~²è{ÇÌÍõRPM {~E
32.5.
ÙÇýî
4Ç:ž…ì{ÓäNjŽõ†®“ãÿ1ùÍøžGÝ{ 1Z0>k
Á{ýîuŸZê‰RPM bRPM.
RPM
32.5.1.
“ãê{©l
• rpm --help
å
• man rpm
32.5.2.
—
”×+RPM kj{O¤k
{€ÒVÃmanÄÌÉ
Ørpm --help ×Í-û{RPM kjf
— RPM
‹~{5
5
…Gï,{l •$ÿ¾ÝÇÉ<rpm˜…GÇóÌq¥ÕÒsubscribe
•
http://www.rpm.org/ — RPM
•
http://www.redhat.com/mailing-lists/rpm-list/ —
list-request@redhat.com>
32.5.3.
•
#V÷
Ç*V
Ö
Maximum RPM
Ed Bailey Red Hat Press —
http://www.redhat.com/docs/books/
Z
¥It
”V{ó"Çý,óhttp://www.rpm.org/
242
32.
&~RPM u®žGÝ
33.
žGÝ®Óä
ó“ã¥Ç~’ Ó*5ÝqÖ샡{“ã¡nžGÝÒ4ÊâYÇ u“ã
{O~’&~®å{0ø{X3ÇÇ¢,ó“ã€.ò“ãÝÍøìJžGݞG
Ý®ÓäãŽ~’‰qY¡v*
äqžGÝ®Óä‰X =ø:éÄYÇǓǚâÁÆÞ{Ìh\ => ø:÷
˜ => /Íøa~ǓÇÝóshell +Eœredhat-config-packages ×
˜*ó®å¥‚œêRed Hat Linux c#1ÇÌt#3{ŽÁ
C33-1. žGÝ®Óä
”Ç“{ŽÁZ“ã¥&~{#‘žGÝúIĞGÝǚÝ9ï)ïžGÝ
Ãstandard packagesÄZïI0Ú~Õ{ižGÝÃextra packagesľ˜ÇCoš
ÉÝ9y‘¨ìž…G0’1ùÙÇ~uËztÉ{ǓXÍø)
ïžGÝÇø:rǞGÝÑúÍøžGÝú ÇÙ¥{ižGÝ4ê “ãÝÍø{, žGÝ
Ìh\+êžGÝ{ï,˜*žGÝk{… '‹Ç nRÇY€Ò”h.
ú“ã†Ù¥{\ǞGÝï,ǚâÇk{û•<Q‹ nR{\ǞGÝ
h.ú“ã
33.1.
“ãžGÝ
“ãžGÝ¥øߙ“ã{)ïžGÝÇ Çk{… '½›žGÝ¥“ã
{žGÝǚâÇk{û•<ÇÝ9)ïZižGÝ{ï,Ìú+ǘC33-2Ä
+šâžGÝÖÁÌó=Ž\+“ãÇĉ{c8- Çk{… '̲Ç)
“ã{žGÝ
244
33.
žGÝ®Óä
¤,1,.“ã{žGÝ¥ \ǞGÝÇ04šâû•<Çl€ ?–‹ú
“ã{ižGÝ
C33-2. \ǞGÝ{ ê“ã{žGÝZ\ǞG݀ǚâÌ=Þ{Íc•<l€Ç”Ç“Ì®“
ãYJžGÝĉ{c8-Ç1ùžGÝvøÇ?+Lj=˜*žGÝvø
?óÇÇ¢ÌúÄt“ã{žGÝï,¥šâ+û•<u†“ã{žGÝ
{qrï,
C33-3. žGݓãˆ
šâ™uéēãŸÇhLje€ÇÍcq>åÌñ
" ˜*&~Nautilus u¨®åÞ{©GZø9Ǥ,1~Çu“ãžGÝóNautilus ¥ÇÝtÝ
9RPM žGÝÃÇ¢/ž1.rpm ˆ—Ä{ø9¥Çl€vâRPM C)
33.
žGÝ®Óä
33.2.
245
ÍøžGÝ
ÍøìǞGÝ{ċžGÝÇR> Çk{… 'Íø\ǞGÝǚ┞
GÝk{û•<Çl€R> \ǞGÝ
h ½êÍø{žG݀ǚâÌ=¥{Íc•<”Ç“Ì®Ç̃ñ{881ùžGÝvø˜*ÙǞGÝv• Íø{žGÝÇÇ¢ÌúĜtúÍ
ø{žGÝï,¥šâ+û•<u†Íø{žGÝï,
C33-4. žGÝÍøˆ
šâ™uéÄÍøŸÇhLje€ÇÍcq>åÌñ
" ,13ŸqžGÝ{“ãZÍøÇ04Ç “ãÝÍø{žGÝݞGÝÇl€šâÍ
cø:ê÷q=Ì+“ãZÍø{žGÝjÞ
246
33.
žGÝ®Óä
34.
Red Hat
d
d4~u®ÇÝõÇRed Hat Linux ø:{É‰û0™Ä‹{“\´·F
Øt´·1ùŸ´·Ã/ÁØ´·Ä,,Red Hat ކzñÇ,1&~Red Hat Íc
S®YÇÕÁǓÇ,1/,RHN y‘ŽÁuñÕhttp://rhn.redhat.com/.
Red Hat
C34-1. {RHN
Red Hat d~’-ÇOóÍcžGÝq~’ÒÌBtž…G/~’Xó
y‘ÞC¯Íc{žGÝݓ\´·•Lå€÷˜ÇRed Hat d¤“ãYJžGÝ~’X
‰¦ó˜[&~RPMÇX‰ûžGÝvøh¦‚ÖRHN \cÝÍ
šÇRed Hat dARÑQ‹Õ
• Ø´·— /,äýŽÁÜç~•{d¥Ä‹ø:{“\´·FØt´·ZŸ
´·ó[Ìúñ
248
34. Red Hat
d
C34-2. #Ø
• Ğ…G/— 5{ø:ñØ´·ÄBtž…G/
• ®Ý{ØÍc— ®ÝØÍc{=”
• “ãžGÝ— šâǕ<Ò,1óÇÝõÇø:ޮݞGÝ{“ã
• Red Hat ÍcS® — &~Red Hat ÍcS®u{ø:ñ!c{žGÝä,1“ãžG
ÝÄ
• Red Hat d5— /,[®åÞ{“\y‘¨ìu®õÇø:ñ\ǞGÝÇ
1ù®ÝØÍcƒ¡{Ö
)&~Red Hat dÇ>$¬Á®ÇäýZ½Õ
1. &~10ƒuOÇø:l™Õ
• óø:“ã€{D'Zsäq{÷˜S®¥²ø:Õ~tRHN ¥
• ó{óÁÞ Ìh\ => ø:Óä => Red Hat d
• ,shell +‰qup2date ×
óRHN {5http://rhn.redhat.com/ Þ~9Ç?&ø:‹YÜzÄ
Ø{q֚Ç|Ñ,
1½DÜz~•Çø:{Red Hat dBRiBR,1/,éoÜz
3. )/,RHN 5u®ÝÍcÇÝ&~Red Hat ÍcS®uñ?“ãØÍc
Ü z Í - û { € Ò Ç > Ý ÖRed Hat Network User Reference GuideÇ Ç • http://www.redhat.com/docs/manuals/RHNetwork/
2.
34. Red Hat
" d
Ýiê
dÍc/ÓäÇÇ4Ç0"{ÁÆC)Çh~•{Red Hat
ø:{Íc,~ÇYÇC)ÒÌ+Ç,@{´·‹”‚G{-ûfåÇ>k
Red Hat Linux
Red Hat
Linux
http://rhn.redhat.com/help/basic/applet.html
DÕ
249
250
34. Red Hat
d
VI.
Ž9
YÇ\IÝ9,Red Hat, Inc. Ø{Í©GuO轛X{€ÒǤÝ9•Gnu Privacy
Guard YÇ~•“\/f{Óä{få
ø9
O轛X
A.
............................................................................................................................... 253
B. Gnu Privacy Guard
........................................................................................................... 257
œ Ž9A.
O轛X
ŽõLinux {c~’²žÌ¯Õ·a”Oè{XÚA•óXÜL&~Þ{
0ÇéYǯ!ôh{ÃIa”4Õø:.²w‰Oè{XÇ,–
Y)
Red Hat Linux Z/,Red Hat Linux Øø:Ä
Ø{X
ØêéõjSmG|Ñ1ùX
Õéõj~’u€ÇÇXú­cHýŽ94Ǐ.­cHÆ¢{XÇ?.Ÿ
Z¦ó‹#{~’1ù.²Aèu{ÕHœX{~’
Ø{
&~Red Hat, Inc. q{XžGÝuÿXÇ>kݑ309
´·
O轛XXúRed Hat Linux “ã|ÑÄ|ÑÜzÍõ•&~Red Hat, Inc. q{RPM ž
GÝuÿX{fåÇ>kݑ309
A.1.
Oèê÷
óO轛XƒÇ!­{Z½4h½‹<,äq{›úZscÇ13yñF›*
ÇRÌ&~häq{XuZs{Zscljq1×Õ
/sbin/mkbootdisk ‘uname -r‘
›*êc€Ç>AÇ1h½ÇêZsø:
­cHXnj“ãêkernel-source žGÝé~×Õ
rpm -q kernel-source
ug½Ç4dú“ã˜*ǖ‹ú“ãÇ,Red Hat Linux cRed Hat FTP 5š
Ãftp://ftp.redhat.comÇÙº4ï, •http://www.redhat.com/mirrors.htmlÄÝRed Hat d¥“
ãǕ“ãRPM žGÝ{-<Ç>kݑV \I
A.2.
OèX
ý{€Òa~•O轛{ÜLšXOè\šXÇ>kݑA.3 uÜz•OèZ
“ã\šX{È0Á{‰:
Õ
YǾ&~2.4.20-2.47.1 *XÇýÃXÇý,̋ÄX3Äg½XÇýÇEœuname
-r ×Çl€~(Ã{XÇýuS2.4.20-2.47.1
Oè~•x86 ø{XÇ$¬1Z½Ã.Ê~’üP‰qÄÕ
254
Ž9A. O轛X
KÇshell +Ǖ¦tø9/usr/src/linux-2.4 ,$1€{×ьó”ø
9‰q
2. a”ÒhOèXÄ&~{Íhd{çYÇYš–­O$ÇOF,×make
mrproper )øCÇÌÍøċ{{˜©GÇ1ù±aóÍhd±Œ{,Oè{Çý
"ì˜*.‹Ç?ó{{˜©G/usr/src/linux-2.4/.configÇóäqY1×
²Ç÷PtÇø9¥Ç×äq€ò²Ç…›Ãu
3. M?,å€Red Hat Linux X{{˜øCÙZ½4Dzø:ø{{˜©G
,/usr/src/linux-2.4/configs/ ø9¥…›t/usr/src/linux-2.4/.config ø9
¥˜*ø:{?L•4GBDž›Ý9bigmem {©G
4. Zǽ›÷˜˜*X =ø:,~ÇOF{04&~make xconfig ×uä
qLinux Kernel Configuration
1.
Õ
&~make xconfig ×ÄéÄ{CošÓänj“ã
Øêwish ×{tk žGݕ
“ãRPM žGÝ{-<Ç>kݑV \I
CA-1. {˜XG{¡/
˜CA-1Ä+ǚâÇ¡/u ÇóšÇ¡/¥Ý9{4G Gk
{yÃ4ÄmÃÜLÄÝnÃdÄu²ÇHœXHÄXÜLÝXHÇ
ŸZê‰ìGǚâÇk{help•<
šâMain Menuu(Ãt¡/ï,
qÄê{˜€ÇšâÌh\¥{Save and Exit•<uO{˜©G/usr/src/linux2.4/.config ?RñLinux Kernel Configuration Ǔ
ý"–‹é÷˜Ÿq[•#Çó™‰äqmake xconfig ×ÃÝÙÇX{
˜0Ä
ÙÇ,~{X{˜0ÝiÕ
• make config — Ä©ýǓG1"oÂ*ñÇ?úÇǏÃIY«0
X‰äqX =ø:Ç%X㎕#éÁ¯{ÃI
• make menuconfig — ©ýÜ*h\PÄ{ǓG1¡/h\{Â*ú+Ö&~
Z©ýÜ*Red Hat Linux “ãǓÄ~{3ø0u .{GvÕ#¦ZÝ
i{1ø#éa{)üÕ[*]ÃOÄ[ ]Ã\øÄ<M>ÃÜLÄÝ< >Ãä÷ÜL
ÅÄY«0X‰X =ø:
• make oldconfig — Y4Ç:Ä{lýÇ÷˜{˜©GuÝ9å€{÷˜˜*
ø:&~{4å€Red Hat Linux XÇÇ̏~•”ø{Red Hat Linux Ýi{X
Ž9A. O轛X
255
OÇ{˜©GYêÐϕL.{Ó*倊u÷˜XÇl€X.&~
{Õ
Õ
& ~kmod Z X Ü L Ç ó { ˜ ¥ ékmod support Zmodule version
(CONFIG_MODVERSIONS) support ÃIYes
Oê/usr/src/linux-2.4/.config ©G€Ç&~make dep ×uth÷˜v
ø
6. &~make clean ×uï÷Oè{Íhd
7. M ? É ½ › X Ç  • Ç ý R h Ç O $ ? X X Ì ú ƒ ˜ $ÿÃc{04,?›/G¥Á…{!;40•ÙÇ,uÇ
>
k
Ýhttp://www.redhat.com/mirrors/LDP/HOWTO/Kernel-HOWTO.html
Ý/usr/src/linux-2.4 ¥{Makefile {-<
•Lå€÷˜Ç/usr/src/linux-2.4/Makefile ó1EXTRAVERSION >{q{ˆ—
ÿÝicustom YÇ#€VYÇ#ÌãŽø:3p‹Æ‹{Ó*XZcXÃÇ
ý2.4.20-2.47.1customÄ
˜*ø:Ý9XŽÇ½›{XÇK/Ç¢{PÍ4ó€Á†ÏÃÝÙÇ)#n
RÄ
8. &~make bzImage uOèX
9. Oè&~make modules Ä{˜{ÜL
10. & ~make modules_install × u “ ã X Ü L à ý " / " Þ  – ‹ O è Ä > e × ¥ { ™ " Ã_Ä Y Ì ² X Ü L
9
“
ã
œ/lib/modules/<KERNELVERSION>/kernel/drivers ø
ÃKERNELVERSION 4Makefile ¥  ½ { Ç ý Ä ó Y Ç ¾ °
4/lib/modules/2.4.20-2.47.1custom/kernel/drivers/
11. &~make install u²cXZ#©G…›tth{ø9¥
øêó/boot ø9¥“ãX©GÇYÇפ‰q/sbin/new-kernel-pkg lý”l
ýÌOèÇc{initrd n4Ç?óZsãñǓ{{˜©G¥Çc1ø
˜*ø:‹ÇSCSI 7{ìÇSCSI PÄǓú*ÜLHêÖÝóOèX²ext3
|Ñ*ÜLÃRed Hat Linux {å€÷˜ÄHœÇ҉initrd n4
12. ý"initrd n4ZZsãñǓú•êÇa”DèYJ•{thuÇ?h½&~
½›{XÇýX42.4.20-2.47.1•DèYJ•{fåÇ>kݑ30.5 Z‘30.6

5.
A.3.
Oè\šX
Oè\šXÇøêǾi1iÇÙZ½ZZOèÜLšX#3
• h{˜XÇX²#ÑHÄÜL¦é›€Çé¯ÃIYes ÝNo¤‹Ça
”ékmod support Zmodule version (CONFIG_MODVERSIONS) support ÃINo
• QÁÇZ½Õ
make modules
make modules_install
•
ógrub.conf © G ¥ {kernel q € Vnomodules Ý ölilo.conf u Ý
iappend=nomodules q
Ž9A. O轛X
256
A.4.
ÙÇýî
ÜRÍõ•Linux X{fåÇ>kÁ{ýî
A.4.1.
“ãê{©l
— •Linux XZÇ{ÜL{°ÿ©lYJ©l
4 J®‰Xäq?K®éXÍh)Jà{~’Þ{
• /usr/src/linux-2.4/Documentation
A.4.2.
‹~{5
http://www.redhat.com/mirrors/LDP/HOWTO/Kernel-HOWTO.html —
•
{The Linux Kernel HOWTO
•
http://www.kernel.org/pub/linux/docs/lkml/ — linux-kernel
…Gï,
u Linux © l ™
Ž9B.
Gnu Privacy Guard œ ‹–‹¯,Ǟ…GóQ,Ç¥ÌXÌú/|ÖRÚXs{4Çý"4é|,1XÄ
ºR–4•{ž…G
ó:{…0*ÑÁ´:Ä¥ÇfG/ž4UófUÇ"ޅ¦Çl€ó…Û-”Ç
†tÇ¢tHÙø{/,Éu…fG–‹:0*“\֞…G/žóqÖì-Ò©
Qǖ‹fR[/Du3Ž/fú/|<Ý4•
ÐÏâÇ|[ˆYÇRed Hat Linux 9 ÝiêGnuPG - GNU Privacy GuardÃGNU [ˆ¥
,Ä- Çó›nRed Hat Linux “ã¥ú倓ãǑÁGPG.
GnuPG 4~•“\/f{ÓäÖÇ4éPGPÃPretty Good PrivacyÇ«I¡h{·Ç“Ä
·b{q\Z½D{S&~GnuPGÇ,1É{jâZ/f·Ç?,1&~jhüÖ
Ãdigitally signingÄuèy{/fGnuPG ¤ê‰·ùDèPGP 5.x
OGnuPG ZÙÇ·)ï/ŽÇ{“\/f,̦ÙÇv*ø:ØWindows
ZMacintoshÄÞ{ž…GǓ/Ž
GnuPG &~ÚØ·bÃpublic key cryptographyÄu~’
ؓ\{jâb¦óÚØ·b
0™¥ÇÄܲØÒÕÚØZ·ØZ/fé0ÝØÒqÖ쐦{ÚØÇûXa”ñ
+{·Ø
·v•éØÒ{&~ó:{ÝéÁ{·b¥ÇQv0ы#3{ØÒÇÆ¢,1&~
Y²#3{ØÒuÉ
${Q‰·óÚØ·b¥ÇܲØÒ??Õ²ÚØDz·ØÇ
|݄²Æ¢{·Øâ·Çb4ÚYÆ¢{ÚØ~ÚØ·{jâ~·Øb‰·Ö~·
Ø·{jâ~ÚØb‰·
­
ÔÇ,1²ÚؘÉ[.¦ƒŸq“\/f{|Çb4ûX5[|
Ø{·Ø
·b{õj#.§ñýVõù{)ŒÖ•Ç{Íc{4óý9¥Ç·¢æ‚
éGnuPG ‹ê{ê‰ÇOó{/f¥)&~·b•GnuPGPGP Z·
b{-ûfåÇ>kD‘B.8 
B.1.
{˜©G
ó‘'äqGnuPG ×{Ç{Ìø9¥ÌOÇ.gnupg ø9,Çý1.2 åÇÙ
{ ˜ © G Ö . ,.gnupg/options • .gnupg/gpg.conf ˜ * ó { Ì ø 9 ¥ I X
t.gnupg/gpg.confÇ.gnupg/options ©GÒÌú&~˜*&~Çý1.2 ÝÍ°ÇM?
&~1Â*­c×Ö{{˜©GÕ
mv ~/.gnupg/options ~/.gnupg/gpg.conf
˜*,1.0.7 1{Çý¥ÿÇ,1ó{ØÒW¥OüÖ¥?u>áØÒW{6¯
-‰qYv*ljq'1×Õ
gpg --rebuild-keydb-caches
Ž9B. Gnu Privacy Guard œ 258
B.2.
´·>å
ó‰qGnuPG ×Ç,ÌtY>åÕ
gpg: Warning: using insecure memory!
ñ”´·4„•:Ê~’Ãý?˜*~’Ãý?ÇÆ¢,1‰
q ? i { á ý q Ö ÃDoSÄ Ô â Ö Y Ò , Ì Ä “ \ ¯ ‹ û  > k
Ýhttp://www.gnupg.org/(en)/documentation/faqs.html#q6.1
,Ìt1>åÕ
gpg: WARNING: unsafe permissions on configuration file "/home/username/.gnupg/gpg.conf"
˜*{{˜©G{Y!ú÷˜ãŽÙÆ|ÖRÇY>åÒÌú+˜*tY´·Ç
M?‰q1×u•#©G{Y!Õ
chmod 600 ~/.gnupg/gpg.conf
žD{´·>å4Õ
gpg: WARNING: unsafe enclosing directory permissions on configuration file
"/home/username/.gnupg/gpg.conf"
˜*{{˜©GÄó{ø9{Y!ú÷˜ãŽÙÆ|ÖRÇY>åÒÌú+˜*t
Y´·ÇM?‰q1×u•#©G{Y!Õ
chmod 700 ~/.gnupg
˜*,1{Çý¥ÿGnuPGÇ,Ìt1>åÕ
gpg: /home/username/.gnupg/gpg.conf:82: deprecated option "honor-http-proxy"
gpg: please use "keyserver-options honor-http-proxy" instead
ñ”´·4O{~/.gnupg/gpg.conf ©GÝ91qÕ
honor-http-proxy
Çý1.0.7 ZÍ°õ¡&~«ª²1Þq•ÄÕ
keyserver-options honor-http-proxy
B.3.
ÄØÒé
)&~GnuPGnjDÄc{ØÒéÕ²ÚØZ²·Ø
ÄØÒéÇóshell +ÇEœ1×Õ
gpg --gen-key
O&~!ª${4{~’ARÇa”~9t{~’ARÃX4ÊARĉq”×
Ìtǐë¶ôÇÙ¥‹ØÒ 1ÇÝiÇM?{ 1Ãå€Äǔ¶ô¡‘Õ
gpg (GnuPG) 1.2.1; Copyright (C) 2002 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
Ž9B. Gnu Privacy Guard œ 259
under certain conditions. See the file COPYING for details.
Please select what kind of key you want:
(1) DSA and ElGamal (default)
(2) DSA (sign only)
(5) RSA (sign only)
Your selection?
õjF 1{¶ôÌóiRïñå€ 1,1•[Enter] EuzIå€ 1
ó‘ǶôÞÇa”zIå€ 1Õ(1) DSA and ElGamal” 1ÌãŽÄjhü
ÖÇ?~Ü«bu·ÃZ‰·ÄEœ1 l€•[Enter] E
ZÇ ØÒLBݟá/žÇØÒ֟Ç{>却Ôâ{ÅÒÖå€{1024
éõj~’u€.ê§ÇO$•[Enter] EuzIå€
Ç 1>½ØÒ{‹HÏÇ/žÇ&~倊Ã0 = key does not expireÄÒ,
1˜*.÷ÁÇ,φÏÇ>Ôlj/Z¦ÚØ{|ÊYÇ,φÏ?5Æ¢
زcÚؘ*X÷Á,φÏÇÌúFh€YÇû½•[y] uh€{û½
{ÇÖ4
Ø~’IDÇYÝi{v֞…GŒÇ1ùÙÇ, Չhˆe
€Ç{ÁÒÌñQœ{få{!
`zIê{ ǤŒQœÇ=é
" Z{AR=øÇP{#=4GnuPG “\âF{äýGž˜Ç,1ó=¥×ZLBU
ñjÝ)šnR
Qœ?Dè=郀Ç{ØÒÒÄêÌtZ1#5{>åÕ
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
+++++.+++++.++++++++....++++++++++..+++++.+++++.+++++++.+++++++
+++.++++++++++++++++++++++++++++++++++++++..........................++++
h¶ôÙÄ*Ž€Ç{cØÒқ*ÄÕ?ú8˜ó{Ìø9{.gnupg ø9¥ïÞ
{ØÒÇ&~Á{×Õ
gpg --list-keys
ÌtZ1#‘{QñÕ
/home/username/.gnupg/pubring.gpg
----------------------------------------pub 1024D/B7085C8A 2000-06-18 Your Name <you@example.com>
sub 1024g/E12AF9C4 2000-06-18
˜*&~„•1.0.6 {ÇýuÄGnuPG ØÒDz{·Øsñ€‘sœÇcØÒnjä
f{·ØuÉ&~°•1.0.7 Çý{1øüÖf{ØÒÇEœ1{×Ã>
¦<user-id>ÄÕ
gpg --edit-key <user-id>
óCommand> +€EœtrustÇl€ 5 = I trust ultimately uf{·Ø
Ž9B. Gnu Privacy Guard œ 260
B.4.
ÄPBïyV
óÄêØÒ郀Ça”{ÚØOPBïyV˜*ƒê{=éÇݔ=
é.ú'RÇa”ÚYYPyVu/~’{ÚØXa”òú&~
Õ
óÄBïyVÇX4óB簾Ä{ØÒÇ#'ÇÉ
Øê«*ŽØÒú™Ú&
~{“\0óƒê=ͦêISPόÄÇÝmcPÄìÿd{<YÇYPBïyVÒ,1
~uœ·Æu{ÚØÃH
óØÒúBïƒÇ{üÖé JÝÖñ{fG{|‹HÇ?,1úÆ¢~u‰·Bt{>
åÄBïyVÇ&~--gen-revoke 1Õ
gpg --output revoke.asc --gen-revoke <you@example.com>
Õ?ǘ*óÞÁQê--output revoke.asc 1Ç{BïyVÒÌú+ó)ïQ
ñÇý+¶ôÞ¯l,1&~©ýöìu²Ç¢="tÇ©ý©G¥Çb4†z²Qñ
ÝUœ~9ø9¥{©G,Í;4,qYøÇÒ,1â?yV1÷Ruƒ~ÇÝRÙ#t
žc¥Ç?8óǓ\ƒÿ
ÙQñÌ¡‘Õ
sec 1024D/823D25A9 2000-04-26 Your Name <you@example.com>
Create a revocation certificate for this key?
•[Y] uOïñØÒ{BïyVZÇÌúF BïÆOÝ
ØÃch€êÆO
€ÇQœ~uÄØÒ{=é
BïyVÃrevoke.ascÄOq€ÇÇÌ •{~9ø9¥a”²Ç…›t<žc
¥Ç??8óǓ\{0Ø*Xw˜[óRed Hat Linux ¥²©G…›tžcÞÇ>
kÝRed Hat Linux œ Ä
B.5.
sñÚØ
ó&~ÚØ·bƒÇÙÆ|Œ‹P{Úز{ÚØ
ØÉ/fé0ÝØÒqÖ
ìnjsñÃexportÄY²ØÒ
‰sñÚØbóÞ+ÇÝóž…G¥*"ÇÇEœ1×Õ
gpg --armor --export <you@example.com> > mykey.asc
XÌt[QñÇOósñÚØ{3¤²QñÝUœÇ©GǞ˜Çw
)mykey.asc {©GÃ¥×¥X> mykey.ascÇØÒÒÌú+ó)ïQñý¶ôÞÄ
óÇmykey.asc ©GÒ,1ú‚œž…GÝsñtØÒqÖ쥆Y²ØÒÇE
œless mykey.asc uóIì¥K”©GÃEœ[q] uRñ¦ìÄÇa”¦Á{Qñ#
‘Õ
-----BEGIN PGP PUBLIC KEY BLOCK----Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org
mQGiBDkHP3URBACkWGsYh43pkXU9wj/X1G67K8/DSrl85r7dNtHNfLL/ewil10k2
q8saWJn26QZPsDVqdUJMOdHfJ6kQTAt9NzQbgcVrxLYNfgeBsvkHF/POtnYcZRgL
Ž9B. Gnu Privacy Guard œ 261
tZ6syBBWs8JB4xt5V09iJSGAMPUQE8Jpdn2aRXPApdoDw179LM8Rq6r+gwCg5ZZa
pGNlkgFu24WM5wC1zg4QTbMD/3MJCSxfL99Ek5HXcB3yhj+o0LmIrGAVBgoWdrRd
BIGjQQFhV1NSwC8YhN/4nGHWpaTxgEtnb4CI1wI/G3DK9olYMyRJinkGJ6XYfP3b
cCQmqATDF5ugIAmdditnw7deXqn/eavaMxRXJM/RQSgJJyVpbAO2OqKe6L6Inb5H
kjcZA/9obTm499dDMRQ/CNR92fA5pr0zriy/ziLUow+cqI59nt+bEb9nY1mfmUN6
SW0jCH+pIQH5lerV+EookyOyq3ocUdjeRYF/d2jl9xmeSyL2H3tDvnuE6vgqFU/N
sdvby4B2Iku7S/h06W6GPQAe+pzdyX9vS+Pnf8osu7W3j60WprQkUGF1bCBHYWxs
YWdoZXIgPHBhdWxnYWxsQHJlZGhhdC5jb20+iFYEExECABYFAjkHP3UECwoEAwMV
AwIDFgIBAheAAAoJEJECmvGCPSWpMjQAoNF2zvRgdR/8or9pBhu95zeSnkb7AKCm
/uXVS0a5KoN7J61/1vEwx11poLkBDQQ5Bz+MEAQA8ztcWRJjW8cHCgLaE402jyqQ
37gDT/n4VS66nU+YItzDFScVmgMuFRzhibLblfO9TpZzxEbSF3T6p9hLLnHCQ1bD
HRsKfh0eJYMMqB3+HyUpNeqCMEEd9AnWD9P4rQtO7Pes38sV0lX0OSvsTyMG9wEB
vSNZk+Rl+phA55r1s8cAAwUEAJjqazvk0bgFrw1OPG9m7fEeDlvPSV6HSA0fvz4w
c7ckfpuxg/URQNf3TJA00Acprk8Gg8J2CtebAyR/sP5IsrK5l1luGdk+l0M85FpT
/cen2OdJtToAF/6fGnIkeCeP1O5aWTbDgdAUHBRykpdWU3GJ7NS6923fVg5khQWg
uwrAiEYEGBECAAYFAjkHP4wACgkQkQKa8YI9JamliwCfXox/HjlorMKnQRJkeBcZ
iLyPH1QAoI33Ft/0HBqLtqdtP4vWYQRbibjW
=BMEc
-----END PGP PUBLIC KEY BLOCK-----
B.5.1.
sñtØÒqÖì
˜*¦/f{|ççÃÇ,1sñÚ؀ŏ˜ÉÆ¢,4ǘ*{ŠŒ(Y
0ÇŘÚØÒ:žDDÅêÇ,1&~ØÒqÖìu‰ûYǯ
ØÒqÖì4ÇóÉޏ[|Ñ?Z”ÚØ{sE,~{ØÒqÖì‹iõÇõjÑ
ACâÑ
$3ZÖ5ÇØÒqÖì˜ÚØҘ35ċØÒqÖì˜ÚØø/f|,
1,ØÒqÖì¥>F{ÚØDzÇsœtÆ¢{ØÒWÞÇl€Æ¢Ò,1ZŸq“\/f
ê
" OõjØÒqÖì43Z{Ç5ÇØÒqÖì˜{ÚØZ5ċØÒqÖì˜ÚØ{H
*øX,Ç,1IIX3{ØÒqÖ윯Ç{!åš4Keyserver.Net ÇÇ •http://www.keyserver.net
,1,shell +ݨì¥˜{ÚØÖlnjó"b˜Ý,ØÒqÖìzBØ
Ò
• óshell +ÇEœ1×Õ
gpg --keyserver search.keyserver.net --send-key you@example.com
• ó¨ì¥ÇÝtKeyserver.NetÃhttp://www.keyserver.netÄÇl€ u{PGP Ú
Ø
{ÇÖ4²Ú؅›?*"tÞôh{ ˜¥˜*‰YÇ,Ç{€ÒÇ&~
ïZ½Õ
&~IìKsñ{ÚØ©GؑB.5 ¥O{mykey.ascÄ— ž˜Ç&~less
mykey.asc ×
~`)Bñ+,BEGIN PGP tEND PGP ƒ-{ċq?…›Ç¢ÃkDCB-1Ä
²mykey.asc ©G{Ž*"tKeyserver.Net Þ{ôh ˜¥Ç04šâ`){¥
-•<Ã¥&~ÜE`)Ç3•&ÜǕ<Äl€óØÒqÖìޕSubmit •
<Ø*ñêFǕ”Þ{Reset •<u8ø*"{ØÒÄ
•
•
•
Ž9B. Gnu Privacy Guard œ 262
CB-1. …›ÚØ
Õ?ǘ*5Çä•5{ØÒqÖì
bÚØÇ0Z1ÞZ½äýÞ#3
–$"LÕ·ÄX&~{4shell +¤4y‘ÇÑÌt>å/ØÒ.ú
ÄÕ
b— Ýóshell +ÇÝóØÒqÖì{5Þ,óåÇ.Z“\/f{~’Ò,
1sœ{ÚØ?²ÇtÆ¢{ØÒWÞê
B.6.
sœÚØ
ØҐ¦{0Á4²/|{ÚØsœt{ØÒWÞ— ÇZsñÚØø;\hsœ/
|{ÚØÇÒ,1~Çu‰·Æ¢u{…G?ÊâØÒWÞÆ¢{ÚØu5†Æ¢{jh
üÖ
sœØÒ{!;\{0ƒ4,5ÞñÝâ?Ç
ÚØúñ?â?tkey.asc ©G€Ç&~ï×u²Çt{ØÒWÞ
gpg --import key.asc
«â?ØÒ{04&~¨ì{Save AsÃ?Ä՘*&~Mozilla ƒ¡
{¨ìÇ,1óØÒqÖì¥ItìØÒDz”?©ý©GÚâFile => Save Page
AsÄóFiles of Type k{nh\¥Ç Text Files (*.txt)l€ÇÒ,1sœ”ØÒ—
b4/ƒêû?{©G֞˜Ç˜*²ØÒ?w)newkey.txt {©ý©GÇsœ©
GÇóshell +ÇEœÁ{×Õ
gpg --import newkey.txt
Ç{Qñ̦Á#‘Õ
gpg: key F78FFE84: public key imported
gpg: Total number processed: 1
gpg:
imported: 1
5†”,Ç4dÄÕÇ&~gpg --list-keys ×Öa”t{ØÒWÞïñê²cs
œ{ØÒ
hsœÚ؀DzÇt{ØÒWÃkeyringÄÞÇÇ4Çâ?ÚØZ·Ø{©Gl
€Çh,”"¥ñ©lÝ©GÇ,1Êât{ØÒWÞ{ØÒuDè Ç©l
Ž9B. Gnu Privacy Guard œ B.7.
jhüÖóý°Ú
B.8.
ÙÇýî
263
jhüÖ,1~uZCU{üÖ)vZ:{/f0*X3Ç:ü֋,ú–Çjh
üÖeÃú–Y4O”üÖ4~{շ؛*{ÇBf|,1&~{ÚØuDè
Ç
jhüÖÌÉ©lÕ-ÖY?›øóÉ©lüÖ{-4üÖ{\IO$ǘ*
ì|èC•©lÇüÖDèÒ̽ìJž…GǓǘExmh ÝKDE {KMailÇóǓ
{ŽÁ¥Ýiê&~GnuPG uÉ©lüÖ{Õ
Ü«‹~{jhüÖ4ÕÀüÃclearsignedÄ©lZI¬üÖÃdetached signaturesÄYÜ¡ü
ÖÑ&~3ø{èyâ“ÇXFBf|É{r>剷
óÀü>å¥Ç{üÖÌófGÌ1©ýLo*ñÖI¬üÖ4Z{/fåñ{
ÇI{©G
·b¥,1ÏÄÿXƒÿôõÇY°éGnuPG üîšyëê˜*.ýœê‰
Y0Á{#Ç,1kÁ{ýî
B.8.1.
“ãê{©l
• man gpg
B.8.2.
•
•
•
Zinfo gpg — GnuPG ×Z 1{O„k
‹~{5
http://www.gnupg.org — GnuPG 5ÇÙ¥‹t!cGnuPG qÇý/¢4Ã{~’
1ùÙÇ·ýÍ{Óz
http://hotwired.lycos.com/webmonkey/backend/security/tutorials/tutorial1.html
—
6
¯Webmonkey {Encryption Tutorial uŸZ¦ó·b1ù˜[a~Y1b
http://www.eff.org/pub/Privacy — ž × ä — Ì ÃElectronic Frontier FoundationÄ Ç
Privacy, Security, Crypto, & Surveillance{l
B.8.3.
#V÷
Ç*VPhilip R. ZimmermanÖMIT Press ñÇ
Ç*VSimson GarfinkelÖO’Reilly & Associates, Inc. ñÇ
E-Mail Security: How to Keep Your Electronic Messages PrivateÇ*VBruce SchneierÖJohn Wiley & Sons ñÇ
•
The Official PGP User’s Guide
•
PGP: Pretty Good Privacy
•
264
Ž9B. Gnu Privacy Guard œ ÂZ
GZnR
/dev/shm, ?
/etc/auto.master, ?
/etc/cups/, ?
/etc/exports, ?
/etc/fstab, 2, ?
/etc/fstab
©G
&~é~c{, 19
/etc/hosts, 90
/etc/httpd/conf/httpd.conf, ?
/etc/named.custom, ?
/etc/printcap, ?
/etc/printcap.local, ?
/etc/sysconfig/dhcpd, ?
/etc/sysconfig/iptables, ?, ?
/proc directory, ?
/var/spool/cron, ?
,?
“\
“\qÖì
URL, ?
“\u
‰:, ?
“ã, ?
“ãê{©l, ?
à=Rh, ?
é“\u{‰:, ?
6¯, ?
Ëz, ?
žGÝ, ?
ÿ, ?
V÷, ?
ØyV, ?
5, ?
~•{URL, ?
ØÒ
Ä, ?
yV
A, ?
AüÖü, ?
O>F, ?
Y…, ?
ÿ€Ý#, ?
CA, ?
.?, ?
ü, ?
“\ÿ/
(D“\ÿ/{˜Óä)
“\ÿ/{˜Óä
iptables qÖ, ?
“\ÿ/
°ÿ, 95
Ã3Û, ?
¥ÿ, ?
½›f{÷÷, ?
“ã
kickstart
(Dkickstart “ã)
LVM, 73
žGRAID, 69
c{, 19
®, 22
quotacheck ×Ç~u5†, 22
ç·, 22
,ÞÏ, 21
¢~, 23
ÙÇýî, 23
é~, 19, 23
/etc/fstabǕ, 19
quotacheckÇäq, 20
O{©G, 20
ž!, 21
š©Gø:I{, 21
š~’I{, 20
škI{, 21
m!, 21
cÑ?K
(Dc{)
parted
(Dparted)
K\å{˜, ?
CUPS, ?
GNOME K\®ì, ?
•#K\å÷˜, ?
IPP K\å, ?
JetDirect K\å, ?
Novell NetWare (NCP) K\å, ?
Samba (SMB) K\å, ?
²{˜â?t©G, ?
ýK\å, ?
öPÄǓ, ?
ö?K\å, ?
A, ?
†K\"Xå, ?
†K\"XåÇ×q, ?
,×qK\, ?
sñ÷˜, ?
á0, ?
úãŽ{Ìå, ?
&~LPRng, ?
ø:)Œ 1, ?
®K\*, ?
䕩ý{a~Ǔ, ?
É{CUPS (IPP) K\å, ?
×q 1, ?
â?{˜, ?
Á…{˜, ?
ÍøK\å, ?
K\å, ?
å€K\å, ?
266
PÄǓ 1, ?
GhostScript ½,H, ?
˜QˆefR(EOT), ?
˜¦fRÃFFÄ, ?
"½™j⏩ý, ?
R©ýݦÄPostscript, ?
ŸÍ, ?
‹H{,HK, ?
½Ñ›Postscript, ?
’<LB, ?
R>K\*, ?
Íø?K\å, ?
CUPS (IPP) K\å, ?
IPP K\å, ?
JetDirect K\å, ?
LPD K\å, ?
Novell NetWare (NCP) K\å, ?
Samba (SMB) K\å, ?
ýK\å, ?
/C), ?
•?K\å, ?
ÏÇLPD K\å, ?
­×Ö?K\å, ?
­÷˜, ?
K\å{˜Óä
(DK\å{˜)
K\åø:#¦ì, ?
\~’Ü*, 67
sñNFS ©Gø:, 114
®›‰®ìËz
(Dd{˜)
ÄÕÌå{˜NF
(DDHCP)
'b, iv
3Û{˜
(DGNOME Lokkit)
IK
)ü
e2label, 15
†ï,, 14
O, 14
Â*š
mkfs, 15
Íø, 16
›*
mkpart, 15
­c™ILB, 17
IK,
†, 14
I
RAID äú, 7
qÖ
;›6¯, ?
qÖ{˜Óä, ?
ñ
NFS ©Gø:, ?
å
¢~CtrlAltDel , ?
ÉËz
(Dd{˜)
·
&~GnuPG, ?
b¦8-, 3
‰:, 3
Íø, 4
, 3
M?LB, 3
#Ä, 5
‰·
&~GnuPG, ?
ë, i
›úÜ*, 68
ŸÇ, 185
ÍÇÜ*
½B, 65
,~Óä, 67
ò, 11, 73
žGÝ, 147
;݄
&©G,,6¯, ?
;›Ñ6¯
½B, ?
¢~, ?
{˜, ?
é~, ?
\\¢~, ?
=
š, ?
›,Ï, ?
=,ÏǛ, 181
\öò, 11, 74
\öò®ì
(DLVM)
\öò, 11, 73
×q 1
,K\, ?
?~Þ, ?
X
Ln?|Ñ, ?
\š, ?
½›, ?
Oè, ?
½›, ?
õÿ®ì|Ñ, ?
Oè, ?
ÜL, ?
ÜLš, ?
ÿ, ?
ñ, ?
XÜL
ïÞ, ?
267
Wñ, ?
ñœ, ?
{˜
NFS, ?
;›Ñ6¯, ?
¶=, ?
Y)¢Ëz
(Dd{˜)
†“†ì
,H, ?
´·, ?
†“©G ˜, ?
mcG, ?
œÂ, ?
†“©G, ?
(D†“†ì)
syslogd, ?
†, ?
½ , ?
5†, ?
Ãc, ?
¢, ?
žGRAID
(DRAID)
žGÝ
“ã, ?
&~žGÝ®Óä, ?
â{˜©G, ?
†®, ?
†®úÍø{, ?
,†IÍø{©G, ?
½ ©l, ?
ÜR©Gï,, ?
" , ?
Íø, ?
&~žGÝ®Óä, ?
ÿ, ?
&~g½©G{ċV, ?
Dè, ?
vø, ?
~RPM mc, ?
žGÝ®Óä, ?
“ãžGÝ, ?
ÍøžGÝ, ?
d®Óä
(Dd{˜)
d{˜
CIPE Ëz, 87
íÙ, 89
DHCP, 80
ISDN Ëz, 81
íÙ, 82
PPPoE Ëz, 84
xDSL Ëz, 84
íÙ, 86
®›‰®ìËz, 83
íÙ, 84
®/etc/hosts, 90
®DNS ÷˜, 90
®Ìå, 90
íÙ÷÷, 91
·ÕIP, 80
\öd÷÷, 92
{˜©G, 92
íÙ, 93
Y)¢Ëz, 86
íÙ, 87
÷÷/Ö, 93
Ã"Ëz, 88
1ÔËz, 80
íÙ, 81
, 80
d÷÷;›, 91
d©Gø:
(DNFS)
©l
It.“ã{, ?
©Gø:, ?
ext2
(Dext2)
ext3
(Dext3)
LVM
(DLVM)
NFS
(DNFS)
);, ?
Ô®)Œ, 74
Ô®ò, 11, 73
ø:Á…, 65
žD¯, 65
ƒÊ=, 65
ÃZsœRed Hat Linux, 65
mGݞG¯, 65
ø:få
ŸÇ, ?
häq{, ?
?~Þ, ?
Bø, ?
©Gø:, ?
/dev/shm, ?
);, ?
mG, ?
få
•{få, ?
èy, ?
èy{˜Óä, ?
×qÇý, ?
èy, ?
Kerberos |Ñ, ?
LDAP |Ñ, ?
MD5 =, ?
268
|Ñ, ?
¶=, ?
~’få, ?
SMB
žcÇ&~, ?
k{˜
groupadd, ?
Hesiod, ?
LDAP, ?
NIS, ?
,?
¥?
1ÔËz
(Dd{˜)
Zs
\~’Ü*, 67
›úÜ*, 68
ÍÇÜ*, 66
Zsc, ?
mG
†, ?
mGRAID
(DRAID)
mG¨ì, ?
~’
(D~’{˜)
~’®ì
(D~’{˜)
~’{˜
²~’tk, ?
†~’ï,, ?
•#~9shell, ?
•#=, ?
•#\Á, ?
•#Ìø9, ?
,H~’ï,, ?
=
›,Ï, ?
=,Ï, ?
×q{˜, ?
passwd, ?
useradd, ?
÷˜~’BR,Ï, ?
ý~’BR, ?
~’, ?
~’•k, ?
•~’, ?
…GQS®
(DMTA)
…GQS®#¦ì, ?
ó©ýÜ*¥éÄ, ?
…G~’S®, 169
Õ½
©l, ii
äqÿ/, ?
äqÿ/1, 67
ñœXÜL, ?
ÌZs9, 65
Ě{Ö, ?
k
(Dk{˜)
†kï,, ?
,Hkï,, ?
k, ?
~’•k, ?
•kau, ?
•k¥{~’, ?
A
anacron
ÙÇýî, ?
qÖì
D {˜Óä)
“\, ?
ÙÇýî, ?
#V÷, ?
Apache HTTP
( HTTP
APXS, ?
at, ?
ÙÇýî, ?
authconfig
Dèy{˜Óä)
(
authconfig-gtk
Dèy{˜Óä)
(
autofs, 113
/etc/auto.master, ?
B
batch, ?
ÙÇýî, ?
{˜, ?
å€ø9, ?
,KL, ?
5ÌK, ?
t5ÌK, ?
a~•#, ?
BIND
269
C
E
CA
(
chage
D“\qÖì)
×
›=,Ï, ?
chkconfig, ?
CIPE Ëz
(DdËz)
cron, ?
crontab {¾, ?
{˜©G, ?
ÙÇýî, ?
~’½B{Ö, ?
e2fsck, 2
e2label, 15
exports, ?
ext2
ext3
ext3
,1
ext2
,1
crontab, ?
CtrlAltDel
floppy
free, ?
ftp, ?
åÇ¢~, ?
, ¤Æt, 2
O
, ݦt, 2
u
F
kÇ&~, ?
CUPS, ?
G
D
df, ?
DHCP, 127
dhcpd.conf, ?
dhcpd.leases, ?
dhcrelay, ?
shared-network, ?
,?
,?
,?
,?
,?
,?
,?
,?
,?
,?
,?
,?
,?
dhcpd.conf, ?
dhcpd.leases, ?
dhcrelay, ?
diskcheck, ?
DSA
,?
DSOs
,?
du, ?
qÖì{˜
0’{˜
Ëzt
×q 1
ÙÇýî
éÄqÖì
\Ûkj
&~ÆO
*ŽqÖì
1
ÝS®

k
ØÒ
Ä
ñœ
GNOME Lokkit
DHCP, ?
iptables
,?
,?
qÖ
ýÌå
äý3Û{˜, ?
íÙ3Û, ?
{˜Ê/qÖ, ?
…GÝ, ?
GNOME K\®ì, ?
•#K\å÷˜, ?
GNOME ø:)@ì, ?
gnome-lokkit
(DGNOME Lokkit)
gnome-system-monitor, ?
Gnu Privacy Guard
( GnuPG)
GnuPG
,?
,?
,?
,?
RPM
,?
, ?, ?
,?
,?
,?
,?
,?
GPG
( GnuPG)
D
sñÚØ
tØÒqÖì
sœÚØ
:“\?´·
5† žGÝüÖ
ë
´·>å
ÙÇýî
ÄPBïyV
ÄØÒé
jhüÖ
D
270
H
hesiod, ?
HTTP
{˜Óä
Q†“, ?
F؆“, ?
ÜL, ?

(DHTTP )
HTTP 
DirectoryIndex, ?
ErrorDocument, ?
ErrorLog, ?
Group, ?
HostnameLookups, ?
KeepAlive, ?
KeepAliveTimeout, ?
Listen, ?
LogFormat, ?
LogLevel, ?
MaxClients, ?
MaxKeepAliveRequests, ?
Options, ?
ServerAdmin, ?
ServerName, ?
TimeOut, ?
TransferLog, ?
User, ?
httpd, ?
hwbrowser, ?
I
insmod, ?
ISDN
(
Ëz
Dd{˜)
K
Kerberos, ?
kickstart
©G˜[úIt
“ã
“ãd
ä•c
䕞c
ä•d
)
,Zsc¥
,Zsžc
&~žc,c ¥, 46
©GÂ*
©G ˜
{˜ì
, 46
kickstart
, 27
LVM, 35
, 45
, 45
, 44
, 45, 45
, 46
, 46
, 46
#1
, 27
, 44
Kickstart
, 49
lý
lý
{˜
â?
3Û{˜
IK
žG
Ê=
·
Ä*
äý{˜
Ec
žGÝ K
`)
d{˜
©ýÜ*“ã
“ã0
èy 1
ZsãñǓ
ZsãñǓ 1, 51
ªÓ, 49
ªÓ|Ñ, 49
½, 49
­cZs, 50
kickstart ©G
%post
, 62
%pre
, 61
X
, 57
, 63
, 57
, 52
RAID, 53
, 49
, 49
, 50
, 49
, 49
, 60
, 49
, 49
, 55
, 50
, 50
, 56
, 51
%include, 41
%post, 43
%pre, 42
auth, 28
authconfig, 28
autostep, 28
bootloader, 30
clearpart, 31
device, 32
deviceprobe, 32
driverdisk, 32
firewall, 32
install, 33
interactive, 34
keyboard, 34
lang, 34
langsupport, 34
lilo, 34
lilocheck, 35
logvol, 35
mouse, 35
network, 36
part, 37
partition, 37
raid, 38
reboot, 39
rootpw, 39
skipx, 39
text, 39
timezone, 39
271
upgrade, 40
volgroup, 41
xconfig, 40
zerombr, 41
, 27
, 33
, 43
{Â*
“ã0
“ã€{˜
ÝiÇ©G{Ž, 41
O, 28
ä•c, 45
䕞c, 44
ä•d, 45, 45
žGÝ {䍽, 41
Ç{)¾, 27
1, 28
½“ã{˜, 42
L
LDAP, ?, ?
logrotate, ?
lpd, ?
LPRng, ?
lsmod, ?
lspci, ?
LVM, 11
kickstart, 35
, 11
, 11, 74
, 11, 73
, 74
, 11, 73
Z
‰:
\öò
\öò
Ô®)Œ
Ô®ò
ó“ã,Ç¥{˜LVM, 73
M
Maximum RPM, ?
MD5
,?
mkfs, 15
mkpart, 15
modprobe, ?
modules.conf, ?
MTA
,?
=
÷˜å€
&~…GQS®#¦ìu#¦, ?
MUA, ?
N
named.conf, ?
neat
(
)
netcfg
(
)
Network Device Control, 93
NFS
/etc/fstab, ?
autofs
( autofs)
,?
,?
,?
,?
,?
,?
,?
,?
,?
NFS
,?
NIS, ?
ntsysv, ?
Dd{˜
Dd{˜
D
sñ
qÖìçÕ
ñ
×q{˜
{˜
ÙÇýî
éÄqÖì
*ŽqÖì
ÌåÖÂ*
qÖì{˜Óä
O
O’Reilly & Associates, Inc., ?, ?, ?
OpenLDAP, 164, 165
openldap-clients, ?
OpenSSH, ?
DSA
,?
RSA
1
,?
RSA
,?
ssh-add, ?
ssh-agent, ?
GNOME , ?
ssh-keygen
DSA, ?
RSA, ?
RSA
1, ?
,?
/etc/ssh/sshd_config, ?
,?
,?
scp, ?
sftp, ?
ssh, ?
,?
,?
OpenSSL
,?
ØÒ
Ä
Çý ØÒ
Ä
ØÒ
Ä
¥
Çý
qÖì
éÄZ*Ž
0’
ÙÇýî
ÄØÒé
ÙÇýî
272
P
pam_smbpass, ?
pam_timestamp, ?
parted, 13
, 14
, 14
, 13
, 16
, 14
†IK,
OIK
×,
ÍøIK
÷÷
­c™IIKLB, 17
, 13
PCI ÷÷
ïÞ, ?
postfix, ?
PPPoE, 84
printconf
(
printtool
(
ps, ?
DK\å{˜)
DK\å{˜)
Q
quotacheck, 20
quotacheck
×
~5†{thu, 22
quotaoff, 23
quotaon, 23
R
RAID, 7
,8
0, 8
1, 8
4, 8
5, 8
,7
ÿ/
ÿ/
ÿ/
ÿ/
ÿ/
‰:
{˜žGRAID, 69
žGRAID, 7
&~ÆO, 7
mGRAID, 7
RAM, ?
rcp, ?
Red Hat
,?
Red Hat
,?
redhat-config-httpd
( HTTP
)
redhat-config-kickstart
( Kickstart
)
redhat-config-network
(
)
redhat-config-network-cmd, 93
redhat-config-network-tui
ÍcS®
d
D {˜Óä
D
{˜ì
Dd{˜
Dd{˜
DžGÝ®Óä
DK\å{˜
D“\ÿ/{˜Óä
D~’{˜Zk{˜
Dd÷÷;›
D†“†ì
D…GQS®#¦ì
D…GQS®#¦ì
DK\åø:#¦ì
(
)
redhat-config-packages
(
)
redhat-config-printer
(
)
redhat-config-securitylevel
(
)
redhat-config-users
(
)
redhat-control-network
(
)
redhat-logviewer
(
)
redhat-switch-mail
(
)
redhat-switch-mail-nox
(
)
redhat-switch-printer
(
)
resize2fs, 2
RHN
( Red Hat
)
rmmod, ?
RPM, ?
GnuPG, ?
md5sum, ?
,?
,?
,?
,?
,?
,?
,?
,?
,?
D
d
“ã
&~žGÝ®Óä
â{˜©G
†®
†®úÍø{žGÝ
†®©Gï,
5†žGÝüÖ
ÙÇýî
" R>“ã
&~žGÝ®Óä, ?
Íø“ã, ?
÷ø), ?
ÿ, ?
&~, ?
&~g½©G{ċV, ?
V÷, ?
mc, ?
mcžGÝ, ?
CošŽÁ, ?
5, ?
©l, ?
©GàB
‰û, ?
Dè, ?
vø, ?
~†IÍø{©G, ?
RPM žGÝ®ì
(DRPM)
RSA Çý1 ØÒ
273
Ä, ?
ØÒ
Ä, ?
U
RSA
×
&~O~’BR, ?
useradd
S
V
Samba, 119
pam_smbpass, ?
,?
VeriSign
qÖìçÕ
á0
Ëz, ?
&~Nautilus uËz, ?
ZWindows NT 4.02000ME1ùXP, ?
·=, ?
{˜, ?, ?
smb.conf, ?
å€, ?
ÙÇýî, ?
éÄqÖì, ?
&~passwd u3Z=, ?
&~ÆO, ?
*ŽqÖì, ?
Coš{˜, ?
®Samba ~’, ?
{˜qÖì÷˜, ?
á0, ?
scp
(DOpenSSH)
sendmail, 169
sftp
( OpenSSH)
SMB, 119, ?
smb.conf, ?
ssh
( OpenSSH)
ssh-add, ?
ssh-agent, ?
GNOME , ?
syslogd, ?
D
D
¥
T
ÌwǓ, ?
TCP
telinit, ?
telnet, ?
top, ?
tune2fs
&~¤Ætext2, 2
&~ݦtext3, 2
&~?yV, ?
W
Windows
©GZK\á0, ?
&~
Ëzá0, ?
&~
Ëzá0, ?
&~
Ëzá0, ?
&~
Ëzá0, ?
&~
Ëzá0, ?
Windows 2000
Samba
Windows 98
Samba
Windows ME
Samba
Windows NT 4.0
Samba
Windows XP
Samba
X
Ëz
Dd{˜)
xDSL
(
xinetd, ?
Y
ypbind, ?
€
C~&~DocBook SGML v4.1 Â*UHTML ZPDF Â*&~½›
{
ZÂ,\Z½›{jade ÌwlýuU
Marianne Pecci <goddess@ipass.net> O괒CoÃÕ" ­BeZ´·Ä
óÜzMarianne Pecci ZRed Hat, Inc. {VÁŽ,€ÇÇ¢,1ú­cq
Red Hat Linux —¬©l{ÄʘÕ
Sandra A. Moore — Red Hat Linux x86 “㍠{ÌÞU|Z‘VÖRed Hat Linux œ
 {k¦ÞU|
Tammy Fox — Red Hat Linux ½› {ÌÞU|Z‘VÖRed Hat Linux œ 
{k¦ÞU|ÖDocBook {½›ZÂ,Zlý{U|Z‘V
Edward C. Bailey — Red Hat Linux x86 “㍠{k¦ÞU|
Johnray Fuller — Red Hat Linux k{ÌÞU|Z‘VÖRed Hat Linux “\
{k¦ÞU|Z‘V
John Ha — Red Hat Linux œ {ÌÞU|Z‘VÖRed Hat Linux “\{k
¦ÞU|Z‘V
Sarah SmithÃ|­]Ä — Red Hat Linux x86 “ãRed Hat Linux œ 
ZRed Hat Linux ½› {;¥© HV
Red Hat Linux
DSSSL
276
Download