[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, master, updated. clfs-2.1.0-1332-g195f497

git git at cross-lfs.org
Thu Jul 10 03:17:11 PDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cross-LFS Book".

The branch, master has been updated
       via  195f497f4e7430363026ce3b70405dc623faa46e (commit)
      from  f6ca8eb1879dae0b3156c5a4b20fb267db1d5cfe (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 195f497f4e7430363026ce3b70405dc623faa46e
Author: Chris Staub <chris at beaker67.com>
Date:   Thu Jul 10 06:17:06 2014 -0400

    Create /var/log/lastlog

diff --git a/BOOK/final-system/common/shadow.xml b/BOOK/final-system/common/shadow.xml
index 33710a6..cae5941 100644
--- a/BOOK/final-system/common/shadow.xml
+++ b/BOOK/final-system/common/shadow.xml
@@ -98,6 +98,16 @@ find man -name Makefile.in -exec sed -i \
 
 <screen os="v"><userinput>mv -v /usr/bin/passwd /bin</userinput></screen>
 
+    <para os="w">The <command>login</command> program will write to
+    <filename>/var/log/lastlog</filename>, if it exists, to record the date and
+    time of the latest successful login for each user. This log file is not
+    created automatically if it does not already exist, so we will
+    create it now and give it appropriate ownership and permissions:</para>
+
+<screen os="x"><userinput>touch /var/log/lastlog
+chgrp -v utmp /var/log/lastlog
+chmod -v 664 /var/log/lastlog</userinput></screen>
+
   </sect2>
 
   <sect2 id="conf-shadow" role="configuration">
diff --git a/BOOK/final-system/multilib/shadow.xml b/BOOK/final-system/multilib/shadow.xml
index 2ebe310..1c8e6e9 100644
--- a/BOOK/final-system/multilib/shadow.xml
+++ b/BOOK/final-system/multilib/shadow.xml
@@ -91,6 +91,14 @@
     href="../common/shadow.xml"
     xpointer="xpointer(//*[@os='v'])"/>
 
+    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+    href="../common/shadow.xml"
+    xpointer="xpointer(//*[@os='w'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+    href="../common/shadow.xml"
+    xpointer="xpointer(//*[@os='x'])"/>
+
   </sect2>
 
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
diff --git a/BOOK/introduction/common/changelog.xml b/BOOK/introduction/common/changelog.xml
index 335d190..3585888 100644
--- a/BOOK/introduction/common/changelog.xml
+++ b/BOOK/introduction/common/changelog.xml
@@ -37,6 +37,16 @@
 -->
 
     <listitem>
+      <para>10 July 2014</para>
+      <itemizedlist>
+        <listitem>
+          <para>[Chris] - Add back instruction to create /var/log/lastlog,
+          so that it can actually be used.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>02 July 2014</para>
       <itemizedlist>
         <listitem>

-----------------------------------------------------------------------

Summary of changes:
 BOOK/final-system/common/shadow.xml    |   10 ++++++++++
 BOOK/final-system/multilib/shadow.xml  |    8 ++++++++
 BOOK/introduction/common/changelog.xml |   10 ++++++++++
 3 files changed, 28 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list