Changeset b6f86141 for chapter06/chapter06.xml
- Timestamp:
- 01/14/2004 01:34:43 AM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- e4d88a56
- Parents:
- aba5bfb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/chapter06.xml
raba5bfb rb6f86141 223 223 224 224 <sect1 id="ch06-pwdgroup"> 225 <title>Creating the passwd and groupfiles</title>225 <title>Creating the passwd, group and log files</title> 226 226 <?dbhtml filename="pwdgroup.html" dir="chapter06"?> 227 227 … … 279 279 they are installed, we turn off this function for the duration of this 280 280 chapter.</para> 281 282 <para>The <userinput>login</userinput>, <userinput>agetty</userinput> and 283 <userinput>init</userinput> programs (and some others) use a number of log 284 files to record information such as who was logged into the system and when. 285 These programs, however, won't write to the log files if they don't already 286 exist. Initialize the log files and give them their proper permissions:</para> 287 288 <screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} 289 chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen> 290 291 <para>The <filename>/var/run/utmp</filename> file records the users that are 292 currently logged in. The <filename>/var/log/wtmp</filename> file records all 293 logins and logouts. The <filename>/var/log/lastlog</filename> file records for 294 each user when he or she last logged in. The <filename>/var/log/btmp</filename> 295 file records the bad login attempts.</para> 281 296 282 297 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.