Ignore:
Timestamp:
09/21/2003 04:44:58 PM (21 years ago)
Author:
Larry Lawrence <larry@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 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, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
ee61e9f
Parents:
c4f1401
Message:

more review changes

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/skel.xml

    rc4f1401 r78b3cd61  
    55<para>Together, the <command>/usr/sbin/useradd</command> command and
    66<filename>/etc/skel</filename> directory (both are easy to setup and use)
    7 provide a way to assure new users are added on your
    8 <acronym>LFS</acronym> system with the
    9 same beginning settings for things like <envar>PATH</envar>, keyboard processing and
    10 environmental variables.  Using these two facilities makes it easier to
    11 assure this initial state for each new user.
    12 </para>
     7provide a way to assure new users are added on your <acronym>LFS</acronym>
     8system with the same beginning settings for things like <envar>PATH</envar>,
     9keyboard processing and environmental variables.  Using these two facilities
     10makes it easier to assure this initial state for each new user.</para>
    1311
    14 <para>
    15 The <filename>/etc/skel</filename> directory holds copies of various
     12<para>The <filename>/etc/skel</filename> directory holds copies of various
    1613initialization and other files that may be copied to the new user's home
    17 directory when the <command>/usr/sbin/useradd</command>
    18 program adds the new user.</para>
     14directory when the <command>/usr/sbin/useradd</command> program adds the new
     15user.</para>
    1916
    20 <para>Useradd</para>
     17<para><emphasis>Useradd<</emphasis></para>
    2118
    2219<para>The <command>useradd</command> program uses a collection of
    2320default values kept in <filename>/etc/default/useradd</filename>,
    2421if it exists.  If the file does not exist, then it uses some internal
    25 defaults.  You can see the default values by running
    26 <userinput><command>/usr/sbin/useradd -D</command></userinput>.
    27 </para>
     22defaults.  You can see the default values by running <command>/usr/sbin/useradd
     23-D</command>.</para>
    2824
    29 <para>To change these values to something new, create a base
    30 <filename>/etc/default/useradd</filename> file with the same values as
    31 the output of <userinput><command>/usr/sbin/useradd -D</command></userinput>.  Here is a
    32 sample.</para>
     25<para>To change these values to something new, create a base <filename>
     26/etc/default/useradd</filename> file with the same values as the output of
     27<command>/usr/sbin/useradd -D</command>.  Here is a sample.</para>
    3328
    3429<screen># Begin /etc/default/useradd
     
    4843<screen><userinput><command>/usr/sbin/useradd -D -s/bin/bash</command></userinput></screen>
    4944
    50 <para>This will set the <envar>SHELL</envar>= line to
     45<para>This will set the <envar>SHELL</envar>= line to 
    5146<envar>SHELL</envar>=/bin/bash.</para>
    5247
    5348<para><command>Useradd</command> has many parameters that
    54 can be set in the <filename>/etc/default/useradd</filename> file.
    55 </para>
     49can be set in the <filename>/etc/default/useradd</filename> file.</para>
    5650
    5751<para>For more information see <command>man useradd</command>.</para>
    5852
    59 <para>/etc/skel</para>
     53<para><emphasis><filename>/etc/skel</filename></emphasis></para>
    6054
    6155<para>To get started create an <filename>/etc/skel</filename> directory
     
    7064
    7165<para>You can also put other files in <filename>/etc/skel</filename> and
    72 different permissions may be needed for them.
    73 </para>
     66different permissions may be needed for them.</para>
    7467
    75 <para>
    76 Decide which initialization files should be provided in every (or most)
     68<para>Decide which initialization files should be provided in every (or most)
    7769new user's home directory. The decisions you make will affect what you
    78 do in the next three sections, "/etc/inputrc", "The Bash Shell Startup
    79 Files" and "/etc/vimrc, ~/.vimrc". Some or all of those files will be
     70do in the next three sections, <xref linkend="postlfs-config-inputrc"/>,
     71<xref linkend="postlfs-config-profile"/> and
     72<xref linkend="postlfs-config-vimrc"/>. Some or all of those files will be
    8073useful for root, any already-existing users, and new users.</para>
    8174
     
    10093of any other user already in the system.</para>
    10194
    102 <para>When Adding a User</para>
     95<para><emphasis>When Adding a User</emphasis></para>
    10396
    104 <para>When adding a new user with <filename>useradd</filename> use
     97<para>When adding a new user with <command>useradd</command> use
    10598the <userinput>-m</userinput> parameter, which tells
    106 <filename>useradd</filename> to create the user's home directory and
     99<command>useradd</command> to create the user's home directory and
    107100copy files from <filename>/etc/skel</filename> (can be overridden) to
    108101the new user's home directory.  For example:</para>
Note: See TracChangeset for help on using the changeset viewer.