Author: matthew
Date: 2007-03-19 15:13:34 -0600 (Mon, 19 Mar 2007)
New Revision: 7969
Modified:
trunk/BOOK/chapter01/changelog.xml
trunk/BOOK/chapter06/createfiles.xml
trunk/BOOK/chapter06/shadow.xml
Log:
Change the default home directory for new users to /home and prevent useradd
from creating mail spool files.
Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml 2007-03-19 20:57:36 UTC (rev 7968)
+++ trunk/BOOK/chapter01/changelog.xml 2007-03-19 21:13:34 UTC (rev 7969)
@@ -40,6 +40,13 @@
<para>2007-03-19</para>
<itemizedlist>
<listitem>
+ <para>[matthew] - Change the default home directory for new users and
+ do not create mail spool files for them. Add a
+ <systemitem class="groupname">mail</systemitem> group so that if
+ Shadow is configured to create mail spool files for new users, it
can
+ do so without issuing a warning.</para>
+ </listitem>
+ <listitem>
<para>[matthew] - Upgrade to Shadow-4.0.18.1. Fixes
<ulink url="&lfs-ticket-root;1850">#1850</ulink></para>
</listitem>
Modified: trunk/BOOK/chapter06/createfiles.xml
===================================================================
--- trunk/BOOK/chapter06/createfiles.xml 2007-03-19 20:57:36 UTC (rev
7968)
+++ trunk/BOOK/chapter06/createfiles.xml 2007-03-19 21:13:34 UTC (rev
7969)
@@ -89,6 +89,7 @@
utmp:x:13:
usb:x:14:
cdrom:x:15:
+mail:x:34:
nogroup:x:99:</literal>
EOF</userinput></screen>
Modified: trunk/BOOK/chapter06/shadow.xml
===================================================================
--- trunk/BOOK/chapter06/shadow.xml 2007-03-19 20:57:36 UTC (rev 7968)
+++ trunk/BOOK/chapter06/shadow.xml 2007-03-19 21:13:34 UTC (rev 7969)
@@ -158,6 +158,14 @@
<screen><userinput>grpconv</userinput></screen>
+ <para>Shadow's stock configuration for the <command>useradd</command>
+ utility is not suitable for LFS systems. Use the following commands to
+ change the default home directory for new users and prevent the creation of
+ mail spool files:</para>
+
+<screen><userinput>useradd -D -b /home
+sed -i 's/yes/no/' /etc/default/useradd</userinput></screen>
+
</sect2>
<sect2 role="configuration">
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page