Author: robert
Date: 2007-03-25 04:15:07 -0600 (Sun, 25 Mar 2007)
New Revision: 989

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/pwdgroup.xml
Log:
Added nobody user

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2007-03-25 10:05:31 UTC (rev 988)
+++ trunk/BOOK/chapter01/changelog.xml  2007-03-25 10:15:07 UTC (rev 989)
@@ -111,6 +111,8 @@
 </listitem>
 -->
 
+<listitem><para>March 25th, 2007 [Robert]: Added nobody user.</para></listitem>
+
 <listitem><para>March 25th, 2007 [Robert]: Update kernfs.xml and chroot.xml
 from LFS-svn, create /dev/console and /dev/null before mounting /dev as 
tmpfs.</para></listitem>
 

Modified: trunk/BOOK/chapter06/pwdgroup.xml
===================================================================
--- trunk/BOOK/chapter06/pwdgroup.xml   2007-03-25 10:05:31 UTC (rev 988)
+++ trunk/BOOK/chapter06/pwdgroup.xml   2007-03-25 10:15:07 UTC (rev 989)
@@ -14,16 +14,25 @@
 <indexterm zone="ch-system-pwdgroup"><primary 
sortas="e-/var/log/lastlog">/var/log/lastlog</primary></indexterm>
 <indexterm zone="ch-system-pwdgroup"><primary 
sortas="e-/var/log/wtmp">/var/log/wtmp</primary></indexterm>
 
-<para>In order for user <emphasis>root</emphasis> to be able to login
-and for the name <quote>root</quote> to be recognized, there need to
-be relevant entries in the <filename>/etc/passwd</filename> and
-<filename>/etc/group</filename> files.</para>
+    <para>In order for user <emphasis>root</emphasis> to be able to login
+    and for the name <quote>root</quote> to be recognized, there need to
+    be relevant entries in the <filename>/etc/passwd</filename> and
+    <filename>/etc/group</filename> files.</para>
 
-<para>Create the <filename>/etc/passwd</filename> file by running the following
-command:</para>
+    <para>The <emphasis>nobody</emphasis> user is also added so it can be
+    used by testsuites which prefer to run as an unprivileged user, and can
+    be used later for some daemons. The <emphasis>nobody</emphasis> user
+    is given the user ID, and group ID, 65534, which is the last available
+    digit on a 16-bit user ID system. Modern Linux systems can support
+    32-bit user ID's (4294967295 users), but this is generally not used in
+    order to retain reverse compatability with older systems.</para>
 
+    <para>Create the <filename>/etc/passwd</filename> file by running the
+    following command:</para>
+
 <screen><userinput>cat &gt; /etc/passwd &lt;&lt; "EOF"
-<literal>root:x:0:0:root:/root:/bin/bash</literal>
+<literal>root:x:0:0:root:/root:/bin/bash
+nobody:x:65534:65534:Unprivileged User:/nonexistent:/sbin/nologin</literal>
 EOF</userinput></screen>
 
 <para>The actual password for <emphasis>root</emphasis> (the <quote>x</quote>
@@ -38,7 +47,7 @@
 tty:x:2:
 kmem:x:3:
 utmp:x:4:
-nogroup:x:99:</literal>
+nogroup:x:65534:</literal>
 EOF</userinput></screen>
 
 <para>The created groups are not part of any standard&mdash;they are some

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-book
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to