From 09c1e758b639de7a4f632a4e22c46c2863507714 Mon Sep 17 00:00:00 2001 From: Jeremy Utley Date: Sun, 31 Aug 2003 21:06:48 +0000 Subject: Added user and group nobody for coreutils tests git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2707 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/pwdgroup.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'chapter06/pwdgroup.xml') diff --git a/chapter06/pwdgroup.xml b/chapter06/pwdgroup.xml index 05b712710..c26f90ae5 100644 --- a/chapter06/pwdgroup.xml +++ b/chapter06/pwdgroup.xml @@ -5,12 +5,17 @@ In order for root to be able to login and for the name "root" to be recognized, there need to be relevant entries in the /etc/passwd and -/etc/group files. +/etc/group files. Also, to support one of the coreutils +tests, we will also create the user and group nobody, which is almost +universally present on Linux computers. Create the /etc/passwd file by running the following command: -echo "root:x:0:0:root:/root:/bin/bash" > /etc/passwd +cat > /etc/passwd << "EOF" +root:x:0:0:root:/root:/bin/bash +nobody:x:1000:1000:nobody:/:/bin/bash +EOF The actual password for root (the "x" here is just a placeholder) will be set later. @@ -31,6 +36,7 @@ disk:x:8: lp:x:9: dialout:x:10: audio:x:11: +nobody:x:1000: EOF The created groups aren't part of any standard -- they are the groups -- cgit v1.2.3-54-g00ecf