This fails when logging in from the console (see below).  Doesn't appear
to be affected when logging in via SSH.

The check should probably be [ -z "$EUID" -o "$EUID" -ne 0 ].


Ubuntu 20.04 LTS riscv64-dev ttyS0

riscv64-dev login: ryan
Password: 
/etc/update-motd.d/91-release-upgrade: 9: [: Illegal number: 
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-28-generic riscv64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

0 updates can be installed immediately.
0 of these updates are security updates.


Last login: Mon Jul  6 17:24:50 UTC 2020 on ttyS0
ryan@riscv64-dev:~$

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

Title:
  Permission denied error from show-motd when updates available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-release-upgrader/+bug/1873545/+subscriptions

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

Reply via email to