aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/shadow.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/shadow.xml')
-rw-r--r--chapter06/shadow.xml8
1 files changed, 8 insertions, 0 deletions
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">