aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2007-03-19 21:13:34 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2007-03-19 21:13:34 +0000
commitd1538c00041c086bc445337dc9c1b76a698808ab (patch)
tree1be79aa1baa3dcd3f95bdfb6e94aba1ac65187d5
parent7ea4443021dda2276fddaf6cb390ceee7e71a917 (diff)
Change the default home directory for new users to /home and prevent useradd from creating mail spool files.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7969 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter01/changelog.xml7
-rw-r--r--chapter06/createfiles.xml1
-rw-r--r--chapter06/shadow.xml8
3 files changed, 16 insertions, 0 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 654808438..b82446a31 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -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>
diff --git a/chapter06/createfiles.xml b/chapter06/createfiles.xml
index 32896f1a6..581c921b6 100644
--- a/chapter06/createfiles.xml
+++ b/chapter06/createfiles.xml
@@ -89,6 +89,7 @@ video:x:12:
utmp:x:13:
usb:x:14:
cdrom:x:15:
+mail:x:34:
nogroup:x:99:</literal>
EOF</userinput></screen>
diff --git a/chapter06/shadow.xml b/chapter06/shadow.xml
index 210d90bf3..8c62ff81a 100644
--- a/chapter06/shadow.xml
+++ b/chapter06/shadow.xml
@@ -158,6 +158,14 @@ ln -sfv ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen>
<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">