Changeset 78b3cd61 for postlfs/config/skel.xml
- Timestamp:
- 09/21/2003 04:44:58 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:
- ee61e9f
- Parents:
- c4f1401
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/skel.xml
rc4f1401 r78b3cd61 5 5 <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 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> 7 provide a way to assure new users are added on your <acronym>LFS</acronym> 8 system with the same beginning settings for things like <envar>PATH</envar>, 9 keyboard processing and environmental variables. Using these two facilities 10 makes it easier to assure this initial state for each new user.</para> 13 11 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 16 13 initialization 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 newuser.</para>14 directory when the <command>/usr/sbin/useradd</command> program adds the new 15 user.</para> 19 16 20 <para> Useradd</para>17 <para><emphasis>Useradd<</emphasis></para> 21 18 22 19 <para>The <command>useradd</command> program uses a collection of 23 20 default values kept in <filename>/etc/default/useradd</filename>, 24 21 if 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> 22 defaults. You can see the default values by running <command>/usr/sbin/useradd 23 -D</command>.</para> 28 24 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> 33 28 34 29 <screen># Begin /etc/default/useradd … … 48 43 <screen><userinput><command>/usr/sbin/useradd -D -s/bin/bash</command></userinput></screen> 49 44 50 <para>This will set the <envar>SHELL</envar>= line to 45 <para>This will set the <envar>SHELL</envar>= line to 51 46 <envar>SHELL</envar>=/bin/bash.</para> 52 47 53 48 <para><command>Useradd</command> has many parameters that 54 can be set in the <filename>/etc/default/useradd</filename> file. 55 </para> 49 can be set in the <filename>/etc/default/useradd</filename> file.</para> 56 50 57 51 <para>For more information see <command>man useradd</command>.</para> 58 52 59 <para> /etc/skel</para>53 <para><emphasis><filename>/etc/skel</filename></emphasis></para> 60 54 61 55 <para>To get started create an <filename>/etc/skel</filename> directory … … 70 64 71 65 <para>You can also put other files in <filename>/etc/skel</filename> and 72 different permissions may be needed for them. 73 </para> 66 different permissions may be needed for them.</para> 74 67 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) 77 69 new 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 70 do 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 80 73 useful for root, any already-existing users, and new users.</para> 81 74 … … 100 93 of any other user already in the system.</para> 101 94 102 <para> When Adding a User</para>95 <para><emphasis>When Adding a User</emphasis></para> 103 96 104 <para>When adding a new user with < filename>useradd</filename> use97 <para>When adding a new user with <command>useradd</command> use 105 98 the <userinput>-m</userinput> parameter, which tells 106 < filename>useradd</filename> to create the user's home directory and99 <command>useradd</command> to create the user's home directory and 107 100 copy files from <filename>/etc/skel</filename> (can be overridden) to 108 101 the new user's home directory. For example:</para>
Note:
See TracChangeset
for help on using the changeset viewer.