[Bug 268167] [NEW] kde-config creates $HOME/.kde
Francois Gouget
fgouget at codeweavers.com
Tue Sep 9 14:42:35 UTC 2008
Public bug reported:
Binary package hint: kdelibs4c2a
kde-config creates the '$HOME/.kde/share/config' directory if it does
not exist. This is a problem if one runs it via sudo (possibly
indirectly) because then it creates a directory that the non-root user
has no access to and cannot delete.
To reproduce this issue, do the following:
$ rm -rf ~/.kde
$ ls -ld ~/.kde
ls: /home/weaver/.kde: No such file or directory
$ sudo kde-config
[sudo] password for weaver:
$ ls -ld ~/.kde
drwx------ 3 root root 4096 2008-09-09 16:32 /home/weaver/.kde
$ rm -rf .kde
rm: cannot chdir from `.' to `.kde': Permission denied
Another easier way to reproduce the issue is to tweak $HOME:
$ mkdir /tmp/decoy
$ HOME=/tmp/decoy kde-config
$ ls -ld /tmp/decoy/.kde
drwx------ 3 weaver weaver 4096 2008-09-09 16:41 /tmp/decoy/.kde
This bug happens on both Ubuntu 7.10 and Ubuntu 8.04, but strangely not on my Debian Testing system.
** Affects: kdelibs (Ubuntu)
Importance: Undecided
Status: New
--
kde-config creates $HOME/.kde
https://bugs.launchpad.net/bugs/268167
You received this bug notification because you are a member of Kubuntu
Team, which is subscribed to kdelibs in ubuntu.
More information about the kubuntu-bugs
mailing list