r7118 - in trunk/BOOK: introduction/welcome postlfs/config

randy at linuxfromscratch.org randy at linuxfromscratch.org
Tue Oct 16 06:49:09 PDT 2007


Author: randy
Date: 2007-10-16 07:49:09 -0600 (Tue, 16 Oct 2007)
New Revision: 7118

Modified:
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/postlfs/config/skel.xml
Log:
Modified the 'Configuring for Adding Users' page to reflect that the /etc/default/useradd file is now created in LFS - Thanks to Chris Staub for the suggestion

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2007-10-16 13:26:18 UTC (rev 7117)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2007-10-16 13:49:09 UTC (rev 7118)
@@ -45,6 +45,11 @@
       <para>October 16th, 2007</para>
       <itemizedlist>
         <listitem>
+          <para>[randy] - Modified the 'Configuring for Adding Users' page
+          to reflect that the /etc/default/useradd file is now created in
+          LFS. Thanks to Chris Staub for the suggestion.</para>
+        </listitem>
+        <listitem>
           <para>[randy] - Fixed numerous typos and ommisions, along with
           several corrections by applying patches from Chris Staub. Thanks,
           Chris.</para>

Modified: trunk/BOOK/postlfs/config/skel.xml
===================================================================
--- trunk/BOOK/postlfs/config/skel.xml	2007-10-16 13:26:18 UTC (rev 7117)
+++ trunk/BOOK/postlfs/config/skel.xml	2007-10-16 13:49:09 UTC (rev 7118)
@@ -36,44 +36,24 @@
   new user's home directory when the <command>/usr/sbin/useradd</command>
   program adds the new user.</para>
 
-<bridgehead renderas="sect5">Useradd</bridgehead>
+  <bridgehead renderas="sect5">Useradd</bridgehead>
 
   <para>The <command>useradd</command> program uses a collection of
-  default values kept in <filename>/etc/default/useradd</filename>,
-  if it exists.  If this file does not exist, then it uses some internal
-  defaults.  You can see the default values by running
+  default values kept in <filename>/etc/default/useradd</filename>. This file
+  is created in a base LFS installation by the
+  <application>Shadow</application> package. If it has been removed or renamed,
+  the <command>useradd</command> program uses some internal defaults.  You can
+  see the default values by running
   <command>/usr/sbin/useradd -D</command>.</para>
 
-  <para>To change these values to something new, create a base
+  <para>To change these values, simply modify the
   <filename>/etc/default/useradd</filename> file as the
-  <systemitem class='username'>root</systemitem> user with the same values as
-  the output of <command>/usr/sbin/useradd -D</command>. Here is a
-  sample:</para>
+  <systemitem class='username'>root</systemitem> user. An alternative to
+  directly modifying the file is to run <command>useradd</command> as the
+  <systemitem class='username'>root</systemitem> user while supplying the
+  desired modifications on the command line. Information on how to do this
+  can be found in the <command>useradd</command> man page.</para>
 
-<screen><literal># Begin /etc/default/useradd
-
-GROUP=100
-HOME=/home
-INACTIVE=-1
-EXPIRE=
-SHELL=
-SKEL=/etc/skel
-
-# End /etc/default/useradd</literal></screen>
-
-  <para>The only thing missing from the file is a default shell.  Add that
-  by running the following command as the
-  <systemitem class='username'>root</systemitem> user:</para>
-
-<screen role="root"><userinput>/usr/sbin/useradd -D -s/bin/bash</userinput></screen>
-
-  <para>This will set the <envar>SHELL</envar>= line to
-  <envar>SHELL</envar>=/bin/bash.</para>
-
-  <para><command>useradd</command> has many parameters that
-  can be set in the <filename>/etc/default/useradd</filename> file. For more
-  information see <command>man useradd</command>.</para>
-
   <bridgehead renderas="sect5">/etc/skel</bridgehead>
 
   <para>To get started, create an




More information about the blfs-book mailing list