Changeset cabf0e8
- Timestamp:
- 10/16/2007 01:49:09 PM (16 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 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/inkscape-core-mods, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/python-mods, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 567b68e
- Parents:
- f9bef9e
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
introduction/welcome/changelog.xml
rf9bef9e rcabf0e8 45 45 <para>October 16th, 2007</para> 46 46 <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> 47 52 <listitem> 48 53 <para>[randy] - Fixed numerous typos and ommisions, along with -
postlfs/config/skel.xml
rf9bef9e rcabf0e8 37 37 program adds the new user.</para> 38 38 39 <bridgehead renderas="sect5">Useradd</bridgehead>39 <bridgehead renderas="sect5">Useradd</bridgehead> 40 40 41 41 <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 45 47 <command>/usr/sbin/useradd -D</command>.</para> 46 48 47 <para>To change these values to something new, create a base49 <para>To change these values, simply modify the 48 50 <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> 76 56 77 57 <bridgehead renderas="sect5">/etc/skel</bridgehead>
Note:
See TracChangeset
for help on using the changeset viewer.