aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/pwdgroup.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/chapter06/pwdgroup.xml b/chapter06/pwdgroup.xml
index 83c3bd283..880a266e7 100644
--- a/chapter06/pwdgroup.xml
+++ b/chapter06/pwdgroup.xml
@@ -46,6 +46,7 @@ lp:x:9:
dialout:x:10:
audio:x:11:
video:x:12:
+utmp:x:13:
<userinput>EOF</userinput></screen>
<para>The created groups aren't part of any standard -- they are some of the
@@ -79,7 +80,8 @@ These programs, however, won't write to the log files if they don't already
exist. Initialize the log files and give them their proper permissions:</para>
<screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
-chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen>
+chgrp utmp /var/run/utmp /var/log/lastlog
+chmod 664 /var/run/utmp /var/log/lastlog</userinput></screen>
<para>The <filename>/var/run/utmp</filename> file records the users that are
currently logged in. The <filename>/var/log/wtmp</filename> file records all