Changeset cabf0e8


Ignore:
Timestamp:
10/16/2007 01:49:09 PM (17 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
567b68e
Parents:
f9bef9e
Message:

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

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7118 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    rf9bef9e rcabf0e8  
    4545      <para>October 16th, 2007</para>
    4646      <itemizedlist>
     47        <listitem>
     48          <para>[randy] - Modified the 'Configuring for Adding Users' page
     49          to reflect that the /etc/default/useradd file is now created in
     50          LFS. Thanks to Chris Staub for the suggestion.</para>
     51        </listitem>
    4752        <listitem>
    4853          <para>[randy] - Fixed numerous typos and ommisions, along with
  • postlfs/config/skel.xml

    rf9bef9e rcabf0e8  
    3737  program adds the new user.</para>
    3838
    39 <bridgehead renderas="sect5">Useradd</bridgehead>
     39  <bridgehead renderas="sect5">Useradd</bridgehead>
    4040
    4141  <para>The <command>useradd</command> program uses a collection of
    42   default values kept in <filename>/etc/default/useradd</filename>,
    43   if it exists.  If this file does not exist, then it uses some internal
    44   defaults.  You can see the default values by running
     42  default values kept in <filename>/etc/default/useradd</filename>. This file
     43  is created in a base LFS installation by the
     44  <application>Shadow</application> package. If it has been removed or renamed,
     45  the <command>useradd</command> program uses some internal defaults.  You can
     46  see the default values by running
    4547  <command>/usr/sbin/useradd -D</command>.</para>
    4648
    47   <para>To change these values to something new, create a base
     49  <para>To change these values, simply modify the
    4850  <filename>/etc/default/useradd</filename> file as the
    49   <systemitem class='username'>root</systemitem> user with the same values as
    50   the output of <command>/usr/sbin/useradd -D</command>. Here is a
    51   sample:</para>
    52 
    53 <screen><literal># Begin /etc/default/useradd
    54 
    55 GROUP=100
    56 HOME=/home
    57 INACTIVE=-1
    58 EXPIRE=
    59 SHELL=
    60 SKEL=/etc/skel
    61 
    62 # End /etc/default/useradd</literal></screen>
    63 
    64   <para>The only thing missing from the file is a default shell.  Add that
    65   by running the following command as the
    66   <systemitem class='username'>root</systemitem> user:</para>
    67 
    68 <screen role="root"><userinput>/usr/sbin/useradd -D -s/bin/bash</userinput></screen>
    69 
    70   <para>This will set the <envar>SHELL</envar>= line to
    71   <envar>SHELL</envar>=/bin/bash.</para>
    72 
    73   <para><command>useradd</command> has many parameters that
    74   can be set in the <filename>/etc/default/useradd</filename> file. For more
    75   information see <command>man useradd</command>.</para>
     51  <systemitem class='username'>root</systemitem> user. An alternative to
     52  directly modifying the file is to run <command>useradd</command> as the
     53  <systemitem class='username'>root</systemitem> user while supplying the
     54  desired modifications on the command line. Information on how to do this
     55  can be found in the <command>useradd</command> man page.</para>
    7656
    7757  <bridgehead renderas="sect5">/etc/skel</bridgehead>
Note: See TracChangeset for help on using the changeset viewer.