[Pkg-shadow-devel] Bug#669698: login: Please support dynamic motd (initscripts change)

Roger Leigh rleigh at debian.org
Sat Apr 21 09:04:10 UTC 2012


Package: login
Version: 1:4.1.5-1
Severity: normal
Tags: patch

Separation of static and dynamic motd components
================================================

Currently initscripts generates the motd, and stores it in
/var/run/motd.  /etc/motd is a symlink to this file, and
/etc/motd.tail contains the static user-editable part.  This is not
ideal for a number of reasons, including /etc/motd not being a file as
documented, and not behaving like a conffile, and being generally
complex and confusing.  It also unnecessarily wastes space on /run.

In a future upload of initscripts, this will be simplified:

- /etc/motd will contain the user-editable part, and will be a regular
  file; /etc/motd.tail will be migrated here.
- The dynamic part (uname -a) will be stored in /run/motd.dynamic;
  this will be generated at boot like we do now.  There is scope for
  supporting other dynamically generated info in the future, should
  there ever be any demand for that, but for now we are simply going
  to retain the existing behaviour.  Users can extend this should
  they wish.

This does require two separate pam_motd lines in your pam service
file, one for the dynamic and one for the static parts (patch
attached).  Enabling the use of /run/motd.dynamic before I create
it in initscripts is harmless, and it means we can seamlessly
switch over once you have made this change.


Thanks,
Roger

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (550, 'unstable'), (500, 'testing'), (400, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages login depends on:
ii  libc6           2.13-30
ii  libpam-modules  1.1.3-7
ii  libpam-runtime  1.1.3-7
ii  libpam0g        1.1.3-7

login recommends no packages.

login suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shadow-motd.patch
Type: text/x-diff
Size: 772 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20120421/b5469ade/attachment.patch>


More information about the Pkg-shadow-devel mailing list