Activity log for bug #1844663

Date Who What changed Old value New value Message
2019-09-19 12:20:57 Rod Smith bug added bug
2019-09-19 15:42:08 Bryan Quigley bug added subscriber Bryan Quigley
2019-09-19 18:40:57 Bryan Quigley summary sosreport run via sudo creates root-owned files in the user's home directory lxc list run via sudo creates root-owned files in the user's home directory
2019-09-19 18:43:08 Bryan Quigley description On a fresh Ubuntu 18.04 server installation, running sosreport creates root-owned files in ~/.config. Specifically, I'm using the following command: sudo sosreport --batch --tmp-dir /tmp/ Prior to running this command, ~/.config did not exist. After running the command, ~/.config exists and is owned by root, with a lxd subdirectory: $ sudo ls -lR .config .config: total 4 drwxr-x--- 2 root root 4096 Sep 19 12:16 lxc .config/lxc: total 8 -rw-r--r-- 1 root root 188 Sep 19 12:16 config.yml -rw------- 1 root root 5 Sep 19 12:16 cookies This root ownership of ~/.config and ~/.config/lxd causes problems for subsequent programs run without sudo. $ apt-cache policy sosreport sosreport: Installed: 3.6-1ubuntu0.18.04.3 Candidate: 3.6-1ubuntu0.18.04.3 Version table: *** 3.6-1ubuntu0.18.04.3 500 500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages 100 /var/lib/dpkg/status 3.5-1ubuntu3 500 500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages I've reported this bug upstream: https://github.com/sosreport/sos/issues/1787 LXD description: 1. Fresh 18.04 server 2. Run "sudo lxc list" 3. Note new root owned ~/.config directory. This does not occur on Eoan including with snap version of 3.0.4. Previous description: On a fresh Ubuntu 18.04 server installation, running sosreport creates root-owned files in ~/.config. Specifically, I'm using the following command: sudo sosreport --batch --tmp-dir /tmp/ Prior to running this command, ~/.config did not exist. After running the command, ~/.config exists and is owned by root, with a lxd subdirectory: $ sudo ls -lR .config .config: total 4 drwxr-x--- 2 root root 4096 Sep 19 12:16 lxc .config/lxc: total 8 -rw-r--r-- 1 root root 188 Sep 19 12:16 config.yml -rw------- 1 root root 5 Sep 19 12:16 cookies This root ownership of ~/.config and ~/.config/lxd causes problems for subsequent programs run without sudo. $ apt-cache policy sosreport sosreport:   Installed: 3.6-1ubuntu0.18.04.3   Candidate: 3.6-1ubuntu0.18.04.3   Version table:  *** 3.6-1ubuntu0.18.04.3 500         500 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages         100 /var/lib/dpkg/status      3.5-1ubuntu3 500         500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages I've reported this bug upstream: https://github.com/sosreport/sos/issues/1787
2019-09-19 18:43:15 Bryan Quigley affects sosreport (Ubuntu) lxd (Ubuntu)
2020-03-22 00:50:17 Stéphane Graber lxd (Ubuntu): status New Invalid