Changeset 2b15ca5
- Timestamp:
- May 24, 2014, 9:35:30 PM (11 years ago)
- Branches:
- clfs-3.0.0-sysvinit, sysvinit
- Children:
- 1cfa56e
- Parents:
- af2b8f8
- Location:
- BOOK
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/boot/common/pwdgroup.xml
raf2b8f8 r2b15ca5 9 9 <?dbhtml filename="pwdgroup.html"?> 10 10 11 <title>Creating the passwd and groupFiles</title>11 <title>Creating the passwd, group, and log Files</title> 12 12 13 13 <indexterm zone="ch-boot-pwdgroup"> … … 18 18 <indexterm zone="ch-boot-pwdgroup"> 19 19 <primary sortas="e-/etc/group">/etc/group</primary> 20 <secondary>boot</secondary> 21 </indexterm> 22 23 <indexterm zone="ch-boot-pwdgroup"> 24 <primary sortas="e-/var/run/utmp">/var/run/utmp</primary> 25 <secondary>boot</secondary> 26 </indexterm> 27 28 <indexterm zone="ch-boot-pwdgroup"> 29 <primary sortas="e-/var/log/btmp">/var/log/btmp</primary> 30 <secondary>boot</secondary> 31 </indexterm> 32 33 <indexterm zone="ch-boot-pwdgroup"> 34 <primary sortas="e-/var/log/lastlog">/var/log/lastlog</primary> 35 <secondary>boot</secondary> 36 </indexterm> 37 38 <indexterm zone="ch-boot-pwdgroup"> 39 <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary> 20 40 <secondary>boot</secondary> 21 41 </indexterm> … … 167 187 group's name.</para> 168 188 189 <para os="f">The <command>login</command>, <command>agetty</command>, and 190 <command>init</command> programs (and others) use a number of log 191 files to record information such as who was logged into the system and 192 when. However, these programs will not write to the log files if they 193 do not already exist. Initialize the log files and give them 194 proper permissions:</para> 195 196 <screen os="g"><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp} 197 chgrp -v &gid-utmp; ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog 198 chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog 199 chmod -v 600 ${CLFS}/var/log/btmp</userinput></screen> 200 201 <para os="h">The <filename>/var/run/utmp</filename> file records the users 202 that are currently logged in. The <filename>/var/log/wtmp</filename> 203 file records all logins and logouts. The 204 <filename>/var/log/lastlog</filename> file records when 205 each user last logged in. The <filename>/var/log/btmp</filename> file 206 records the bad login attempts.</para> 207 169 208 </sect1> -
BOOK/chroot/common/pwdgroup.xml
raf2b8f8 r2b15ca5 9 9 <?dbhtml filename="pwdgroup.html"?> 10 10 11 <title>Creating the passwd and groupFiles</title>11 <title>Creating the passwd, group, and log Files</title> 12 12 13 13 <indexterm zone="ch-chroot-pwdgroup"> … … 18 18 <indexterm zone="ch-chroot-pwdgroup"> 19 19 <primary sortas="e-/etc/group">/etc/group</primary> 20 <secondary>chroot</secondary> 21 </indexterm> 22 23 <indexterm zone="ch-boot-pwdgroup"> 24 <primary sortas="e-/var/run/utmp">/var/run/utmp</primary> 25 <secondary>chroot</secondary> 26 </indexterm> 27 28 <indexterm zone="ch-boot-pwdgroup"> 29 <primary sortas="e-/var/log/btmp">/var/log/btmp</primary> 30 <secondary>chroot</secondary> 31 </indexterm> 32 33 <indexterm zone="ch-boot-pwdgroup"> 34 <primary sortas="e-/var/log/lastlog">/var/log/lastlog</primary> 35 <secondary>chroot</secondary> 36 </indexterm> 37 38 <indexterm zone="ch-boot-pwdgroup"> 39 <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary> 20 40 <secondary>chroot</secondary> 21 41 </indexterm> … … 79 99 xpointer="xpointer(//*[@os='e'])"/> 80 100 101 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 102 href="../../boot/common/pwdgroup.xml" 103 xpointer="xpointer(//*[@os='f'])"/> 104 105 <screen os="g"><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} 106 chgrp -v utmp /var/run/utmp /var/log/lastlog 107 chmod -v 664 /var/run/utmp /var/log/lastlog 108 chmod -v 600 /var/log/btmp</userinput></screen> 109 110 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 111 href="../../boot/common/pwdgroup.xml" 112 xpointer="xpointer(//*[@os='h'])"/> 113 81 114 <para>To remove the <quote>I have no name!</quote> prompt, start a 82 115 new shell. Since a full Glibc was installed in <xref -
BOOK/introduction/common/changelog.xml
raf2b8f8 r2b15ca5 49 49 actually used.</para> 50 50 </listitem> 51 <listitem> 52 <para>[Chris] - Added creation of log files with passwd and group.</para> 53 </listitem> 51 54 </itemizedlist> 52 55 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.