#Ubuntu is placing ads in its motd when you ssh in.

The way it fetches this ad is by doing

USER_AGENT="curl/$curl_ver $lsb $platform $cpu $uptime cloud_id/$cloud_id"

curl -A "$USER_AGENT" ...

In other words, Ubuntu is sending Canonical tracking information so it can serve you an ad.

This doesn't exactly run every time you log in (it caches the ad in /var/cache), but still... phoning home for a frickin ad?

Oh, great, and this whole mechanism is part of base-files. You can't just delete a package to get rid of it, since it's a core, essential package.

Show thread

If you want to get rid of it, do this:

sudo chmod -x /etc/update-motd.d/50-motd-news

Deleting the file would probably just reinstall it next time you do an upgrade, but removing its exec permissions should be more persistent.

Show thread
Follow

@JordiGH
Unrelated, but I also did this to {10-help-text,51-cloudguest,80-livepatch} because they were annoying/unhelpful.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml