| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | <sect1 id="ch06-pwdgroup"><title>Creating the passwd and group files</title><?dbhtml filename="pwdgroup.html" dir="chapter06"?><para>In order for root to be able to login and for the name "root" to berecognized, there need to be relevant entries in the<filename>/etc/passwd</filename> and<filename>/etc/group</filename> files.</para><para>Create the <filename>/etc/passwd</filename> file by running thefollowing command:</para><para><screen><userinput>echo "root:x:0:0:root:/root:/bin/bash" > /etc/passwd</userinput></screen></para><para>The actual password for root (the "x" here is just a placeholder) willbe set later.</para><para>Create the <filename>/etc/group</filename> file by running thefollowing command:</para><para><screen><userinput>cat > /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><para>The created groups aren't part of any standard -- they are the groupsthat the MAKEDEV script in the next section uses.Besides the group "root", the LSB recommends only a group "bin", with a GIDof 1, be present. All other group names and GIDs can be chosen freely bythe user, as well-written packages don't depend on GID numbers but use thegroup's name.</para></sect1>
 |