From d1538c00041c086bc445337dc9c1b76a698808ab Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Mon, 19 Mar 2007 21:13:34 +0000 Subject: 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 --- chapter06/shadow.xml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chapter06/shadow.xml') 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 grpconv + Shadow's stock configuration for the useradd + 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: + +useradd -D -b /home +sed -i 's/yes/no/' /etc/default/useradd + -- cgit v1.2.3-54-g00ecf