[Bug 1368864] Re: old motd is displayed on login

2016-02-03 Thread Launchpad Bug Tracker
This bug was fixed in the package shadow - 1:4.2-3.1ubuntu1

---
shadow (1:4.2-3.1ubuntu1) xenial; urgency=low

  * Merge from Debian unstable.
- Includes pam_loginuid in login PAM config.  LP: #1067779.
- Fixes typo in usermod -h output.  LP: #1348873.
  * Remaining changes:
- debian/passwd.upstart: Add an upstart job to clear locks on
  [shadow-]passwd/group.
- debian/login.defs:
  + Update documentation of USERGROUPS_ENAB: with pam_umask, the UPG
handling does not only apply to "former (pre-PAM) uses".
  + Update documentation of UMASK: Explain that USERGROUPS_ENAB
will modify this default for UPGs.
- debian/{source_shadow.py,rules}: Add apport hook
- Pass noupdate to pam_motd call for /run/motd.dynamic, to avoid running
  /etc/update-motd.d/* scripts twice.
- debian/patches/1010_extrausers.patch: Add support to passwd for
  libnss-extrausers
- debian/patches/1011_extrausers_toggle.patch: extrausers support for
  useradd and groupadd
- debian/patches/userns/subuids-nonlocal-users: Don't limit
  subuid/subgid support to local users.
  * Dropped changes, included in Debian:
- Allow LXC devices (lxc/console, lxc/tty[1234]), used from precise on.
- Add uidmap package based on upstream patches that introduce
  newuidmap/newgidmap as well as /etc/subuid and /etc/subgid. Additional
  updates on those to widen the default allocation to 65536 uids and gids
  and only assign ranges to non-system users.
- debian/patches/1020_fix_user_busy_errors: Call sub_uid_close in all
  error cases.
  * Dropped changes, included upstream:
- debian/patches/495_stdout-encrypted-password: chpasswd can report
  password hashes on stdout.
- debian/patches/496_su_kill_process_group: Kill the child process group,
  rather than just the immediate child.
  * Fix pam_motd calls so that the second pam_motd is the noupdate one rather
than the first, ensuring /run/motd.dynamic is always populated and shown
on the first login after boot.  LP: #1368864.
  * Don't call 'pam_exec uname', a change adopted in Debian without
coordination with the Debian PAM maintainer
  * Use dh_installinit now for installing the upstart job, as we no longer
generate a dependency on upstart-job.
  * Include /etc/sub[ug]id in the list of files to clear locks for on boot.
LP: #1304505
  * Add a systemd unit to go with the upstart job, so that lock clearing works
on newer Ubuntu releases.

shadow (1:4.2-3.1) unstable; urgency=medium

  * Non-maintainer upload.
  * Fix error handling in busy user detection. (Closes: #778287)

shadow (1:4.2-3) unstable; urgency=low

  * Enforce hardened builds to workaround cdbs sometimes not building
with hardening flags as in 1:4.2-2+b1
Thanks to Dr. Markus Waldeck for pointing the issue and Simon Ruderich
For providing a working patch.

shadow (1:4.2-2) unstable; urgency=low

  * The "Soumaintrain" release
  * The "Rigotte de Condrieu" release was 4.2-1
  * Upload to unstable
  * Last upload integrates the use of dh_autoreconf which has the same
effect then Eric Dorland's patch in 1:4.1.5.1-1.1 NMU to drop the
use of automake1.9. Closes: #724434

  [ Samuel Thibault ]
  * Enable the login package on hurd-any, but without /bin/login, still provided
by the hurd package. Closes: #737805.
This fix was accidentally forgotten in 1:4.2-1

  [ Josh Triplett ]
  * use the new pam_exec functionality from pam 1.1.8-1 to implement the
dynamic motd, rather than using /run/motd.dynamic from initscripts.
This will allow initscripts to drop /etc/init.d/motd.
Closes: #741129

  [ Laurent Bigonville ]
  * Enable libaudit support. Closes: #745774

  [ Trần Ngọc Quân ]
  * Vietnamese translation update.

  [ Christian Perrier ]
  * Add a lintian override for newuidmap and newgidmap setuid binaries
  * Add upstream signing key as debian/upstream-signing-key.asc
  * Check upstream signing key in debian/watch

shadow (1:4.2-1) experimental; urgency=low

  [ Nicolas FRANCOIS (Nekral) ]
  * New upstream release. Fixes:
- Invalid free() in su fixed by using strdup(). Thanks to Serge
  Hallyn for the patch. Closes: #691459
- Kill the child process group, rather than just the
  immediate child; this is needed now that su no
  longer starts a controlling terminal when not running an
  interactive shell. Thanks to Colin Watson for the patch.
  Closes: #713979
- German manpages translation update. Closes: #679152
- Improve login.defs (typographic errors and better format).
  Closes: #685415
- Russian translation update. Closes: #718356
- Do not assume random() is limited by RAND_MAX.  Closes: #677275
- Support C libraries with unknown fields in struct passwd.
  Closes: #675824
- su: child cleanup is performed before terminating PAM sessions. This
  avoids anoying "...terminated" messages when PAM module

[Bug 1368864] Re: old motd is displayed on login

2015-10-15 Thread Shaun Bouckaert
Although /run/motd.dynamic is being updated, it's being updated after
being displayed, which is why you see the old one from the previous
login. After commenting out the second line with no arguments:

sessionoptional pam_motd.so # [1]

/run/motd.dynamic was no longer being updated on login so I knew this
was the line triggering the udpate.

After moving the noupdate to this line I was seeing the freshly
generated motd.dynamic on login.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1368864

Title:
  old motd is displayed on login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1368864/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1368864] Re: old motd is displayed on login

2015-03-31 Thread Michael
Same here on 14.04 , MOTD doen't get updated.

/etc/pam.d/login:

[...]
sessionoptional   pam_motd.so  motd=/run/motd.dynamic noupdate
sessionoptional   pam_motd.so
[...]

/etc/pam.d/sshd:

[...]
session optional pam_motd.so motd=/run/motd.dynamic
session optional pam_motd.so noupdate
[...]

Please fix this as we use the MOTD for update-infos and other stuff.

Regards!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1368864

Title:
  old motd is displayed on login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1368864/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1368864] Re: old motd is displayed on login

2015-03-21 Thread Casey Stone
Hello: This affects my server(s), 14.04.2 LTS. In fact I just logged in
and got information that was 11 days old. I rely on the welcome message
especially to tell me when I need to REBOOT for some automatically-
installed (perhaps security) updates to be fully applied. Perhaps a
wiser sysadmin would have a better way to be notified about that!

Anyway, could this bug perhaps be assigned to someone and solved soon
please?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1368864

Title:
  old motd is displayed on login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1368864/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1368864] Re: old motd is displayed on login

2014-12-18 Thread Colin Watson
** Changed in: shadow (Ubuntu)
 Assignee: Colin Watson (cjwatson) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1368864

Title:
  old motd is displayed on login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1368864/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1368864] Re: old motd is displayed on login

2014-10-12 Thread Steve Langasek
This is a bug in the /etc/pam.d/login configuration, which has:

sessionoptional   pam_motd.so  motd=/run/motd.dynamic noupdate
sessionoptional   pam_motd.so

This tells login to display the dynamic motd /without updating it/, and
then to call pam_motd again for the static motd... and updating the
dynamic file.  So the motd displayed will always be one run out of date.

The ssh package has this the correct way around:

sessionoptional pam_motd.so  motd=/run/motd.dynamic
sessionoptional pam_motd.so noupdate


** Package changed: pam (Ubuntu) => shadow (Ubuntu)

** Changed in: shadow (Ubuntu)
   Status: Confirmed => Triaged

** Changed in: shadow (Ubuntu)
 Assignee: (unassigned) => Colin Watson (cjwatson)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1368864

Title:
  old motd is displayed on login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1368864/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1368864] Re: old motd is displayed on login

2014-10-08 Thread Brian Murray
** Changed in: pam (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1368864

Title:
  old motd is displayed on login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/1368864/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1368864] Re: old motd is displayed on login

2014-10-05 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: pam (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1368864

Title:
  old motd is displayed on login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/1368864/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs