Ignore:
Timestamp:
08/24/2003 02:29:16 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:
36c9064
Parents:
0108c1d
Message:

editor tagging

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/skel.xml

    r0108c1d r9ed94cb  
    33<title>Configuring for Adding Users</title>
    44
    5 <para>Together, the <filename>/usr/sbin/useradd</filename> command and
     5<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 LFS system with the
    8 same beginning settings for things like $PATH, keyboard processing and
     7provide a way to assure new users are added on your
     8<acronym>LFS</acronym> system with the
     9same beginning settings for things like <envar>PATH</envar>, keyboard processing and
    910environmental variables.  Using these two facilities makes it easier to
    1011assure this initial state for each new user.
     
    1415The <filename>/etc/skel</filename> directory holds copies of various
    1516initialization and other files that may be copied to the new user's home
    16 directory when the <filename>/usr/sbin/useradd</filename>
     17directory when the <command>/usr/sbin/useradd</command>
    1718program adds the new user.</para>
    1819
    1920<para>Useradd</para>
    2021
    21 <para>The <filename>useradd</filename> program uses a collection of
     22<para>The <command>useradd</command> program uses a collection of
    2223default values kept in <filename>/etc/default/useradd</filename>,
    2324if it exists.  If the file does not exist, then it uses some internal
    2425defaults.  You can see the default values by running
    25 <userinput>/usr/sbin/useradd -D</userinput>.
     26<userinput><command>/usr/sbin/useradd -D</command></userinput>.
    2627</para>
    2728
    2829<para>To change these values to something new, create a base
    2930<filename>/etc/default/useradd</filename> file with the same values as
    30 the output of <userinput>/usr/sbin/useradd -D</userinput>.  Here is a
     31the output of <userinput><command>/usr/sbin/useradd -D</command></userinput>.  Here is a
    3132sample.</para>
    3233
    33 <para><screen># Begin /etc/default/useradd
     34<screen># Begin /etc/default/useradd
    3435
    3536GROUP=100
     
    4041SKEL=/etc/skel
    4142
    42 # End /etc/default/useradd</screen></para>
     43# End /etc/default/useradd</screen>
    4344
    4445<para>The only thing missing from the file is a default shell.  Add that
    4546by running:</para>
    4647
    47 <para><screen><userinput>/usr/sbin/useradd -D -s/bin/bash</userinput></screen></para>
     48<screen><userinput><command>/usr/sbin/useradd -D -s/bin/bash</command></userinput></screen>
    4849
    49 <para>This will set the <userinput>SHELL=</userinput> line to
    50 <userinput>SHELL=/bin/bash</userinput>.</para>
     50<para>This will set the <envar>SHELL</envar>= line to
     51<envar>SHELL</envar>=/bin/bash.</para>
    5152
    52 <para><filename>Useradd</filename> has many parameters that
     53<para><command>Useradd</command> has many parameters that
    5354can be set in the <filename>/etc/default/useradd</filename> file.
    5455</para>
    5556
    56 <para>For more information see <userinput>man useradd</userinput>.</para>
     57<para>For more information see <command>man useradd</command>.</para>
    5758
    5859<para>/etc/skel</para>
     
    107108the new user's home directory.  For example:</para>
    108109
    109 <para><screen><userinput>useradd -m -s/bin/bash jwrober</userinput></screen></para>
     110<screen><command>useradd -m -s/bin/bash jwrober</command></screen>
    110111
    111112</sect1>
Note: See TracChangeset for help on using the changeset viewer.