Changeset 9ed94cb for postlfs/config/skel.xml
- Timestamp:
- 08/24/2003 02:29:16 PM (21 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/skel.xml
r0108c1d r9ed94cb 3 3 <title>Configuring for Adding Users</title> 4 4 5 <para>Together, the < filename>/usr/sbin/useradd</filename> command and5 <para>Together, the <command>/usr/sbin/useradd</command> command and 6 6 <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 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 9 10 environmental variables. Using these two facilities makes it easier to 10 11 assure this initial state for each new user. … … 14 15 The <filename>/etc/skel</filename> directory holds copies of various 15 16 initialization and other files that may be copied to the new user's home 16 directory when the < filename>/usr/sbin/useradd</filename>17 directory when the <command>/usr/sbin/useradd</command> 17 18 program adds the new user.</para> 18 19 19 20 <para>Useradd</para> 20 21 21 <para>The < filename>useradd</filename> program uses a collection of22 <para>The <command>useradd</command> program uses a collection of 22 23 default values kept in <filename>/etc/default/useradd</filename>, 23 24 if it exists. If the file does not exist, then it uses some internal 24 25 defaults. You can see the default values by running 25 <userinput> /usr/sbin/useradd -D</userinput>.26 <userinput><command>/usr/sbin/useradd -D</command></userinput>. 26 27 </para> 27 28 28 29 <para>To change these values to something new, create a base 29 30 <filename>/etc/default/useradd</filename> file with the same values as 30 the output of <userinput> /usr/sbin/useradd -D</userinput>. Here is a31 the output of <userinput><command>/usr/sbin/useradd -D</command></userinput>. Here is a 31 32 sample.</para> 32 33 33 < para><screen># Begin /etc/default/useradd34 <screen># Begin /etc/default/useradd 34 35 35 36 GROUP=100 … … 40 41 SKEL=/etc/skel 41 42 42 # End /etc/default/useradd</screen> </para>43 # End /etc/default/useradd</screen> 43 44 44 45 <para>The only thing missing from the file is a default shell. Add that 45 46 by running:</para> 46 47 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> 48 49 49 <para>This will set the < userinput>SHELL=</userinput>line to50 < userinput>SHELL=/bin/bash</userinput>.</para>50 <para>This will set the <envar>SHELL</envar>= line to 51 <envar>SHELL</envar>=/bin/bash.</para> 51 52 52 <para>< filename>Useradd</filename> has many parameters that53 <para><command>Useradd</command> has many parameters that 53 54 can be set in the <filename>/etc/default/useradd</filename> file. 54 55 </para> 55 56 56 <para>For more information see < userinput>man useradd</userinput>.</para>57 <para>For more information see <command>man useradd</command>.</para> 57 58 58 59 <para>/etc/skel</para> … … 107 108 the new user's home directory. For example:</para> 108 109 109 < para><screen><userinput>useradd -m -s/bin/bash jwrober</userinput></screen></para>110 <screen><command>useradd -m -s/bin/bash jwrober</command></screen> 110 111 111 112 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.