aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/pwdgroup.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2002-05-25 00:21:12 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2002-05-25 00:21:12 +0000
commit1987d724ce4059e12b51962be50c59d30a4a148d (patch)
tree1c165b6c8cf19ed18668659078a71692e228b59e /chapter06/pwdgroup.xml
parent5e2cb652195321c7f63b5d22077e583b75118178 (diff)
second set of commits for keep-chap5-chap6-seperate
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/pwdgroup.xml')
-rw-r--r--chapter06/pwdgroup.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/chapter06/pwdgroup.xml b/chapter06/pwdgroup.xml
new file mode 100644
index 000000000..942281c2b
--- /dev/null
+++ b/chapter06/pwdgroup.xml
@@ -0,0 +1,41 @@
+<sect1 id="ch06-pwdgroup">
+<title>Creating passwd and group files</title>
+<?dbhtml filename="pwdgroup.html" dir="chapter06"?>
+
+<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 by
+packages. The groups created below aren't part of any standard.
+The LSB only recommends a group bin with GID 1 to be present besides
+group root. Other group names and GID's can be chosen by the user. Well
+written packages don't depend on GID numbers but just use the group
+name, so it doesn't matter which GID a group has. Since there
+aren't any standards for groups the groups created here are the groups the
+MAKEDEV script (the script that creates the device files in the /dev
+directory) mentions.</para>
+
+<para>Create a new file <filename>/etc/passwd</filename> by running the
+following command:</para>
+
+<para><screen><userinput>echo "root:x:0:0:root:/root:/bin/bash" &gt; /etc/passwd</userinput></screen></para>
+
+<para>Create a new file <filename>/etc/group</filename> by running the
+following command:</para>
+
+<para><screen><userinput>cat &gt; /etc/group &lt;&lt; "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>
+