Changeset f1fd69a for boot/common/pwdgroup.xml
- Timestamp:
- Jul 1, 2006, 11:52:01 PM (18 years ago)
- Children:
- 6ea30c8
- Parents:
- b18d234
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/common/pwdgroup.xml
rb18d234 rf1fd69a 12 12 13 13 <indexterm zone="ch-boot-pwdgroup"> 14 <primary sortas="e-${ LFS}/etc/passwd">${LFS}/etc/passwd</primary>14 <primary sortas="e-${CLFS}/etc/passwd">${CLFS}/etc/passwd</primary> 15 15 </indexterm> 16 16 17 17 <indexterm zone="ch-boot-pwdgroup"> 18 <primary sortas="e-${ LFS}/etc/group">${LFS}/etc/group</primary>18 <primary sortas="e-${CLFS}/etc/group">${CLFS}/etc/group</primary> 19 19 </indexterm> 20 20 21 21 <indexterm zone="ch-boot-pwdgroup"> 22 <primary sortas="e-${ LFS}/var/run/utmp">${LFS}/var/run/utmp</primary>22 <primary sortas="e-${CLFS}/var/run/utmp">${CLFS}/var/run/utmp</primary> 23 23 </indexterm> 24 24 25 25 <indexterm zone="ch-boot-pwdgroup"> 26 <primary sortas="e-${ LFS}/var/log/btmp">${LFS}/var/log/btmp</primary>26 <primary sortas="e-${CLFS}/var/log/btmp">${CLFS}/var/log/btmp</primary> 27 27 </indexterm> 28 28 29 29 <indexterm zone="ch-boot-pwdgroup"> 30 <primary sortas="e-${ LFS}/var/log/lastlog">${LFS}/var/log/lastlog</primary>30 <primary sortas="e-${CLFS}/var/log/lastlog">${CLFS}/var/log/lastlog</primary> 31 31 </indexterm> 32 32 33 33 <indexterm zone="ch-boot-pwdgroup"> 34 <primary sortas="e-${ LFS}/var/log/wtmp">${LFS}/var/log/wtmp</primary>34 <primary sortas="e-${CLFS}/var/log/wtmp">${CLFS}/var/log/wtmp</primary> 35 35 </indexterm> 36 36 37 37 <para>In order for user <systemitem class="username">root</systemitem> to 38 38 be able to login and for the name <quote>root</quote> to be recognized, 39 there must be relevant entries in the <filename>${ LFS}/etc/passwd</filename>40 and <filename>${ LFS}/etc/group</filename> files.</para>39 there must be relevant entries in the <filename>${CLFS}/etc/passwd</filename> 40 and <filename>${CLFS}/etc/group</filename> files.</para> 41 41 42 <para>Create the <filename>${ LFS}/etc/passwd</filename> file by running42 <para>Create the <filename>${CLFS}/etc/passwd</filename> file by running 43 43 the following command:</para> 44 44 45 <screen><userinput>cat > ${ LFS}/etc/passwd << "EOF"45 <screen><userinput>cat > ${CLFS}/etc/passwd << "EOF" 46 46 <literal>root:x:0:0:root:/root:/bin/bash</literal> 47 47 EOF</userinput></screen> … … 51 51 later.</para> 52 52 53 <variablelist os="b"> 54 55 <title>Additional users you may want to add:</title> 56 57 <varlistentry> 58 <term><literal>bin:x:1:1:bin:/bin:/bin/false</literal></term> 59 <listitem> 60 <para>To be written</para> 61 </listitem> 62 </varlistentry> 63 <varlistentry> 64 <term><literal>daemon:x:2:6:daemon:/sbin:/bin/false</literal></term> 65 <listitem> 66 <para>To be written</para> 67 </listitem> 68 </varlistentry> 69 <varlistentry> 70 <term><literal>adm:x:3:16:adm:/var/adm:/bin/false</literal></term> 71 <listitem> 72 <para>To be written</para> 73 </listitem> 74 </varlistentry> 75 <varlistentry> 76 <term><literal>lp:x:10:9:lp:/var/spool/lp:/bin/false</literal></term> 77 <listitem> 78 <para>To be written</para> 79 </listitem> 80 </varlistentry> 81 <varlistentry> 82 <term><literal>mail:x:30:30:mail:/var/mail:/bin/false</literal></term> 83 <listitem> 84 <para>To be written</para> 85 </listitem> 86 </varlistentry> 87 <varlistentry> 88 <term><literal>news:x:31:31:news:/var/spool/news:/bin/false</literal></term> 89 <listitem> 90 <para>To be written</para> 91 </listitem> 92 </varlistentry> 93 <varlistentry> 94 <term><literal>uucp:x:32:32:uucp:/var/spool/uucp:/bin/false</literal></term> 95 <listitem> 96 <para>To be written</para> 97 </listitem> 98 </varlistentry> 99 <varlistentry> 100 <term><literal>operator:x:50:0:operator:/root:/bin/bash</literal></term> 101 <listitem> 102 <para>To be written</para> 103 </listitem> 104 </varlistentry> 105 <varlistentry> 106 <term><literal>postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false</literal></term> 107 <listitem> 108 <para>To be written</para> 109 </listitem> 110 </varlistentry> 111 <varlistentry> 112 <term><literal>nobody:x:65534:65534:nobody:/:/bin/false</literal></term> 113 <listitem> 114 <para>To be written</para> 115 </listitem> 116 </varlistentry> 117 </variablelist> 118 119 <para>Create the <filename>${LFS}/etc/group</filename> file by running 53 <para>Create the <filename>${CLFS}/etc/group</filename> file by running 120 54 the following command:</para> 121 55 122 <screen><userinput>cat > ${ LFS}/etc/group << "EOF"56 <screen><userinput>cat > ${CLFS}/etc/group << "EOF" 123 57 <literal>root:x:0: 124 58 bin:x:1: … … 217 151 proper permissions:</para> 218 152 219 <screen><userinput>touch ${ LFS}/var/run/utmp ${LFS}/var/log/{btmp,lastlog,wtmp}220 chmod -v 664 ${ LFS}/var/run/utmp ${LFS}/var/log/lastlog221 chmod -v 600 ${ LFS}/var/log/btmp</userinput></screen>153 <screen><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp} 154 chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog 155 chmod -v 600 ${CLFS}/var/log/btmp</userinput></screen> 222 156 223 <para>The <filename>${ LFS}/var/run/utmp</filename> file records the users224 that are currently logged in. The <filename>${ LFS}/var/log/wtmp</filename>157 <para>The <filename>${CLFS}/var/run/utmp</filename> file records the users 158 that are currently logged in. The <filename>${CLFS}/var/log/wtmp</filename> 225 159 file records all logins and logouts. The 226 <filename>${ LFS}/var/log/lastlog</filename> file records when227 each user last logged in. The <filename>${ LFS}/var/log/btmp</filename> file160 <filename>${CLFS}/var/log/lastlog</filename> file records when 161 each user last logged in. The <filename>${CLFS}/var/log/btmp</filename> file 228 162 records the bad login attempts.</para> 229 163
Note: See TracChangeset
for help on using the changeset viewer.