Browse Source

- Add 'utmp' group
- Upgraded to latest bootscripts to support utmp group


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3475 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Zack Winkles 21 năm trước cách đây
mục cha
commit
7d096f362d

+ 0 - 4
TODO

@@ -1,8 +1,4 @@
  - Mention --enable-kernel=... where appropriate.
- - Create and use the 'utmp' group, and explain to the user how to use it to
-   improve the security of things that write to utmp, such as terminal
-   emulators.
- - Move passwd to /bin.
  - Mention --enable-multibyte when building vim.
  - POSIX compliance patches (aka, removing the coreutils hack).
  - Upgraded to a glibc that supports POSIX message queues.

+ 6 - 0
chapter01/changelog.xml

@@ -92,6 +92,12 @@ first a summary, then a detailed log.</para>
 </itemizedlist>
 </listitem>
 
+<listitem><para>May 4th, 2004 [winkie]: Chapter 6 - Create and use the
+<quote>utmp</quote> group.</para></listitem>
+
+<listitem><para>May 4th, 2004 [winkie]: Chapter 7 - Upgraded to LFS-Bootscripts
+2.1.0 and modify the book to work with it.</para></listitem>
+
 <listitem><para>May 4th, 2004 [winkie]: Chapter 6 - Install the
 <quote>passwd</quote> binary in /bin instead of /usr/bin.</para></listitem>
 

+ 1 - 1
chapter03/packages.xml

@@ -89,7 +89,7 @@ Less (&less-version;) - 259 KB:
 <ulink url="&freshmeat;less/"/>
 
 LFS-Bootscripts (&bootscripts-version;) - 32 KB:
-<ulink url="http://www.linuxfromscratch.org/~nathan/"/>
+<ulink url="&http-down;"/>
 
 Libtool (&libtool-version;) - 2,602 KB:
 <ulink url="&freshmeat;libtool/"/>

+ 3 - 1
chapter06/pwdgroup.xml

@@ -46,6 +46,7 @@ lp:x:9:
 dialout:x:10:
 audio:x:11:
 video:x:12:
+utmp:x:13:
 <userinput>EOF</userinput></screen>
 
 <para>The created groups aren't part of any standard -- they are some of the
@@ -79,7 +80,8 @@ These programs, however, won't write to the log files if they don't already
 exist. Initialize the log files and give them their proper permissions:</para>
 
 <screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
-chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen>
+chgrp utmp /var/run/utmp /var/log/lastlog
+chmod 664 /var/run/utmp /var/log/lastlog</userinput></screen>
 
 <para>The <filename>/var/run/utmp</filename> file records the users that are
 currently logged in. The <filename>/var/log/wtmp</filename> file records all

+ 0 - 4
chapter07/bootscripts.xml

@@ -25,10 +25,6 @@
 
 <screen><userinput>make install</userinput></screen>
 
-<para>Since we're using Udev, install the support script for it:</para>
-
-<screen><userinput>make install-udev</userinput></screen>
-
 </sect2>
 
 

+ 1 - 1
chapter07/chapter07.xml

@@ -12,7 +12,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="bootscripts.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="usage.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="setclock.xml"/>
-<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="loadkeys.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="console.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sysklogd.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="hostname.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="hosts.xml"/>

+ 7 - 7
chapter07/loadkeys.xml → chapter07/console.xml

@@ -3,12 +3,12 @@
   <!ENTITY % general-entities SYSTEM "../general.ent">
   %general-entities;
 ]>
-<sect1 id="ch-scripts-loadkeys">
-<title>Do I need the loadkeys script?</title>
-<?dbhtml filename="loadkeys.html"?>
+<sect1 id="ch-scripts-console">
+<title>Do I need the console script?</title>
+<?dbhtml filename="console.html"?>
 
-<indexterm zone="ch-scripts-loadkeys">
-<primary sortas="d-loadkeys">loadkeys</primary>
+<indexterm zone="ch-scripts-console">
+<primary sortas="d-console">console</primary>
 <secondary>configuring</secondary></indexterm>
 
 <para>If you plan to compile the keymap directly in the kernel during <xref
@@ -19,7 +19,7 @@ to hurt you. Keeping it could even be beneficial, in case you run a lot of
 different kernels and can't be sure that the keymap is compiled into every one
 of them.</para>
 
-<para>If you decided you don't need or don't want to use the loadkeys script,
-remove the <filename class="symlink">/etc/rc.d/rcsysinit.d/S70loadkeys</filename> symlink.</para>
+<para>If you decided you don't need or don't want to use the console script,
+remove the <filename class="symlink">/etc/rc.d/rcsysinit.d/S70console</filename> symlink.</para>
 
 </sect1>

+ 1 - 1
general.ent

@@ -21,7 +21,7 @@
 <!ENTITY bash-version "2.05b">
 <!ENTITY binutils-version "2.15.90.0.3">
 <!ENTITY bison-version "1.875a">
-<!ENTITY bootscripts-version "2.0.4">
+<!ENTITY bootscripts-version "2.1.0">
 <!ENTITY bzip2-version "1.0.2">
 <!ENTITY coreutils-version "5.2.1">
 <!ENTITY dejagnu-version "1.4.4">