Changeset e0d33ef for postlfs/config/skel.xml
- Timestamp:
- 05/30/2005 09:56:30 PM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 3aa07d1
- Parents:
- f009801
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/skel.xml
rf009801 re0d33ef 25 25 26 26 <para>Together, the <command>/usr/sbin/useradd</command> command and 27 <filename class="directory">/etc/skel</filename> directory (both are easy to 28 setup and use) provide a way to assure new users are added on your LFS 29 system with the same beginning settings for things like <envar>PATH</envar>, 30 keyboard processing and environmental variables. Using these two facilities 27 <filename class="directory">/etc/skel</filename> directory (both are easy to 28 setup and use) provide a way to assure new users are added on your LFS 29 system with the same beginning settings for things like <envar>PATH</envar>, 30 keyboard processing and environmental variables. Using these two facilities 31 31 makes it easier to assure this initial state for each new user.</para> 32 32 33 <para>The <filename class="directory">/etc/skel</filename> directory holds 34 copies of various initialization and other files that may be copied to the 33 <para>The <filename class="directory">/etc/skel</filename> directory holds 34 copies of various initialization and other files that may be copied to the 35 35 new user's home directory when the <command>/usr/sbin/useradd</command> 36 36 program adds the new user.</para> … … 41 41 default values kept in <filename>/etc/default/useradd</filename>, 42 42 if it exists. If the file does not exist, then it uses some internal 43 defaults. You can see the default values by running 43 defaults. You can see the default values by running 44 44 <command>/usr/sbin/useradd -D</command>.</para> 45 45 46 46 <para>To change these values to something new, create a base <filename> 47 /etc/default/useradd</filename> file with the same values as the output of 47 /etc/default/useradd</filename> file with the same values as the output of 48 48 <command>/usr/sbin/useradd -D</command>. Here is a sample.</para> 49 49 … … 64 64 <screen role="root"><userinput>/usr/sbin/useradd -D -s/bin/bash</userinput></screen> 65 65 66 <para>This will set the <envar>SHELL</envar>= line to 66 <para>This will set the <envar>SHELL</envar>= line to 67 67 <envar>SHELL</envar>=/bin/bash.</para> 68 68 … … 74 74 <bridgehead renderas="sect5">/etc/skel</bridgehead> 75 75 76 <para>To get started, create an <filename 77 class="directory">/etc/skel</filename> directory and make sure it is 78 writable only by the system administrator, usually <systemitem 79 class="username">root</systemitem>. Creating the 80 directory as <systemitem class="username">root</systemitem> is 76 <para>To get started, create an <filename 77 class="directory">/etc/skel</filename> directory and make sure it is 78 writable only by the system administrator, usually <systemitem 79 class="username">root</systemitem>. Creating the 80 directory as <systemitem class="username">root</systemitem> is 81 81 the best way to go.</para> 82 82 83 83 <para>The mode of any files from this part of the book that you put in 84 <filename class="directory">/etc/skel</filename> should be writable only by 85 the owner. Also, since there is no telling what kind of sensitive information 84 <filename class="directory">/etc/skel</filename> should be writable only by 85 the owner. Also, since there is no telling what kind of sensitive information 86 86 a user may eventually place in their copy of these files, you should 87 87 make them unreadable by "group" and "other".</para> 88 88 89 <para>You can also put other files in 89 <para>You can also put other files in 90 90 <filename class="directory">/etc/skel</filename> and 91 91 different permissions may be needed for them.</para> … … 93 93 <para>Decide which initialization files should be provided in every (or most) 94 94 new user's home directory. The decisions you make will affect what you 95 do in the next two sections, <xref linkend="postlfs-config-profile"/> and 95 do in the next two sections, <xref linkend="postlfs-config-profile"/> and 96 96 <xref linkend="postlfs-config-vimrc"/>. Some or all of those files will be 97 useful for <systemitem class="username">root</systemitem>, any 97 useful for <systemitem class="username">root</systemitem>, any 98 98 already-existing users, and new users.</para> 99 99 … … 108 108 109 109 <para>You will run a slightly modified set of commands for files which 110 are placed in <filename class="directory">/etc/skel</filename>. Each section 111 will remind you of this. In brief, the book's commands have been written for 112 files <emphasis>not</emphasis> added to 113 <filename class="directory">/etc/skel</filename> and just send the results to 114 the user's home directory. If the file is going to be in 115 <filename class="directory">/etc/skel</filename>, change the book's command(s) 110 are placed in <filename class="directory">/etc/skel</filename>. Each section 111 will remind you of this. In brief, the book's commands have been written for 112 files <emphasis>not</emphasis> added to 113 <filename class="directory">/etc/skel</filename> and just send the results to 114 the user's home directory. If the file is going to be in 115 <filename class="directory">/etc/skel</filename>, change the book's command(s) 116 116 to send output there instead and then just copy the file from 117 <filename class="directory">/etc/skel</filename> to the appropriate 118 directories, like <filename class="directory">/etc</filename>, 119 <filename class="directory">~</filename> or the home directory 117 <filename class="directory">/etc/skel</filename> to the appropriate 118 directories, like <filename class="directory">/etc</filename>, 119 <filename class="directory">~</filename> or the home directory 120 120 of any other user already in the system.</para> 121 121 … … 125 125 the <option>-m</option> parameter, which tells 126 126 <command>useradd</command> to create the user's home directory and 127 copy files from <filename class="directory">/etc/skel</filename> (can be 127 copy files from <filename class="directory">/etc/skel</filename> (can be 128 128 overridden) to the new user's home directory. For example:</para> 129 129
Note:
See TracChangeset
for help on using the changeset viewer.