Summary: | Running sudo kedit from gnome-terminal chown's .ICEauthority root | ||
---|---|---|---|
Product: | [I don't know] kde | Reporter: | Tim <lecit> |
Component: | general | Assignee: | Stephan Kulow <coolo> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | finex, l.lunak, mboquien |
Priority: | NOR | Keywords: | investigated, triaged |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Tim
2006-07-16 10:40:16 UTC
You might be able to work around this by using kdesu, FWIW. Ubuntu patched it, wouldn't harm in include in the 3.5 branch i suppose: +--- kdelibs/kdecore/kapplication.cpp 2006-08-01 16:58:45.000000000 +0000 ++++ kdelibs/kdecore/kapplication.cpp 2006-08-01 16:58:58.000000000 +0000 +@@ -774,6 +774,14 @@ + + void KApplication::init(bool GUIenabled) + { ++ // stop KDE programs run with sudo changing permissions on ~/.kde and /.ICEauthority ++ int uid = getuid(); ++ if (uid == 0) { ++ setenv("ICEAUTHORITY", "/root/.ICEauthority", 0); ++ setenv("KDEROOTHOME", "/root/.kde", 0); ++ setenv("HOME", "/root", 1); ++ } ++ + d->guiEnabled = GUIenabled; + if ((getuid() != geteuid()) || + (getgid() != getegid())) Hello, Can you still reproduce the bug with the latest KDE 4 release? Thanks. Marked this bug as "waitingforinfo" until someone can give some more informations about the status of the bug on KDE 4. Thanks. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |