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
This commit is contained in:
James Robertson 2003-09-14 03:57:26 +00:00
parent b0ac1b2ca0
commit b18ab71f13
3 changed files with 29 additions and 20 deletions

View File

@ -87,6 +87,9 @@
</itemizedlist> </itemizedlist>
</para></listitem> </para></listitem>
<listitem><para>September 13th, 2003 [jwrober]: Added PLFS hint text to the
page in Chapter 6 for creating passwd and group: bug 596.</para></listitem>
<listitem><para>September 13th, 2003 [jwrober]: Updated the "How things are <listitem><para>September 13th, 2003 [jwrober]: Updated the "How things are
going to be done" page to include more of the PLFS hint's going to be done" page to include more of the PLFS hint's
text.</para></listitem> text.</para></listitem>

View File

@ -2,26 +2,25 @@
<title>Creating the passwd and group files</title> <title>Creating the passwd and group files</title>
<?dbhtml filename="pwdgroup.html" dir="chapter06"?> <?dbhtml filename="pwdgroup.html" dir="chapter06"?>
<para>In order for <emphasis>root</emphasis> to be able to login and for the <para>In order for <emphasis>root</emphasis> to be able to login and for the
name "root" to be recognized, there need to be relevant entries in the name "root" to be recognized, there need to be relevant entries in the
<filename>/etc/passwd</filename> and <filename>/etc/passwd</filename> and <filename>/etc/group</filename> files.
<filename>/etc/group</filename> files. Also, to support one of the coreutils Also, to support one of the coreutils tests, we will also create the user and
tests, we will also create the user and group nobody, which is almost group nobody, which is almost universally present on Linux computers.</para>
universally present on Linux computers.</para>
<para>Create the <filename>/etc/passwd</filename> file by running the <para>Create the <filename>/etc/passwd</filename> file by running the following
following command:</para> command:</para>
<para><screen><userinput>cat &gt; /etc/passwd &lt;&lt; "EOF"</userinput> <para><screen><userinput>cat &gt; /etc/passwd &lt;&lt; "EOF"</userinput>
root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
nobody:x:1000:1000:nobody:/:/bin/bash nobody:x:1000:1000:nobody:/:/bin/bash
<userinput>EOF</userinput></screen></para> <userinput>EOF</userinput></screen></para>
<para>The actual password for <emphasis>root</emphasis> (the "x" here is <para>The actual password for <emphasis>root</emphasis> (the "x" here is just a
just a placeholder) will be set later.</para> placeholder) will be set later.</para>
<para>Create the <filename>/etc/group</filename> file by running the <para>Create the <filename>/etc/group</filename> file by running the following
following command:</para> command:</para>
<para><screen><userinput>cat &gt; /etc/group &lt;&lt; "EOF"</userinput> <para><screen><userinput>cat &gt; /etc/group &lt;&lt; "EOF"</userinput>
root:x:0: root:x:0:
@ -39,15 +38,22 @@ audio:x:11:
nobody:x:1000: nobody:x:1000:
<userinput>EOF</userinput></screen></para> <userinput>EOF</userinput></screen></para>
<para>The created groups aren't part of any standard -- they are the groups <para>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", that the MAKEDEV script in the next section uses. Besides the group "root", the
the LSB (<ulink url="http://www.linuxbase.org"/>) recommends only a group LSB (<ulink url="http://www.linuxbase.org"/>) recommends only a group "bin",
"bin", with a GID of 1, be present. All other group names and GIDs can be with a GID of 1, be present. All other group names and GIDs can be chosen
chosen freely by the user, as well-written packages don't depend on GID freely by the user, as well-written packages don't depend on GID numbers but
numbers but use the group's name.</para> use the group's name.</para>
<para>Lastly, we re-login to the chroot envrionment. User name and group name
resolution will start working immediately after the
<filename>/etc/passwd</filename> and <filename>/etc/group<filename> files are
created, because we installed a full glibc in Chapter 5. This will get rid of
the <quote>I have no name!</quote> prompt.</para>
<para><screen><userinput>exec /tools/bin/bash --login <para><screen><userinput>exec /tools/bin/bash --login
set +h</userinput></screen></para> set +h</userinput></screen></para>
</sect1> </sect1>

View File

@ -3,8 +3,8 @@
"/usr/share/docbook/docbookx.dtd" [ "/usr/share/docbook/docbookx.dtd" [
<!ENTITY version "20030913"> <!ENTITY version "20030914">
<!ENTITY releasedate "September 13th, 2003"> <!ENTITY releasedate "September 14th, 2003">
<!ENTITY nbsp " "> <!ENTITY nbsp " ">
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org"> <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">