Updates-available shoud have 0644 permission

I’m using Ubuntu 18.04 server on Raspberry Pi2 (rpi2), and I like the update motd to get notified about updates available. But I noticed that it wasn’t working, and the problem is the permission on the file

mgarcia@rpi2:/etc/update-motd.d$ ll /var/lib/update-notifier/updates-available
-rw------- 1 root root 60 Oct 12 07:46 /var/lib/update-notifier/updates-available
mgarcia@rpi2:/etc/update-motd.d$

So I didn’t an updated information:

mgarcia@rpi2:~$ cat /etc/motd
(...)
0 packages can be updated.
0 updates are security updates.

Once I changed the permission, the update worked

mgarcia@rpi2:/etc/update-motd.d$ sudo chmod 644 /var/lib/update-notifier/updates-available
mgarcia@rpi2:/etc/update-motd.d$ cat /etc/motd
1 package can be updated.
0 updates are security updates.

So I think the process that generates the file “updates-available” need to be fixed.

Best Regards

Please file a bug report for things that “need to be fixed”