Changeset 81b4464 in clfs-embedded for BOOK/final-system
- Timestamp:
- Jul 17, 2017, 7:44:29 PM (7 years ago)
- Branches:
- master
- Children:
- 573e70c
- Parents:
- e24b7ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/creatingfiles.xml
re24b7ec r81b4464 9 9 <?dbhtml filename="creatingfiles.html"?> 10 10 11 <title>Creating the passwd, group, and l og Files</title>11 <title>Creating the passwd, group, and lastlog Files</title> 12 12 13 13 <indexterm zone="ch-final-system-creatingfiles"> … … 20 20 21 21 <indexterm zone="ch-final-system-creatingfiles"> 22 <primary sortas="e-/var/run/utmp">/var/run/utmp</primary>23 </indexterm>24 25 <indexterm zone="ch-final-system-creatingfiles">26 <primary sortas="e-/var/log/btmp">/var/log/btmp</primary>27 </indexterm>28 29 <indexterm zone="ch-final-system-creatingfiles">30 22 <primary sortas="e-/var/log/lastlog">/var/log/lastlog</primary> 31 </indexterm>32 33 <indexterm zone="ch-final-system-creatingfiles">34 <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary>35 23 </indexterm> 36 24 … … 219 207 220 208 <para>The <command>login</command>, <command>agetty</command>, and 221 <command>init</command> programs (and others) use a number oflog222 file sto record information such as who was logged into the system and223 when. However, these programs will not write to the l og files if they224 do not already exist. Initialize the log files and give them209 <command>init</command> programs (and others) use the lastlog 210 file to record information such as who was logged into the system and 211 when. However, these programs will not write to the lastlog file if it 212 does not already exist. Initialize the lastlog file and give it 225 213 proper permissions:</para> 226 214 227 <screen><userinput>touch ${CLFS}/targetfs/var/run/utmp ${CLFS}/targetfs/var/log/{btmp,lastlog,wtmp} 228 chmod -v 664 ${CLFS}/targetfs/var/run/utmp ${CLFS}/targetfs/var/log/lastlog</userinput></screen> 229 230 <para>The <filename>/var/run/utmp</filename> file records the users 231 that are currently logged in. The <filename>/var/log/wtmp</filename> 232 file records all logins and logouts. The 233 <filename>/var/log/lastlog</filename> file records when 234 each user last logged in. The <filename>/var/log/btmp</filename> file 235 records the bad login attempts.</para> 215 <screen><userinput>touch ${CLFS}/targetfs/var/log/lastlog 216 chmod -v 664 ${CLFS}/targetfs/var/log/lastlog</userinput></screen> 236 217 237 218 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.