Changeset 2b15ca5 for BOOK/boot/common
- Timestamp:
- May 24, 2014, 9:35:30 PM (11 years ago)
- Branches:
- clfs-3.0.0-sysvinit, sysvinit
- Children:
- 1cfa56e
- Parents:
- af2b8f8
- File:
-
- 1 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>
Note:
See TracChangeset
for help on using the changeset viewer.