summaryrefslogtreecommitdiff
path: root/sag-0.6.1-www/sag-0.6.1.html/book1.html
blob: 1b3b4d6d23724dbd3a666a3a5019819ad92c1281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN">
<HTML
><HEAD
><TITLE
>The Linux System Administrators' Guide</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet"><LINK
REL="NEXT"
TITLE="Dedication"
HREF="f23.html"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
><DIV
CLASS="BOOK"
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN2"
>The Linux System Administrators' Guide</A
></H1
><H2
CLASS="SUBTITLE"
>Version 0.6.1</H2
><H3
CLASS="AUTHOR"
>Lars Wirzenius</H3
><DIV
CLASS="AFFILIATION"
><P
CLASS="LITERALLAYOUT"
>		<TT
CLASS="EMAIL"
>&#60;<A
HREF="mailto:liw@iki.fi"
>liw@iki.fi</A
>&#62;</TT
><br>
		</P
></DIV
><DIV
CLASS="ABSTRACT"
><P
>An introduction to system administration of a Linux
    system for novices.</P
></DIV
><DIV
CLASS="LEGALNOTICE"
><P
></P
><P
>Copyright 1993--1998 Lars Wirzenius.</P
><P
>Trademarks are owned by their owners.</P
><P
>Permission is granted to make and distribute verbatim
	copies of this manual provided the copyright notice and this
	permission notice are preserved on all copies.</P
><P
>Permission is granted to process the document source
	code through TeX or other formatters and print the results,
	and distribute the printed document, provided the printed
	document carries copying permission notice identical to this one,
	including the references to where the source code can be found
	and the official home page.</P
><P
>Permission is granted to copy and distribute modified
	versions of this manual under the conditions for verbatim
	copying, provided that the entire resulting derived work is
	distributed under the terms of a permission notice identical to
	this one. </P
><P
>Permission is granted to copy and distribute translations
	of this manual into another language, under the above conditions
	for modified versions.</P
><P
>The author would appreciate a notification of modifications,
	translations, and printed versions.  Thank you.</P
