From 7d096f362d5d4f3be635d1e7abd14ae3b7114e6d Mon Sep 17 00:00:00 2001 From: Zack Winkles Date: Tue, 4 May 2004 23:22:10 +0000 Subject: [PATCH] - 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 --- TODO | 4 ---- chapter01/changelog.xml | 6 ++++++ chapter03/packages.xml | 2 +- chapter06/pwdgroup.xml | 4 +++- chapter07/bootscripts.xml | 4 ---- chapter07/chapter07.xml | 2 +- chapter07/{loadkeys.xml => console.xml} | 14 +++++++------- general.ent | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) rename chapter07/{loadkeys.xml => console.xml} (67%) diff --git a/TODO b/TODO index 6908a990e..b2a9662f0 100644 --- a/TODO +++ b/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. diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 63541386a..df844bfc7 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -92,6 +92,12 @@ first a summary, then a detailed log. +May 4th, 2004 [winkie]: Chapter 6 - Create and use the +utmp group. + +May 4th, 2004 [winkie]: Chapter 7 - Upgraded to LFS-Bootscripts +2.1.0 and modify the book to work with it. + May 4th, 2004 [winkie]: Chapter 6 - Install the passwd binary in /bin instead of /usr/bin. diff --git a/chapter03/packages.xml b/chapter03/packages.xml index e154944e3..309bb38e3 100644 --- a/chapter03/packages.xml +++ b/chapter03/packages.xml @@ -89,7 +89,7 @@ Less (&less-version;) - 259 KB: LFS-Bootscripts (&bootscripts-version;) - 32 KB: - + Libtool (&libtool-version;) - 2,602 KB: diff --git a/chapter06/pwdgroup.xml b/chapter06/pwdgroup.xml index 83c3bd283..880a266e7 100644 --- a/chapter06/pwdgroup.xml +++ b/chapter06/pwdgroup.xml @@ -46,6 +46,7 @@ lp:x:9: dialout:x:10: audio:x:11: video:x:12: +utmp:x:13: EOF 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: touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} -chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp} +chgrp utmp /var/run/utmp /var/log/lastlog +chmod 664 /var/run/utmp /var/log/lastlog The /var/run/utmp file records the users that are currently logged in. The /var/log/wtmp file records all diff --git a/chapter07/bootscripts.xml b/chapter07/bootscripts.xml index de6e35128..9ee79f203 100644 --- a/chapter07/bootscripts.xml +++ b/chapter07/bootscripts.xml @@ -25,10 +25,6 @@ make install -Since we're using Udev, install the support script for it: - -make install-udev - diff --git a/chapter07/chapter07.xml b/chapter07/chapter07.xml index 64dfc7eb8..f6b5a9ba5 100644 --- a/chapter07/chapter07.xml +++ b/chapter07/chapter07.xml @@ -12,7 +12,7 @@ - + diff --git a/chapter07/loadkeys.xml b/chapter07/console.xml similarity index 67% rename from chapter07/loadkeys.xml rename to chapter07/console.xml index d3abf96e4..c9e4242d5 100644 --- a/chapter07/loadkeys.xml +++ b/chapter07/console.xml @@ -3,12 +3,12 @@ %general-entities; ]> - -Do I need the loadkeys script? - + +Do I need the console script? + - -loadkeys + +console configuring If you plan to compile the keymap directly in the kernel during -If you decided you don't need or don't want to use the loadkeys script, -remove the /etc/rc.d/rcsysinit.d/S70loadkeys symlink. +If you decided you don't need or don't want to use the console script, +remove the /etc/rc.d/rcsysinit.d/S70console symlink. diff --git a/general.ent b/general.ent index 9d3135b1d..dd3b1aec7 100644 --- a/general.ent +++ b/general.ent @@ -21,7 +21,7 @@ - +