Changeset b6f86141
- 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
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
raba5bfb rb6f86141 50 50 </itemizedlist> 51 51 </listitem> 52 53 <listitem><para>January 13th, 2004 [greg]: Moved log file creation from Shadow 54 to "Creating the passwd and group files" and renamed that section accordingly. 55 Closes 741.</para></listitem> 52 56 53 57 <listitem><para>January 13th, 2004 [greg]: Upgraded to Automake-1.8.2, Kbd-1.11 -
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> -
chapter06/shadowpwd.xml
raba5bfb rb6f86141 16 16 <sect2> 17 17 <title>Installation of Shadow</title> 18 19 <para>The <userinput>login</userinput>, <userinput>getty</userinput> and20 <userinput>init</userinput> programs (and some others) maintain a number21 of logfiles to record who are and who were logged in to the system. These22 programs, however, don't create these logfiles when they don't exist, so if23 you want this logging to occur you will have to create the files yourself.24 The Shadow package needs to detect these files in their proper place, so we25 create them now, with their proper permissions:</para>26 27 <screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}28 chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen>29 30 <para>The <filename>/var/run/utmp</filename> file lists the users that are31 currently logged in, the <filename>/var/log/wtmp</filename> file who32 <emphasis>were</emphasis> logged in and when.33 The <filename>/var/log/lastlog</filename> file shows for each user when he34 or she last logged in, and the <filename>/var/log/btmp</filename> lists the35 bad login attempts.</para>36 18 37 19 <para>Shadow hard-wires the path to the <userinput>passwd</userinput> binary
Note:
See TracChangeset
for help on using the changeset viewer.