Changeset 7346f16
- Timestamp:
- 12/31/2002 10:00:02 PM (22 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 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, gimp3, 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, v1_0, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- c78533e
- Parents:
- bc1ea4e6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
introduction/welcome/changelog.xml
rbc1ea4e6 r7346f16 10 10 11 11 <itemizedlist> 12 13 <listitem><para>December 31st, 2002 [markh]: PostLFS: Added James 14 Robertson's /etc/skel page.</para></listitem> 12 15 13 16 <listitem><para>December 31st, 2002 [markh]: PST: Added Alex's patch for -
postlfs/config/skel.xml
rbc1ea4e6 r7346f16 3 3 <title>/etc/skel</title> 4 4 5 <para>To be written.</para> 5 <para>The <filename>/etc/skel</filename> directory is quite simple 6 to setup and use. It provides a way to make sure that all new users on 7 your LFS system begin with the same settings. The 8 <filename>/etc/skel</filename> directory is used by the 9 <filename>/usr/sbin/useradd</filename> program.</para> 6 10 11 <para>For more information see <filename>man useradd</filename>.</para> 12 13 <para>To get started create a <filename>/etc/skel</filename> directory. 14 Creating the directory as root is the best way to go. Next copy any 15 files into <filename>/etc/skel</filename> that you want every new user 16 to have placed in their home drive. Examples include 17 <filename>.bash_profile</filename>, <filename>.bashrc</filename>, 18 <filename>.bash_logout</filename>, <filename>dircolors</filename>, 19 <filename>.inputrc</filename>, and <filename>.vimrc</filename>.</para> 20 21 <para>When creating a new user with 22 <filename>/usr/sbin/useradd</filename> use the <userinput>-m</userinput> 23 parameter. For example:</para> 24 25 <para><screen>[prompt]#<userinput>useradd -m -s/bin/bash 26 jwrober</userinput></screen></para> 27 28 <para>The <filename>/usr/sbin/useradd</filename> program uses a 29 collection of default values. It will read them from the 30 <filename>/etc/default/useradd</filename> file if it exists. If the 31 file does not exist, then it uses some internal defaults. They can be 32 found by running <userinput>/usr/sbin/useradd -D</userinput>.</para> 33 34 <para>To change these values to something new, create a base 35 <filename>/etc/default/useradd</filename> file with the same values as 36 the output of <userinput>/usr/sbin/useradd -D</userinput>. Here is a 37 sample.</para> 38 39 <para><screen># Begin /etc/default/useradd 40 41 GROUP=100 42 HOME=/home 43 INACTIVE=-1 44 EXPIRE= 45 SHELL= 46 SKEL=/etc/skel 47 48 # End /etc/default/useradd</screen></para> 49 50 <para>The only thing missing from the file is a default shell. Add that 51 by running:</para> 52 53 <para><screen><userinput>/usr/sbin/useradd -D 54 -s/bin/bash</userinput></screen></para> 55 56 <para>This will set the <userinput>SHELL=</userinput> line to 57 <userinput>SHELL=/bin/bash</userinput>. This makes it even easier to 58 add new users to your LFS system. The 59 <filename>/usr/sbin/useradd</filename> has many parameters that can be 60 set in the <filename>/etc/default/useradd</filename> file. See the man 61 page for more details.</para> 7 62 8 63 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.