[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-06-09 Thread wangweilin
*** This bug is a duplicate of bug 659738 *** https://bugs.launchpad.net/bugs/659738 My case was a little different but I think is part of this problem. I acctually had 4 motd when logging in with ssh. motd #1 motd #2 motd #1 motd #2 which lead me to the conclusion that there must be 2

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-06-07 Thread Barry Warsaw
*** This bug is a duplicate of bug 659738 *** https://bugs.launchpad.net/bugs/659738 ** This bug is no longer a duplicate of bug 634387 creates motd.tail on postinst, which could mean duplicate entries in /etc/motd ** This bug has been marked a duplicate of bug 659738 Duplicate welcome

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-20 Thread nutznboltz
** Description changed: When I ssh into my 10.04.2 servers I get two motd print outs. The first one appears to be current-ish, but the second one is way out of date. The first motd contains this: - System information as of Fri May 20 01:36:13 EDT 2011 +   System information as of Fri

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-20 Thread nutznboltz
*** This bug is a duplicate of bug 634387 *** https://bugs.launchpad.net/bugs/634387 ** This bug has been marked a duplicate of bug 634387 creates motd.tail on postinst, which could mean duplicate entries in /etc/motd -- You received this bug notification because you are a member of

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread Joshua Lückers
** Package changed: ubuntu = openssh (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in Ubuntu. https://bugs.launchpad.net/bugs/785424 Title: Double motd when ssh'ing into 10.04.2 -- Ubuntu-server-bugs mailing

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
@Joshua Lückers openssh does not configure MOTD. $ dpkg -S /etc/update-motd.d base-files, update-notifier-common, update-manager-core: /etc/update-motd.d -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in Ubuntu.

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
$ grep motd.tail /etc/update-motd.d/99-footer # motd.tail is reserved for the admin to append static [ -f /etc/motd.tail ] cat /etc/motd.tail || true $ dpkg -S /etc/update-motd.d/99-footer base-files: /etc/update-motd.d/99-footer ** Package changed: openssh (Ubuntu) = update-notifier

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
as a work-around: sudo rm /etc/motd.tail then log out and back in again. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/785424 Title: Double motd when ssh'ing into 10.04.2 -- ubuntu-bugs mailing

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread Joshua Lückers
** Package changed: ubuntu = openssh (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/785424 Title: Double motd when ssh'ing into 10.04.2 -- ubuntu-bugs mailing list

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
@Joshua Lückers openssh does not configure MOTD. $ dpkg -S /etc/update-motd.d base-files, update-notifier-common, update-manager-core: /etc/update-motd.d -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
$ grep motd.tail /etc/update-motd.d/99-footer # motd.tail is reserved for the admin to append static [ -f /etc/motd.tail ] cat /etc/motd.tail || true $ dpkg -S /etc/update-motd.d/99-footer base-files: /etc/update-motd.d/99-footer ** Package changed: openssh (Ubuntu) = update-notifier

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
Manual page update-motd(5) Executable scripts in /etc/update-motd.d/* are executed by pam_motd(8) as the root user at each login, and this information is concatenated in /var/run/motd. The order of script execution is determined by the run- parts(8) --lsbsysinit

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
After building a new VM from ubuntu-10.04.2-server-amd64.iso it looks like the issue is in one of these: landscape-client (1.5.0.1-0ubuntu0.10.04.0) lucid; urgency=low * New upstream version - Fix smart-update failing its very first run (LP: #562496) - Depend on pythonX.Y-dbus and

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
** Package changed: base-files (Ubuntu) = landscape-client (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/785424 Title: Double motd when ssh'ing into 10.04.2 -- ubuntu-bugs mailing list

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
1. Create new VM from ubuntu-10.04.2-server-amd64.iso 2. log in. Notice motd is displayed twice 3. log out and back in again. Notice motd is displayed only once 4. apply updates. Log out and back in again. Notice motd is displayed twice. 5. remove /etc/motd.tail and log out and back in

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
2. log in. Notice motd is displayed twice This isn't true, there's some other one-time message displayed. Running sudo strace -o apt.str -s 4096 -f aptitude dist-upgrade on a fresh VM shows that the issue is in the postinstall script of the initscripts package.

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
sysvinit (2.87dsf-4ubuntu17) lucid; urgency=low * debian/initscripts/etc/init.d/sendsigs: additional upstart jobs may be /started/ on shutdown after this script has first been invoked; so don't assume the list of known jobs is constant, instead requery initctl before each killall5

[Bug 785424] Re: Double motd when ssh'ing into 10.04.2

2011-05-19 Thread nutznboltz
Looks like the code in sysvinit-2.87dsf/debian/initscripts.postinst that tries to preserve an existing motd by turning it into a motd.tail only makes sense if /etc/motd isn't already symlink to a generated file. # # Set up motd stuff, putting variable file in /var/run/ # if [ ! -f /etc/motd.tail