From b18ab71f138ccab2d6d9122e94360f3f5f13a9c3 Mon Sep 17 00:00:00 2001 From: James Robertson Date: Sun, 14 Sep 2003 03:57:26 +0000 Subject: [PATCH] Added PLFS hint text to the page in Chapter 6 for creating passwd and group: bug 596. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2806 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 3 +++ chapter06/pwdgroup.xml | 42 +++++++++++++++++++++++------------------ index.xml | 4 ++-- 3 files changed, 29 insertions(+), 20 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index d95b0cabc..5668f8f9c 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -87,6 +87,9 @@ +September 13th, 2003 [jwrober]: Added PLFS hint text to the +page in Chapter 6 for creating passwd and group: bug 596. + September 13th, 2003 [jwrober]: Updated the "How things are going to be done" page to include more of the PLFS hint's text. diff --git a/chapter06/pwdgroup.xml b/chapter06/pwdgroup.xml index 993228e86..ab44c55a6 100644 --- a/chapter06/pwdgroup.xml +++ b/chapter06/pwdgroup.xml @@ -2,26 +2,25 @@ Creating the passwd and group files -In order for root to be able to login and for the -name "root" to be recognized, there need to be relevant entries in the -/etc/passwd and -/etc/group files. Also, to support one of the coreutils -tests, we will also create the user and group nobody, which is almost -universally present on Linux computers. +In order for root to be able to login and for the +name "root" to be recognized, there need to be relevant entries in the +/etc/passwd and /etc/group files. +Also, to support one of the coreutils tests, we will also create the user and +group nobody, which is almost universally present on Linux computers. -Create the /etc/passwd file by running the -following command: +Create the /etc/passwd file by running the following +command: cat > /etc/passwd << "EOF" root:x:0:0:root:/root:/bin/bash nobody:x:1000:1000:nobody:/:/bin/bash EOF -The actual password for root (the "x" here is -just a placeholder) will be set later. +The actual password for root (the "x" here is just a +placeholder) will be set later. -Create the /etc/group file by running the -following command: +Create the /etc/group file by running the following +command: cat > /etc/group << "EOF" root:x:0: @@ -39,15 +38,22 @@ audio:x:11: nobody:x:1000: EOF -The created groups aren't part of any standard -- they are the groups -that the MAKEDEV script in the next section uses. Besides the group "root", -the LSB () recommends only a group -"bin", with a GID of 1, be present. All other group names and GIDs can be -chosen freely by the user, as well-written packages don't depend on GID -numbers but use the group's name. +The created groups aren't part of any standard -- they are the groups +that the MAKEDEV script in the next section uses. Besides the group "root", the +LSB () recommends only a group "bin", +with a GID of 1, be present. All other group names and GIDs can be chosen +freely by the user, as well-written packages don't depend on GID numbers but +use the group's name. + +Lastly, we re-login to the chroot envrionment. User name and group name +resolution will start working immediately after the +/etc/passwd and /etc/group files are +created, because we installed a full glibc in Chapter 5. This will get rid of +the I have no name! prompt. exec /tools/bin/bash --login set +h + diff --git a/index.xml b/index.xml index 1f6232b60..96919f4b2 100644 --- a/index.xml +++ b/index.xml @@ -3,8 +3,8 @@ "/usr/share/docbook/docbookx.dtd" [ - - + +