><P
></P
></DIV
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="f23.html"
>Dedication</A
></DT
><DT
><A
HREF="f26.html"
>Source and pre-formatted versions available</A
></DT
><DT
>1. <A
HREF="c31.html"
>Introduction</A
></DT
><DD
><DL
><DT
><A
HREF="c31.html#AEN56"
>The Linux Documentation Project</A
></DT
></DL
></DD
><DT
>2. <A
HREF="c63.html"
>Overview of a Linux System</A
></DT
><DD
><DL
><DT
><A
HREF="c63.html#AEN69"
>Various parts of an operating system</A
></DT
><DT
><A
HREF="x83.html"
>Important parts of the kernel</A
></DT
><DT
><A
HREF="x94.html"
>Major services in a UNIX system</A
></DT
><DD
><DL
><DT
><A
HREF="x94.html#AEN97"
><B
CLASS="COMMAND"
>init</B
></A
></DT
><DT
><A
HREF="x94.html#AEN117"
>Logins from terminals</A
></DT
><DT
><A
HREF="x94.html#AEN129"
>Syslog</A
></DT
><DT
><A
HREF="x94.html#AEN133"
>Periodic command execution: <B
CLASS="COMMAND"
>cron</B
> and
<B
CLASS="COMMAND"
>at</B
></A
></DT
><DT
><A
HREF="x94.html#AEN147"
>Graphical user interface</A
></DT
><DT
><A
HREF="x94.html#AEN152"
>Networking</A
></DT
><DT
><A
HREF="x94.html#AEN158"
>Network logins</A
></DT
><DT
><A
HREF="x94.html#AEN171"
>Network file systems</A
></DT
><DT
><A
HREF="x94.html#AEN176"
>Mail</A
></DT
><DT
><A
HREF="x94.html#AEN191"
>Printing</A
></DT
><DT
><A
HREF="x94.html#AEN200"
>The filesystem layout</A
></DT
></DL
></DD
></DL
></DD
><DT
>3. <A
HREF="c212.html"
>Overview of the Directory Tree</A
></DT
><DD
><DL
><DT
><A
HREF="c212.html#AEN218"
>Background</A
></DT
><DT
><A
HREF="x267.html"
>The root filesystem</A
></DT
><DT
><A
HREF="x338.html"
>The <TT
CLASS="FILENAME"
>/etc</TT
> directory</A
></DT
><DT
><A
HREF="x463.html"
>The <TT
CLASS="FILENAME"
>/dev</TT
> directory</A
></DT
><DT
><A
HREF="x472.html"
>The <TT
CLASS="FILENAME"
>/usr</TT
> filesystem</A
></DT
><DT
><A
HREF="x531.html"
>The <TT
CLASS="FILENAME"
>/var</TT
> filesystem</A
></DT
><DT
><A
HREF="x595.html"
>The <TT
CLASS="FILENAME"
>/proc</TT
> filesystem</A
></DT
></DL
></DD
><DT
>4. <A
HREF="c701.html"
>Using Disks and Other Storage Media</A
></DT
><DD
><DL
><DT
><A
HREF="c701.html#AEN721"
>Two kinds of devices</A
></DT
><DT
><A
HREF="x747.html"
>Hard disks</A
></DT
><DT
><A
HREF="x787.html"
>Floppies</A
></DT
><DT
><A
HREF="x801.html"
>CD-ROM's</A
></DT
><DT
><A
HREF="x811.html"
>Tapes</A
></DT
><DT
><A
HREF="x817.html"
>Formatting</A
></DT
><DT
><A
HREF="x876.html"
>Partitions</A
></DT
><DD
><DL
><DT
><A
HREF="x876.html#AEN881"
>The MBR, boot sectors and partition table</A
></DT
><DT
><A
HREF="x876.html#AEN905"
>Extended and logical partitions</A
></DT
><DT
><A
HREF="x876.html#AEN920"
>Partition types</A
></DT
><DT
><A
HREF="x876.html#AEN1008"
>Partitioning a hard disk</A
></DT
><DT
><A
HREF="x876.html#AEN1024"
>Device files and partitions</A
></DT
></DL
></DD
><DT
><A
HREF="x1029.html"
>Filesystems</A
></DT
><DD
><DL
><DT
><A
HREF="x1029.html#AEN1031"
>What are filesystems?</A
></DT
><DT
><A
HREF="x1029.html#AEN1048"
>Filesystems galore</A
></DT
><DT
><A
HREF="x1029.html#AEN1104"
>Which filesystem should be used?</A
></DT
><DT
><A
HREF="x1029.html#AEN1107"
>Creating a filesystem</A
></DT
><DT
><A
HREF="x1029.html#MOUNT-AND-UMOUNT"
>Mounting and unmounting</A
></DT
><DT
><A
HREF="x1029.html#AEN1278"
>Checking filesystem integrity with <B
CLASS="COMMAND"
>fsck</B
></A
></DT
><DT
><A
HREF="x1029.html#AEN1301"
>Checking for disk errors with <B
CLASS="COMMAND"
>badblocks</B
></A
></DT
><DT
><A
HREF="x1029.html#AEN1315"
>Fighting fragmentation</A
></DT
><DT
><A
HREF="x1029.html#AEN1321"
>Other tools for all filesystems</A
></DT
><DT
><A
HREF="x1029.html#AEN1334"
>Other tools for the ext2 filesystem</A
></DT
></DL
></DD
><DT
><A
HREF="x1366.html"
>Disks without filesystems</A
></DT
><DT
><A
HREF="x1384.html"
>Allocating disk space</A
></DT
><DD
><DL
><DT
><A
HREF="x1384.html#AEN1386"
>Partitioning schemes</A
></DT
><DT
><A
HREF="x1384.html#AEN1404"
>Space requirements</A
></DT
><DT
><A
HREF="x1384.html#AEN1413"
>Examples of hard disk allocation</A
></DT
><DT
><A
HREF="x1384.html#AEN1439"
>Adding more disk space for Linux</A
></DT
><DT
><A
HREF="x1384.html#AEN1443"
>Tips for saving disk space</A
></DT
></DL
></DD
></DL
></DD
><DT
>5. <A
HREF="c1450.html"
>Memory Management</A
></DT
><DD
><DL
><DT
><A
HREF="c1450.html#AEN1456"
>What is virtual memory?</A
></DT
><DT
><A
HREF="x1466.html"
>Creating a swap space</A
></DT
><DT
><A
HREF="x1495.html"
>Using a swap space</A
></DT
><DT
><A
HREF="x1529.html"
>Sharing swap spaces with other operating systems</A
></DT
><DT
><A
HREF="x1532.html"
>Allocating swap space</A
></DT
><DT
><A
HREF="x1551.html"
>The buffer cache</A
></DT
></DL
></DD
><DT
>6. <A
HREF="c1582.html"
>Boots And Shutdowns</A
></DT
><DD
><DL
><DT
><A
HREF="c1582.html#AEN1588"
>An overview of boots and shutdowns</A
></DT
><DT
><A
HREF="x1602.html"
>The boot process in closer look</A
></DT
><DT
><A
HREF="x1650.html"
>More about shutdowns</A
></DT
><DT
><A
HREF="x1684.html"
>Rebooting</A
></DT
><DT
><A
HREF="x1693.html"
>Single user mode</A
></DT
><DT
><A
HREF="x1697.html"
>Emergency boot floppies</A
></DT
></DL
></DD
><DT
>7. <A
HREF="c1705.html"
><B
CLASS="COMMAND"
>init</B
></A
></DT
><DD
><DL
><DT
><A
HREF="c1705.html#AEN1717"
><B
CLASS="COMMAND"
>init</B
> comes first</A
></DT
><DT
><A
HREF="x1752.html"
>Configuring <B
CLASS="COMMAND"
>init</B
> to start <B
CLASS="COMMAND"
>getty</B
>: the <TT
CLASS="FILENAME"
>/etc/inittab</TT
> file</A
></DT
><DT
><A
HREF="x1812.html"
>Run levels</A
></DT
><DT
><A
HREF="x1852.html"
>Special configuration in <TT
CLASS="FILENAME"
>/etc/inittab</TT
></A
></DT
><DT
><A
HREF="x1880.html"
>Booting in single user mode</A
></DT
></DL
></DD
><DT
>8. <A
HREF="c1905.html"
>Logging In And Out</A
></DT
><DD
><DL
><DT
><A
HREF="c1905.html#AEN1911"
>Logins via terminals</A
></DT
><DT
><A
HREF="x1944.html"
>Logins via the network</A
></DT
><DT
><A
HREF="x1956.html"
>What <B
CLASS="COMMAND"
>login</B
> does</A
></DT
><DT
><A
HREF="x1988.html"
>X and xdm</A
></DT
><DT
><A
HREF="x1991.html"
>Access control</A
></DT
><DT
><A
HREF="x2008.html"
>Shell startup</A
></DT
></DL
></DD
><DT
>9. <A
HREF="c2018.html"
>Managing user accounts</A
></DT
><DD
><DL
><DT
><A
HREF="c2018.html#AEN2024"
>What's an account?</A
></DT
><DT
><A
HREF="x2031.html"
>Creating a user</A
></DT
><DD
><DL
><DT
><A
HREF="x2031.html#AEN2042"
><TT
CLASS="FILENAME"
>/etc/passwd</TT
> and other informative files</A
></DT
><DT
><A
HREF="x2031.html#AEN2072"
>Picking numeric user and group ids</A
></DT
><DT
><A
HREF="x2031.html#AEN2077"
>Initial environment: <TT
CLASS="FILENAME"
>/etc/skel</TT
></A
></DT
><DT
><A
HREF="x2031.html#MANUAL-ADDUSER"
>Creating a user by hand</A
></DT
></DL
></DD
><DT
><A
HREF="x2124.html"
>Changing user properties</A
></DT
><DT
><A
HREF="x2152.html"
>Removing a user</A
></DT
><DT
><A
HREF="x2166.html"
>Disabling a user temporarily</A
></DT
></DL
></DD
><DT
>10. <A
HREF="c2187.html"
>Backups</A
></DT
><DD
><DL
><DT
><A
HREF="c2187.html#AEN2193"
>On the importance of being backed up</A
></DT
><DT
><A
HREF="x2206.html"
>Selecting the backup medium</A
></DT
><DT
><A
HREF="x2216.html"
>Selecting the backup tool</A
></DT
><DT
><A
HREF="x2240.html"
>Simple backups</A
></DT
><DD
><DL
><DT
><A
HREF="x2240.html#AEN2247"
>Making backups with <B
CLASS="COMMAND"
>tar</B
></A
></DT
><DT
><A
HREF="x2240.html#AEN2288"
>Restoring files with <B
CLASS="COMMAND"
>tar</B
></A
></DT
></DL
></DD
><DT
><A
HREF="x2315.html"
>Multilevel backups</A
></DT
><DT
><A
HREF="x2405.html"
>What to back up</A
></DT
><DT
><A
HREF="x2417.html"
>Compressed backups</A
></DT
></DL
></DD
><DT
>11. <A
HREF="c2432.html"
>Keeping Time</A
></DT
><DD
><DL
><DT
><A
HREF="c2432.html#AEN2438"
>Time zones</A
></DT
><DT
><A
HREF="x2451.html"
>The hardware and software clocks</A
></DT
><DT
><A
HREF="x2457.html"
>Showing and setting time</A
></DT
><DT
><A
HREF="x2504.html"
>When the clock is wrong</A
></DT
></DL
></DD
><DT
><A
HREF="g2516.html"
>Glossary (DRAFT)</A
></DT
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="f23.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Dedication</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>