- Timestamp:
- Jan 8, 2014, 11:28:36 AM (11 years ago)
- Branches:
- clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 124fbb6d
- Parents:
- 0ddb5ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/boot/common/pwdgroup.xml
r0ddb5ca r2be952c 202 202 group's name.</para> 203 203 204 <para os="f">The <command>login</command>, <command>agetty</command>, and205 <command>init</command> programs (and others) use a number of log206 files to record information such as who was logged into the system and207 when. However, these programs will not write to the log files if they208 do not already exist. Initialize the log files and give them209 proper permissions:</para>210 211 <screen><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp}212 chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog213 chmod -v 600 ${CLFS}/var/log/btmp</userinput></screen>214 215 <para>The <filename>/var/run/utmp</filename> file records the users216 that are currently logged in. The <filename>/var/log/wtmp</filename>217 file records all logins and logouts. The218 <filename>/var/log/lastlog</filename> file records when219 each user last logged in. The <filename>/var/log/btmp</filename> file220 records the bad login attempts.</para>221 222 204 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.