| 12345678910111213141516171819202122232425262728293031323334353637383940 | <sect1 id="ch05-pwdgroup"><title>Creating passwd and group files</title><para>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 bypackages. 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 presentwith GID 1. Other group names and GID's can be chosen by the user. Wellwritten packages don't depend on GID numbers but just use the groupname, since it doesn't matter which GID a group has. Since therearen't any standards for groups The groups created here are the groups theMAKEDEV script (the script that creates the device files in the /devdirectory) mentions.</para><para>Create a new file <filename>$LFS/etc/passwd</filename> by running thefollowing command:</para><para><screen><userinput>echo "root:x:0:0:root:/root:/bin/bash" > $LFS/etc/passwd</userinput></screen></para><para>Create a new file <filename>$LFS/etc/group</filename> by running thefollowing:</para><para><screen><userinput>cat > $LFS/etc/group << "EOF"</userinput>root:x:0:bin:x:1:sys:x:2:kmem:x:3:tty:x:4:tape:x:5:daemon:x:6:floppy:x:7:disk:x:8:lp:x:9:dialout:x:10:audio:x:11:<userinput>EOF</userinput></screen></para></sect1>
 |