cvs commit: BLFS/BOOK/postlfs/config skel.xml

markh at linuxfromscratch.org markh at linuxfromscratch.org
Tue Dec 31 14:00:02 PST 2002


markh       02/12/31 17:00:02

  Modified:    BOOK/introduction/welcome changelog.xml
               BOOK/postlfs/config skel.xml
  Log:
  add skel page
  
  Revision  Changes    Path
  1.316     +3 -0      BLFS/BOOK/introduction/welcome/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/changelog.xml,v
  retrieving revision 1.315
  retrieving revision 1.316
  diff -u -r1.315 -r1.316
  --- changelog.xml	31 Dec 2002 21:34:55 -0000	1.315
  +++ changelog.xml	31 Dec 2002 22:00:02 -0000	1.316
  @@ -10,6 +10,9 @@
   
   <itemizedlist>
   
  +<listitem><para>December 31st, 2002 [markh]: PostLFS: Added James 
  +Robertson's /etc/skel page.</para></listitem>
  +
   <listitem><para>December 31st, 2002 [markh]: PST: Added Alex's patch for
   Ghostscript, a2ps, enscript, gsview, psutils and xpdf.</para></listitem>
   
  
  
  
  1.2       +56 -1     BLFS/BOOK/postlfs/config/skel.xml
  
  Index: skel.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/postlfs/config/skel.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- skel.xml	24 Dec 2002 03:01:04 -0000	1.1
  +++ skel.xml	31 Dec 2002 22:00:02 -0000	1.2
  @@ -2,7 +2,62 @@
   <?dbhtml filename="skel.html" dir="postlfs"?>
   <title>/etc/skel</title>
   
  -<para>To be written.</para>
  +<para>The <filename>/etc/skel</filename> directory is quite simple
  +to setup and use.  It provides a way to make sure that all new users on
  +your LFS system begin with the same settings.  The
  +<filename>/etc/skel</filename> directory is used by the
  +<filename>/usr/sbin/useradd</filename> program.</para>
   
  +<para>For more information see <filename>man useradd</filename>.</para>
  +
  +<para>To get started create a <filename>/etc/skel</filename> directory.
  +Creating the directory as root is the best way to go.  Next copy any
  +files into <filename>/etc/skel</filename> that you want every new user
  +to have placed in their home drive.  Examples include
  +<filename>.bash_profile</filename>, <filename>.bashrc</filename>,
  +<filename>.bash_logout</filename>, <filename>dircolors</filename>,
  +<filename>.inputrc</filename>, and <filename>.vimrc</filename>.</para>
  +
  +<para>When creating a new user with
  +<filename>/usr/sbin/useradd</filename> use the <userinput>-m</userinput>
  +parameter.  For example:</para>
  +
  +<para><screen>[prompt]#<userinput>useradd -m -s/bin/bash
  +jwrober</userinput></screen></para>
  +
  +<para>The <filename>/usr/sbin/useradd</filename> program uses a
  +collection of default values.  It will read them from the
  +<filename>/etc/default/useradd</filename> file if it exists.  If the
  +file does not exist, then it uses some internal defaults.  They can be
  +found by running <userinput>/usr/sbin/useradd -D</userinput>.</para>
  +
  +<para>To change these values to something new, create a base
  +<filename>/etc/default/useradd</filename> file with the same values as
  +the output of <userinput>/usr/sbin/useradd -D</userinput>.  Here is a
  +sample.</para>
  +
  +<para><screen># Begin /etc/default/useradd
  +
  +GROUP=100
  +HOME=/home
  +INACTIVE=-1
  +EXPIRE=
  +SHELL=
  +SKEL=/etc/skel
  +
  +# End /etc/default/useradd</screen></para>
  +
  +<para>The only thing missing from the file is a default shell.  Add that
  +by running:</para>
  +
  +<para><screen><userinput>/usr/sbin/useradd -D
  +-s/bin/bash</userinput></screen></para>
  +
  +<para>This will set the <userinput>SHELL=</userinput> line to
  +<userinput>SHELL=/bin/bash</userinput>.  This makes it even easier to
  +add new users to your LFS system.  The
  +<filename>/usr/sbin/useradd</filename> has many parameters that can be
  +set in the <filename>/etc/default/useradd</filename> file.  See the man
  +page for more details.</para>
   
   </sect1>
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-book' in the subject header of the message



More information about the blfs-book mailing list