motd.ubuntu.com currently shows media item (HBO's Silicon Valley using Ubuntu)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | base-files (Ubuntu) |
Wishlist
|
Dustin Kirkland | ||
Bug Description
In Ubuntu 17.04 or newer, there is a script at /etc/update-
Currently, https:/
Instead, https:/
use Ubuntu Server (relevant security issues, etc), instead of items for desktop users.
=======
Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-21-generic x86_64)
* Documentation: https:/
* Management: https:/
* Support: https:/
* How HBO's Silicon Valley built "Not Hotdog" with mobile TensorFlow,
Keras & React Native on Ubuntu
- https:/
=======
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: base-files 9.6ubuntu13
ProcVersionSign
Uname: Linux 4.10.0-24-generic x86_64
ApportVersion: 2.20.4-0ubuntu4
Architecture: amd64
Date: Wed Jun 28 12:31:24 2017
InstallationDate: Installed on 2017-05-02 (56 days ago)
InstallationMedia: Xubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: base-files
UpgradeStatus: No upgrade log present (probably fresh install)
| Zachary Fouts (zfouts) wrote : | #1 |
| Changed in base-files (Ubuntu): | |
| assignee: | nobody → Dustin Kirkland (kirkland) |
| status: | New → Triaged |
| information type: | Public → Public Security |
| information type: | Public Security → Public |
| Simos Xenitellis (simosx) wrote : | #3 |
Which RSS feed is shown here?
| Mikko Tanner (shapemaker) wrote : | #4 |
I strongly agree with @andrewsomething here. Advertising has absolutely no place in motd.
| Jonathan Carter (jonathan) wrote : | #5 |
@Mikko It should really have no place at all in something that you'd like to call a free operating system. Unfortunately Canonical strongly disagrees with that position.
| Simos Xenitellis (simosx) wrote : | #6 |
The script is /etc/update-
which reads https:/
Obviously there has been an unfortunate mix-up and it shows that HBO-related item.
Is it really necessary to conflate this into some conspiracy to display ads in the Ubuntu Server motd?
| summary: |
- motd is advertising HBO's Silicon Valley + motd.ubuntu.com currently advertises HBO's Silicon Valley |
| Simos Xenitellis (simosx) wrote : Re: motd.ubuntu.com currently advertises HBO's Silicon Valley | #7 |
Also, this is not an issue with base-files, but rather with motd.ubuntu.com.
The proper place to file this, would be somewhere at https:/
| description: | updated |
| summary: |
- motd.ubuntu.com currently advertises HBO's Silicon Valley + motd.ubuntu.com currently shows media item (HBO's Silicon Valley using + Ubuntu) |
| Sander Steffann (sander-steffann) wrote : | #8 |
Well, it's acombined issue:
An ubuntu package shows content from motd.ubuntu.com. If we have control over what motd.ubuntu.com contains then we should fix that. If we don't have control over the quality of what motd.ubuntu.com contains then we shouldn't use it.
User's won't know where the information comes from, only that Ubuntu shows it. Therefore we should only show information from sources we can rely on to show useful information to users. Either the source should be fixed, or it shouldn't be used...
| M. Lawson (mlawson1986) wrote : | #9 |
While I agree this shouldn't be seen as some sort of conspiracy, there are a few things I want to comment on:
1) This shouldn't happen in the first place. ubuntu.com is not ad supported, and neither should the OS. Canonical makes its money through support services and should not need the ad revenue. If for some reason they do, a formal statement needs to be released
2) This is kind of sneaky to put in to the motd
3) Regardless of where it's coming from, ubuntu.com is the domain. That's where the onus lay.
| Joonas Saarinen (jza) wrote : | #10 |
Even if it isn't seen as an advertisement, it's a bit questionable and unprofessional to put cool facts about a TV show in a space reserved for technical announcements.
| Dustin Kirkland (kirkland) wrote : | #11 |
Howdy! I'm the author of the motd-news code, as well as the story in the subject of this bug.
Note that motd.ubuntu.com has been updated to say:
" * Ubuntu 16.10 will reach end of life on Wednesday, July 20th"
It may be useful to explain a bit of the design of motd-news. Note that much of this was copied over from my comment on the Hacker News thread: https:/
By design:
- Asynchronously, about 60 seconds after boot, a systemd timer fires which runs "/etc/update-
- It sources 3 admin-editable config variables in /etc/default/
- The admin can disable it entirely (ENABLED=0), change or add other MOTD news sources (your corporate IT team could run its own), and change the wait time in seconds
- If it's enabled, that systemd timer job will loop over each of the URLS (note, that it's important that these should be https with valid SSL certificates), trim them to 80 characters per line, and a maximum of 10 lines, and concatenate them to a cache file in /var/cache/
- Every ~12 hours thereafter (with a little bit of random timer fuzzing), this systemd timer job will re-run and update the /var/cache/
- Upon login, the contents of /var/cache/
As I am generally responsible for this feature in Ubuntu (as the Ubuntu Product Manager for the design, and the Ubuntu Core Developer for the implementation) I'll also respond to the discussion about this feature being included in Ubuntu at all...
- Back in 2009, Ubuntu was the first distribution to add the concept of a "dynamic MOTD", by introducing the /etc/update-
- It's a flexible framework that enables distro packages or administrators to add executable scripts in /etc/update-
- This was quite interesting, in that for almost 40 years of Linux/UNIX, the "Message of the Day" was anything but that... It was a message that was created at one point in time, when the distro released, and that's about it. And we managed to change that.
- If you look in your Ubuntu's /etc/update-
- All of these are locally generated, based on local information available on the system.
- In Ubuntu 17.04, we added /etc/update-
| Zachary Fouts (zfouts) wrote : | #12 |
Dustin -- thank you for addressing the issue.
| Timothy R. Chavez (timrchavez) wrote : | #13 |
Just my opinion here..
```
* Sometimes, there's critical information that either we, the distro, or perhaps even the local IT administrator of a fleet of systems needs to communicate to users at login. Think, "ShellShock", "Heartbleed", "StackClash". This seems to happen every few months, in the current state of the world.
* Other times, we need to communicate something about the distribution. EoL messages, new feature availability, etc.
```
^^^ Great use of motd-news
```
And sometimes, it's just a matter of presenting a fun fact.
```
^^^ Not a great use of motd-news
I wouldn't want to have to opt out of receiving critical information or EOL messages just to avoid receiving fun facts. Can we maybe split off the fun fact stuff into it's own motd-funfact script and have it disabled by default on the server image?
| Timothy R. Chavez (timrchavez) wrote : | #14 |
I don't know if this should be a separate issue, but while investigating this issue and learning about motd-news, I stumbled across this in the code https:/
| Timothy R. Chavez (timrchavez) wrote : | #15 |
I should walk back some of what I've said. I don't want to be inflammatory. I implied Canonical was collecting this information when they may only in fact be using it to decide which messages to send back to the client. It's entirely possible that the information is being "thrown away" after the http response is sent. If that's the case, it would be great to state it somewhere. Ideally it would be nice to make all those decisions locally, but I recognize the trade offs in terms of payload size and complexity. My apologies
1) This is ideological content and it's not being used to disseminate technical or factual knowledge that is useful to the user.
I would be less inclined to be critical if the non-relevant information delivered was content that helped to amplify the work of a world-renowned charity (say, MSF for example) butthe relevant news I've seen are just part of a certain Silicon Valley-dominated ideology, and as such it presents the potential of being inadvertently used as a propaganda vehicle to advance particular interests of a specific group of people.
2) It doean't seem that enough precautions have been taken to avoid makibg motd a central point of failure. It doesn't seem to take into accoubt that there's a potebtial for privacy and exploit problems generated for desktop users, without offeribg a straightforward opportunity to opt out. It's a practice that should at a minimum be part of an optional and customisable policy kit in enterprise environments.
3) For technical reasons and other reasons explained above, I respectfuly suggest that this practice should be completely reconsidered in further detail or discontinued altogether.
| Simos Xenitellis (simosx) wrote : | #17 |
@Timothy:
There would not be much of a need to collect stats specifically from motd.ubuntu.com. The user-agent will just say 'curl' in all cases which is not that helpful.
Also, each distro installation checks every day for security updates, so why would anyone bother with motd?
There has been a sad Twitter storm in a tea cup over this, and it makes otherwise nice people to be negative about Ubuntu.
| Changed in base-files (Ubuntu): | |
| importance: | Undecided → Wishlist |
| status: | Triaged → Opinion |
| Timothy R. Chavez (timrchavez) wrote : | #18 |
@Simos:
Not sure about the Twitter storm you're referring too. The http request being sent to motd.ubuntu.com is embedding information like system uptime in the user-agent header. That appears to be used to determine which information to send back in the http response. What's not clear, is if it's being collected or not. Also, while unattended-upgrades for -security may be a default, it may also be disabled, so I don't think you can assume that. That said, I do think it's a good point that if you're automatically receiving security upgrades, how much the motd news that covers such things actually matters. Is your recommendation to disable motd-news by default and make it opt-in?
| Dustin Kirkland (kirkland) wrote : | #19 |
This comment is mainly for Tim and Andrew (of Digital Ocean), who seem offended by this behavior.
I just captured this snapshot in my Chrome browser, searching for "Docker Cloud". The top results of that search are not actually the organic docker.com results, but rather a Google Ad for Digital Ocean services.
Moreover, the HBO link wasn't even an advertisement! It was an interesting piece of news from this week, a blog post of an interesting developer who did something fun on top of Ubuntu. And we celebrated that achievement.
| Dustin Kirkland (kirkland) wrote : | #20 |
Regarding the User Agent -- this is exactly equivalent to the USER AGENT string your browser (Chrome, Chromium, Firefox, Safari, curl, wget) sends to every website in the world. Curious? Install apache2 on localhost, tail -f /var/log/
127.0.0.1 - - [29/Jun/
| Dustin Kirkland (kirkland) wrote : | #21 |
Regarding the "sometimes the news is just a fun fact"...
Do you get similarly annoyed when the Google logo on the homepage is replaced with a Google Doodle?
| Zachary Fouts (zfouts) wrote : | #22 |
Re: UserAgent
My UserAgent in Chrome|
Re: Fun Facts
Fun facts are indeed fun, but this feature should be reserved for important information regarding EOL, Security Patches, etc.
If the administrator of ${system} wants a fun fact, they can install something else. Cow Say, Fortune, whatever to display that.
Not trying to stir anything up, it's a great feature but that feature should be used wisely so people do not disable it.
| Timothy R. Chavez (timrchavez) wrote : | #23 |
@Dustin
Are we looking at the same USER_AGENT string? I ran the block of code from `update-
| M. Jensen. (newsworthy39) wrote : | #24 |
+1 Thanks, for briging this important security information to me. I'll remove the motd-file, to prevent tracking and the likes.
| Nicola Heald (notnownikki) wrote : | #25 |
@Dustin
> Moreover, the HBO link wasn't even an advertisement!
I think the thing that made me feel uneasy is that the motd read like an advertisement. And so did parts of the article, specifically saying that we should watch Silicon Valley. I appreciate that it was not meant that way though.
But maybe people are so sick of seeing clickbait advertorial content when they browse the internet that the message brought up some bad reactions. Perhaps people thought that, when the linked article told them that they should watch Silicon Valley, that it was promoting Silicon Valley. Which is a great show on HBO. If you haven't seen it, you should! (This is not a promotion of Silicon Valley.)
| Markus Ueberall (ueberall) wrote : | #26 |
Just my 2 cents:
In general, publishing important security/
* [16.10]
* [16.04]
(The second example would require version based comparisons, but you get the idea.)
There's no need to disclose any client specific information, and it won't hurt to transfer a few bytes more.
| Thorsten Glaser (mirabilos) wrote : | #27 |
“The default configuration is that this "motd-news" feature is enabled and that it will check https:/
In the Debian world, we call this a phone-home privacy violation which is a security-relevant release-critical bug and an absolute MUST NOT.
| Marco van Zwetselaar (zwets) wrote : | #28 |
I actually spent time tracking down this 'bug' because on my upgrade 17.04 servers I kept seeing:
* Ubuntu 16.10 will reach end of life on Thursday, July 20, 2017
How to upgrade from 16.10 to 17.04:
- https:/
making me wonder if my upgrade was botched or something. I have little against the feature in general (though I would certainly make it opt-in rather than opt-out), but this motd is confusing.
| Nish Aravamudan (nacc) wrote : | #29 |
@zwets: agreed, I see that as well. I assume the server side of motd.ubuntu.com is not using the USER_AGENT lsb value correctly?
| Nish Aravamudan (nacc) wrote : | #30 |
@zwets, would you be willing to file a new bug? It's basically a clarity issue on the messsage itself. It isn't actually saying you are running 16.10 or 17.04 or anything else. It's just letting you know that 16.10 goes EOL soon. So update your machines. But not necessarily that this particular machine needs updating. It's confusing and I think deserves a bit of rewriting to be clearer (maybe using the lsb user_agent to change the exact text of the message).
| Nish Aravamudan (nacc) wrote : | #31 |
@zwets, to be clear, file the bug at: https:/


I have to say, I was very disappointed to see this when I logged onto one of my servers today. I can understand the desire to be able to communicate directly to users and present timely, relevant information, but linking out to content marketing in what seems to be one of its first uses is self-sabotage. This type of behavior will lead to it being disabled and the "important security messages" to not be seen.
Note, you can disable this behavior in /etc/default/ motd-news