[Bug 1844704] Re: Please make /var/lib/update-notifier/updates-available world readable

Balint Reczey balint.reczey at canonical.com
Mon Dec 16 14:15:00 UTC 2019


root at ee-motd-verify:~# apt update -qq
28 packages can be upgraded. Run 'apt list --upgradable' to see them.
root at ee-motd-verify:~# update-motd 
Welcome to Ubuntu 19.10 (GNU/Linux 5.0.0-37-generic x86_64)

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

  System information as of Mon Dec 16 14:13:28 UTC 2019

  System load:    0.78      Processes:           28
  Usage of /home: unknown   Users logged in:     0
  Memory usage:   0%        IP address for eth0: 10.84.73.58
  Swap usage:     38%


28 updates can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable


root at ee-motd-verify:~# dpkg -l update-notifier-common | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                   Version      Architecture Description
+++-======================-============-============-=======================================================
ii  update-notifier-common 3.192.26.1   all          Files shared between update-notifier and other packages
root at ee-motd-verify:~# ls -alh /var/lib/update-notifier/updates-available
-rw-r--r-- 1 root root 143 Dec 16 14:13 /var/lib/update-notifier/updates-available


** Tags removed: verification-needed verification-needed-eoan
** Tags added: verification-done verification-done-eoan

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

Title:
  Please make /var/lib/update-notifier/updates-available world readable

Status in update-notifier package in Ubuntu:
  Fix Released
Status in update-notifier source package in Eoan:
  Fix Committed

Bug description:
  [Impact]

   * /var/lib/update-notifier/updates-available is not readable for regular users which prevents assembling MOTD with a regular user's rights.
  ug.
   * This prevents showing package information when the user is dropped to a regular user's shell in WSL.

  [Test Case]

   * The file should be world-readable
   $ sudo apt update
   $ ls -alh /var/lib/update-notifier/updates-available
   -rw-r--r-- 1 root root 83 Sep 19 15:29 /var/lib/update-notifier/updates-available

  [Regression Potential]

   * The fix is very simple, only a chmod command to leave the file
  world readable. Regressions are ulikely.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1844704/+subscriptions



More information about the foundations-bugs mailing list