Public bug reported:
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
** Affects: sosreport (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1844663
Title:
sosreport run via sudo creates root-owned files in the user's home
directory
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/1844663/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs