PAM

Merge lp:~kirkland/pam/sbin-update-motd into lp:ubuntu/raring/pam

Proposed by Dustin Kirkland 
Status: Needs review
Proposed branch: lp:~kirkland/pam/sbin-update-motd
Merge into: lp:ubuntu/raring/pam
Diff against target: 121 lines (+77/-0)
6 files modified
debian/changelog (+12/-0)
debian/copyright (+1/-0)
debian/libpam-modules.manpages (+1/-0)
debian/libpam-runtime.install (+1/-0)
debian/update-motd (+33/-0)
debian/update-motd.8 (+29/-0)
To merge this branch: bzr merge lp:~kirkland/pam/sbin-update-motd
Reviewer Review Type Date Requested Status
Steve Langasek Pending
Review via email: mp+148559@code.launchpad.net
To post a comment you must log in.
lp:~kirkland/pam/sbin-update-motd updated
92. By Dustin Kirkland 

install into /usr/sbin and manpages

Unmerged revisions

92. By Dustin Kirkland 

install into /usr/sbin and manpages

91. By Dustin Kirkland 

* debian/copyright, debian/libpam-runtime.install, debian/update-motd,
  debian/update-motd.8:
  - add a wrapper script, such that an administrator can force a MOTD
    update on demand
  - this also helps an administrator track down failing scripts in
    /etc/update-motd.d as described in several bugs

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-01-03 18:06:33 +0000
3+++ debian/changelog 2013-02-14 21:05:24 +0000
4@@ -1,3 +1,15 @@
5+pam (1.1.3-7ubuntu5) UNRELEASED; urgency=low
6+
7+ * debian/copyright, debian/libpam-runtime.install, debian/update-motd,
8+ debian/update-motd.8:
9+ - add a wrapper script, such that an administrator can force a MOTD
10+ update on demand
11+ - this also helps an administrator track down failing scripts in
12+ /etc/update-motd.d as described in several bugs
13+ - install into /usr/sbin and manpages
14+
15+ -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 14 Feb 2013 14:52:52 -0600
16+
17 pam (1.1.3-7ubuntu4) raring; urgency=low
18
19 * Add missing #include to fix compilation with glibc 2.16 (Daniel
20
21=== modified file 'debian/copyright'
22--- debian/copyright 2010-08-16 19:12:35 +0000
23+++ debian/copyright 2013-02-14 21:05:24 +0000
24@@ -20,6 +20,7 @@
25 Copyright (C) 2003 Nalin Dahyabhai <nalin@redhat.com>
26 Copyright (C) 2005-2008 Thorsten Kukuk <kukuk@thkukuk.de>
27 Copyright (C) 2005 Darren Tucker
28+Copyright (C) 2013 Dustin Kirkland <dustin.kirkland@gmail.com>
29
30
31 Unless otherwise *explicitly* stated the following text describes the
32
33=== modified file 'debian/libpam-modules.manpages'
34--- debian/libpam-modules.manpages 2011-08-18 16:41:18 +0000
35+++ debian/libpam-modules.manpages 2013-02-14 21:05:24 +0000
36@@ -1,3 +1,4 @@
37 debian/tmp/usr/share/man/man8/pam_*.8
38 debian/tmp/usr/share/man/man5/*conf.5
39 debian/update-motd.5
40+debian/update-motd.8
41
42=== modified file 'debian/libpam-runtime.install'
43--- debian/libpam-runtime.install 2010-08-16 19:12:35 +0000
44+++ debian/libpam-runtime.install 2013-02-14 21:05:24 +0000
45@@ -5,3 +5,4 @@
46 debian/tmp/usr/share/locale usr/share
47 debian/local/pam-auth-update usr/sbin
48 debian/pam-configs/unix usr/share/pam-configs/
49+debian/update-motd usr/sbin
50
51=== added file 'debian/update-motd'
52--- debian/update-motd 1970-01-01 00:00:00 +0000
53+++ debian/update-motd 2013-02-14 21:05:24 +0000
54@@ -0,0 +1,33 @@
55+#!/bin/sh
56+#
57+# update-motd - update the dynamic MOTD immediately
58+#
59+# Copyright (C) 2008-2013 Dustin Kirkland <dustin.kirkland@gmail.com>
60+#
61+# Authors: Dustin Kirkland <dustin.kirkland@gmail.com>
62+#
63+# This program is free software: you can redistribute it and/or modify
64+# it under the terms of the GNU General Public License as published by
65+# the Free Software Foundation, version 3 of the License.
66+#
67+# This program is distributed in the hope that it will be useful,
68+# but WITHOUT ANY WARRANTY; without even the implied warranty of
69+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
70+# GNU General Public License for more details.
71+#
72+# You should have received a copy of the GNU General Public License
73+# along with this program. If not, see <http://www.gnu.org/licenses/>.
74+
75+set -e
76+
77+if /usr/bin/env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin run-parts --lsbsysinit /etc/update-motd.d > /var/run/motd.new; then
78+ if mv -f /var/run/motd.new /var/run/motd; then
79+ exit 0
80+ else
81+ echo "ERROR: could not install new MOTD" 1>&2
82+ exit 1
83+ fi
84+else
85+ echo "ERROR: could not generate new MOTD" 1>&2
86+ exit 2
87+fi
88
89=== added file 'debian/update-motd.8'
90--- debian/update-motd.8 1970-01-01 00:00:00 +0000
91+++ debian/update-motd.8 2013-02-14 21:05:24 +0000
92@@ -0,0 +1,29 @@
93+.TH update-motd 8 "14 February 2013" "update-motd"
94+
95+.SH NAME
96+update-motd \- immediately update the dynamic MOTD
97+
98+.SH SYNOPSIS
99+.B update-motd
100+
101+.SH DESCRIPTION
102+The PAM MOTD module updates the Message-of-the-Day automatically on user logins.
103+
104+But sometimes, the system administrator may want to update the MOTD immediately or on demand.
105+
106+This simple program performs the same actions handled by PAM on login.
107+
108+Note that only the system administrator can typically write to the MOTD, and thus this utility should be executed as the root user.
109+
110+For best practices and additional information, please see \fBupdate-motd\fP(5).
111+
112+.SH FILES
113+\fI/etc/motd\fP, \fI/var/run/motd\fP, \fI/etc/update-motd.d\fP
114+
115+.SH SEE ALSO
116+\fBmotd\fP(5), \fBpam_motd\fP(8), \fBrun-parts\fP(8), \fBupdate-motd\fP(5)
117+
118+.SH AUTHOR
119+This manpage and the update-motd framework was written by Dustin Kirkland <dustin.kirkland@gmail.com> for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
120+
121+On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.

Subscribers

People subscribed via source and target branches