From b822811980a5f82726cb641cbeff66be9eb6d92a Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sun, 22 Jul 2001 19:45:10 +0000 Subject: XML changes git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@827 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/pwdgroup.xml | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) (limited to 'chapter05/pwdgroup.xml') diff --git a/chapter05/pwdgroup.xml b/chapter05/pwdgroup.xml index 28e17442b..eb5d77f4a 100644 --- a/chapter05/pwdgroup.xml +++ b/chapter05/pwdgroup.xml @@ -1,10 +1,9 @@ Creating passwd and group files - -In order for the user and group root to be recognized and to be able to login, -there needs to be an entry in the /etc/passwd and /etc/group file. Besides the -group root a couple of other groups are recommended and needed by +In order for the user and group root to be recognized and to be able to +login, there needs to be an entry in the /etc/passwd and /etc/group file. +Besides the group root a couple of other groups are recommended and needed by packages. The groups with their GID's below aren't part of any standard. The LSB only recommends besides a group root a group bin to be present with GID 1. Other group names and GID's can be chosen by the user. Well @@ -13,29 +12,17 @@ name, since it doesn't matter all that much what GID a group has. Since there aren't any standards for groups I won't follow any conventions used by Debian, RedHat and others. The groups added here are the groups the MAKEDEV script (the script that creates the device files in the /dev -directory) mentions. - +directory) mentions. - -Create a new file $LFS/etc/passwd by running the -following command: - +Create a new file $LFS/etc/passwd by running the +following command: - - -echo "root:x:0:0:root:/root:/bin/bash" > $LFS/etc/passwd - - - +echo "root:x:0:0:root:/root:/bin/bash" > $LFS/etc/passwd - -Create a new file $LFS/etc/group by running the -following: - +Create a new file $LFS/etc/group by running the +following: - - -cat > $LFS/etc/group << "EOF" +cat > $LFS/etc/group << "EOF" root:x:0: bin:x:1: sys:x:2: @@ -48,9 +35,7 @@ disk:x:8: lp:x:9: dialout:x:10: audio:x:11: -EOF - - +EOF -- cgit v1.2.3-54-g00ecf