<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>20914</bug_id>
          
          <creation_ts>2001-02-26 00:33:01 +0000</creation_ts>
          <short_desc>Support for sudo/super</short_desc>
          <delta_ts>2015-09-27 18:57:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kdesu</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Debian testing</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Schuerig">michael</reporter>
          <assigned_to name="kdesu bugs tracker">kdesu-bugs-null</assigned_to>
          <cc>arnaud_oss</cc>
    
    <cc>arthur</cc>
    
    <cc>borden_c</cc>
    
    <cc>contact</cc>
    
    <cc>jospoortvliet</cc>
    
    <cc>luke-jr+kdebugs</cc>
    
    <cc>Mathias.Homann</cc>
    
    <cc>sbriesen</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>559</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22049</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Schuerig">michael</who>
    <bug_when>2001-02-26 00:18:07 +0000</bug_when>
    <thetext>(*** This bug was imported into bugs.kde.org ***)

Package:           kdesud
Version:           KDE 2.1.0 Beta 2
Severity:          wishlist
Installed from:    Debian Packages
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

Currently kdesu/kdesud always use su. It would be nice if they could be configured to use sudo/super alternatively.

(Submitted via bugs.kde.org)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99928</commentid>
    <comment_count>1</comment_count>
    <who name="Alan Eldridge">kde</who>
    <bug_when>2002-10-16 11:25:10 +0000</bug_when>
    <thetext>Reassigned to new maintainer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162192</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Kolesnikov">gray</who>
    <bug_when>2003-09-27 18:04:08 +0000</bug_when>
    <thetext>IMHO it&apos;s really will be good. 
 
As I imagine this, kdesu may be more useful if implement this work modes (switched 
somewhere in Control Center): 
 
1. &apos;sudo&apos; mode -- to get root rights, user must type own password. This will be great, as 
example, in case when only one user use this PC -- usable and still secure. 
 
2. no-password mode -- only warning (and, maybe, checkbox &apos;I Agree&apos;). May be used when 
physical access to PC is secured enought. :) (IMHO it&apos;s not worsest than option in kdm &apos;enable 
loggin in without password&apos;) 
 
3. &apos;su&apos; mode, keeping current behavior. (By default). 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>246982</commentid>
    <comment_count>3</comment_count>
    <who name="Luke-Jr">luke-jr+kdebugs</who>
    <bug_when>2004-07-09 01:20:01 +0000</bug_when>
    <thetext>82 votes... Not enough for anyone to consider implementing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247071</commentid>
    <comment_count>4</comment_count>
    <who name="Waldo Bastian">bastian</who>
    <bug_when>2004-07-09 10:55:28 +0000</bug_when>
    <thetext>I looked into sudo-support two weeks ago but its a bit more work than I expected so I won&apos;t be doing it for KDE 3.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247190</commentid>
    <comment_count>5</comment_count>
    <who name="Luke-Jr">luke-jr+kdebugs</who>
    <bug_when>2004-07-09 16:55:46 +0000</bug_when>
    <thetext>3.4, though? Any chance on patches for 3.3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>297274</commentid>
    <comment_count>6</comment_count>
    <who name="Mike Glukhovsky">mglukhovsky</who>
    <bug_when>2004-12-25 22:37:29 +0000</bug_when>
    <thetext>Just to clarify why I feel this ought to be resolved as soon as possible- Ubuntu Linux has removed the ability to &quot;su&quot; and only allowed &quot;sudo&quot;, which works well enough in their default environment (GNOME). But for those who love KDE, it causes major problems with a lot of apps and in the general environment (particularly for al the control panel apps). If this was resolved, it&apos;d make quite a few people happy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>307355</commentid>
    <comment_count>7</comment_count>
    <who name="Jimmy Kaplowitz">jimmy</who>
    <bug_when>2005-01-27 11:34:20 +0000</bug_when>
    <thetext>KDE on Ubuntu definitely has the problem mentioned in comment #6, and many people on other distributions of Linux (including me) disable the root password for the same reasons Ubuntu does. I have not seen it as a default other than in Ubuntu, but it is common enough elsewhere as a sysadmin choice.

When implementing sudo mode, please don&apos;t just simulate it by having the option to type your own password. Please actually use sudo, so that settings in /etc/sudoers apply. I have seen a program called kdesudo that appears to do a lot of what is needed, but its last and only release was in 2003. http://ksudo.sourceforge.net/kdesudo/ is its website. I haven&apos;t tried it, since it appears not to be maintained any more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>309215</commentid>
    <comment_count>8</comment_count>
    <who name="Stefan Briesenick">sbriesen</who>
    <bug_when>2005-02-01 22:43:07 +0000</bug_when>
    <thetext>the &quot;ability&quot; to use &quot;su&quot; is putting yourself in the &quot;wheel&quot; group. Perhaps, optionally, check if /etc/pam.d/su is somehow disabled.

But nonetheless, you have at least 3 options to become securely &quot;root&quot; on your machine:

1. su &lt;command&gt;
2. sudo &lt;command&gt;
3. ssh root@localhost &lt;command&gt;

at least these three should be available in &apos;kdesu&apos; via select box (&apos;su&apos;, &apos;sudo&apos;, &apos;ssh&apos;). Optionally configurable somehow in KControl. Last selected way is the default from now then. 

&apos;ssh&apos; in combination with pam_ssh_agent would do the &quot;no-password&quot; thingy.

Furthermore, a KControl module for &apos;visudo&apos; and the /etc/ssh(2) stuff would be great!
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323042</commentid>
    <comment_count>9</comment_count>
    <who name="Rene Horn">the.rhorn</who>
    <bug_when>2005-03-11 10:48:41 +0000</bug_when>
    <thetext>I, too, would like to mention that this feature would be a great security feature as long as it respects my sudoers file.  What&apos;s great about sudo is that it allows for fine-grained privilege escalation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323183</commentid>
    <comment_count>10</comment_count>
    <who name="Jonathan Riddell">jr</who>
    <bug_when>2005-03-11 19:07:27 +0000</bug_when>
    <thetext>I have a patch to add this which I&apos;ll release once tested and tidied.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331122</commentid>
    <comment_count>11</comment_count>
      <attachid>10487</attachid>
    <who name="Jonathan Riddell">jr</who>
    <bug_when>2005-04-02 22:36:43 +0000</bug_when>
    <thetext>Created attachment 10487
kdesu patch to kdelibs for sudo support</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331123</commentid>
    <comment_count>12</comment_count>
      <attachid>10488</attachid>
    <who name="Jonathan Riddell">jr</who>
    <bug_when>2005-04-02 22:37:51 +0000</bug_when>
    <thetext>Created attachment 10488
kdesu patch to kdelibs for sudo support</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331124</commentid>
    <comment_count>13</comment_count>
    <who name="Jonathan Riddell">jr</who>
    <bug_when>2005-04-02 22:53:17 +0000</bug_when>
    <thetext>Second patch it to kdebase not kdelibs, it just changes the string.

Unlike su you can not use a kill signal on sudo (why is this different?) so the patch stops the kill signals.  kdesu starts an instance of su/sudo to check if it needs a password, then is starts another one for real.  Because the sudo instance can not be killed the first one remains running until the parent process has finished.  It also means it asks for a password when one isn&apos;t required (sudo is started on pts1 to check for password, then on pts2 for real, because sudo on pts1 is never given the password sudo on pts1 will continue to need the password next time it runs while sudo on pts2 does not).
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354055</commentid>
    <comment_count>14</comment_count>
    <who name="Sebastian Reitenbach">itlistuser</who>
    <bug_when>2005-06-28 11:44:03 +0000</bug_when>
    <thetext>Hi,

for me in a corporate environment, using linux not only on servers but also KDE for our desktops and laptops, i would greatly appreciate this feature so i do not need to hand out the root passwords to the users or i can disable it at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380536</commentid>
    <comment_count>15</comment_count>
    <who name="Luk van den Borne">luktheluckyboy</who>
    <bug_when>2005-10-10 21:37:29 +0000</bug_when>
    <thetext>Is there any chance that the patch will be included into 3.5 or so?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380544</commentid>
    <comment_count>16</comment_count>
    <who name="jos poortvliet">jospoortvliet</who>
    <bug_when>2005-10-10 22:22:36 +0000</bug_when>
    <thetext>wat&apos;d ya say? if it&apos;ll be in 3.5?? :D 




for the record: i got 8 mails telling me about the question from Luk...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458278</commentid>
    <comment_count>17</comment_count>
    <who name="Philip Rodrigues">phil</who>
    <bug_when>2006-08-05 11:53:58 +0000</bug_when>
    <thetext>Has Riddell&apos;s patch been merged into kubuntu? If so, would it make a suitable feature for the 3.5 feature unfreeze?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458283</commentid>
    <comment_count>18</comment_count>
    <who name="Lloeki">lloeki</who>
    <bug_when>2006-08-05 12:37:03 +0000</bug_when>
    <thetext>This one has been going on for years and continuously popping up in various forums, both for gksu and kdesu (gksudo and kdesudo are NOT proper replacements, they are not called in many places and they&apos;re vaguely hackey). I bet kubuntu is not using Riddell&apos;s patch but their own. Whatever, it does not give you choice (via e.g Kcontrol). Isn&apos;t there any kind soul to put this in kde 3.5.5 ? Really, it&apos;s a major feature for sys admins.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458692</commentid>
    <comment_count>19</comment_count>
    <who name="Jonathan Riddell">jr</who>
    <bug_when>2006-08-07 15:48:35 +0000</bug_when>
    <thetext>SVN commit 570635 by jriddell:

Add sudo support
BUG:20914
See that bug for some remaining issues


 M  +8 -0      configure.in.in  
 M  +9 -0      process.cpp  
 M  +57 -9     su.cpp  
 M  +1 -0      su.h  


--- branches/KDE/3.5/kdelibs/kdesu/configure.in.in #570634:570635
@@ -6,6 +6,14 @@
     AC_DEFINE_UNQUOTED(__PATH_SU, &quot;$path_su&quot;, [path to su])
 fi
 
+dnl Check for sudo
+AC_PATH_PROG(path_sudo, &quot;sudo&quot;, &quot;no&quot;)
+if test &quot;$path_sudo&quot; = &quot;no&quot;; then
+    AC_MSG_WARN(sudo was not found)
+else
+    AC_DEFINE_UNQUOTED(__PATH_SUDO, &quot;$path_sudo&quot;, [path to sudo])
+fi
+
 dnl Check for POSIX.1b scheduling
 AC_MSG_CHECKING([POSIX.1b scheduling])
 AC_TRY_LINK([
--- branches/KDE/3.5/kdelibs/kdesu/process.cpp #570634:570635
@@ -48,6 +48,7 @@
 #include &lt;qcstring.h&gt;
 #include &lt;qfile.h&gt;
 
+#include &lt;kconfig.h&gt;
 #include &lt;kdebug.h&gt;
 #include &lt;kstandarddirs.h&gt;
 
@@ -73,7 +74,15 @@
 */
 bool PtyProcess::checkPid(pid_t pid)
 {
+	KConfig* config = KGlobal::config();
+	config-&gt;setGroup(&quot;super-user-command&quot;);
+	QString superUserCommand = config-&gt;readEntry(&quot;super-user-command&quot;, &quot;sudo&quot;);
+	//sudo does not accept signals from user so we except it
+	if (superUserCommand == &quot;sudo&quot;) {
+		return true;
+	} else {
 	return kill(pid,0) == 0;
+	}
 }
 
 /*
--- branches/KDE/3.5/kdelibs/kdesu/su.cpp #570634:570635
@@ -5,6 +5,9 @@
 * This file is part of the KDE project, module kdesu.
 * Copyright (C) 1999,2000 Geert Jansen &lt;jansen@kde.org&gt;
 * 
+* Sudo support added by Jonathan Riddell &lt;jriddell@ ubuntu.com&gt;
+* Copyright (C) 2005 Canonical Ltd
+*
 * This is free software; you can use this library under the GNU Library 
 * General Public License, version 2. See the file &quot;COPYING.LIB&quot; for the 
 * exact licensing terms.
@@ -30,6 +33,7 @@
 #include &lt;qcstring.h&gt;
 #include &lt;qfile.h&gt;
 
+#include &lt;kconfig.h&gt;
 #include &lt;kdebug.h&gt;
 #include &lt;klocale.h&gt;
 #include &lt;kstandarddirs.h&gt;
@@ -42,11 +46,25 @@
 #define __PATH_SU &quot;false&quot;
 #endif
 
+#ifndef __PATH_SUDO
+#define __PATH_SUDO &quot;false&quot;
+#endif
 
+//change to sudo or su according to your preferences
+#define DEFAULT_SUPER_USER_COMMAND &quot;sudo&quot;
+
 SuProcess::SuProcess(const QCString &amp;user, const QCString &amp;command)
 {
     m_User = user;
     m_Command = command;
+
+    KConfig* config = KGlobal::config();
+    config-&gt;setGroup(&quot;super-user-command&quot;);
+    superUserCommand = config-&gt;readEntry(&quot;super-user-command&quot;, DEFAULT_SUPER_USER_COMMAND);
+    if ( superUserCommand != &quot;sudo&quot; &amp;&amp; superUserCommand != &quot;su&quot; ) {
+	kdWarning() &lt;&lt; &quot;unknown super user command&quot; &lt;&lt; endl;
+	superUserCommand = &quot;su&quot;;
+    }
 }
 
 
@@ -74,6 +92,9 @@
         setTerminal(true);
 
     QCStringList args;
+    if (superUserCommand == &quot;sudo&quot;) {
+        args += &quot;-u&quot;;
+    }
 
 #ifdef Q_OS_DARWIN
     args += &quot;-c&quot;;
@@ -85,16 +106,27 @@
     else
         args += m_User;
     
-    args += &quot;-c&quot;;
+    if (superUserCommand == &quot;su&quot;) {
+        args += &quot;-c&quot;;
+    }
     args += QCString(__KDE_BINDIR) + &quot;/kdesu_stub&quot;;
 #ifndef Q_OS_DARWIN
     args += &quot;-&quot;;
 #endif
 
-    QCString command = __PATH_SU;
-    if (::access(__PATH_SU, X_OK) != 0)
+    ///    QCString command = __PATH_SU;
+    ///    if (::access(__PATH_SU, X_OK) != 0)
+    QCString command;
+    if (superUserCommand == &quot;sudo&quot;) {
+        command = __PATH_SUDO;
+    } else {
+        command = __PATH_SU;
+    }
+ 
+    if (::access(command, X_OK) != 0)
     {
-        command = QFile::encodeName(KGlobal::dirs()-&gt;findExe(&quot;su&quot;));
+      ///        command = QFile::encodeName(KGlobal::dirs()-&gt;findExe(&quot;su&quot;));
+        command = QFile::encodeName( KGlobal::dirs()-&gt;findExe(superUserCommand.ascii()) );
         if (command.isEmpty())
             return check ? SuNotFound : -1;
     }
@@ -119,10 +151,20 @@
     {
         if (ret == killme)
         {
-            if (kill(m_Pid, SIGKILL) &lt; 0)
-            {
-                ret=error;
-            }
+	  ///            if (kill(m_Pid, SIGKILL) &lt; 0)
+	  ///            {
+	  ///                ret=error;
+	  ///            }
+            if ( superUserCommand == &quot;sudo&quot; ) {
+ 	        // sudo can not be killed, just return
+ 	        return ret;
+ 	    }
+ 	    if (kill(m_Pid, SIGKILL) &lt; 0) {
+ 	        kdDebug() &lt;&lt; k_funcinfo &lt;&lt; &quot;kill &lt; 0&quot; &lt;&lt; endl;
+ 		//FIXME SIGKILL doesn&apos;t work for sudo,
+ 		//why is this different from su?
+ 		ret=error;
+ 	    }
             else
             {
                 int iret = waitForChild();
@@ -144,7 +186,9 @@
     if (ret == notauthorized)
     {
         kill(m_Pid, SIGKILL);
-        waitForChild();
+        if (superUserCommand != &quot;sudo&quot;) {
+            waitForChild();
+        }
         return SuIncorrectPassword;
     }
 
@@ -277,6 +321,10 @@
                 {
                     unreadLine(line);
                     return ok;
+ 	        } else if (superUserCommand == &quot;sudo&quot;) {
+ 	            // sudo gives a &quot;sorry&quot; line so reaches here
+ 	            // with the wrong password
+ 	            return notauthorized;
                 }
                 break;
             //////////////////////////////////////////////////////////////////////////
--- branches/KDE/3.5/kdelibs/kdesu/su.h #570634:570635
@@ -57,6 +57,7 @@
 private:
     class SuProcessPrivate;
     SuProcessPrivate *d;
+    QString superUserCommand;
 };
 
 #endif
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474212</commentid>
    <comment_count>20</comment_count>
    <who name="Andrew Ash">ash211</who>
    <bug_when>2006-10-02 07:05:16 +0000</bug_when>
    <thetext>This bug has been marked resolved/fixed.  Does that mean jriddell&apos;s patch is in 3.5.4 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474230</commentid>
    <comment_count>21</comment_count>
    <who name="Mathias Homann">Mathias.Homann</who>
    <bug_when>2006-10-02 09:37:54 +0000</bug_when>
    <thetext>by all experiences that i&apos;ve made so far, being marked as fixed in here has NOTHING to do with being in any released version. by all means, this fix could be in kde 4.1. Anyways, from what I see with 3.5.4 on my box, it&apos;s not in it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474237</commentid>
    <comment_count>22</comment_count>
    <who name="Philip Rodrigues">phil</who>
    <bug_when>2006-10-02 10:09:53 +0000</bug_when>
    <thetext>&quot;FIXED&quot; on bugs.kde.org means &apos;fixed in SVN&apos; and therefore the fix will be in the next released version. At the moment, this mean 3.5.5. For a few bugs (especially wishlists), the fix only goes into &quot;trunk&quot;, which is the code that will become KDE 4. This only happens if there&apos;s some reason the fix can&apos;t be made in 3.5 (like binary compatibility, fix needs architectural changes, etc)

Hope this explanation helps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>476178</commentid>
    <comment_count>23</comment_count>
    <who name="Mathias Homann">Mathias.Homann</who>
    <bug_when>2006-10-11 22:11:21 +0000</bug_when>
    <thetext>from the changelog for kde 3.5.5 it looks like kdesu uses sudo now (or CAN use sudo).

Now, on my laptop i&apos;m in the wheel group, and sudo is configured not to ask passwords of wheel members.

If i start anything that needs to run as root, kdesu still wants the root password...

where/how do i actually tell kdesu to use sudo?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>476222</commentid>
    <comment_count>24</comment_count>
    <who name="Lloeki">lloeki</who>
    <bug_when>2006-10-12 08:12:43 +0000</bug_when>
    <thetext>activate it at compile time with a kdesu configure switch --with-sudo-kdesu-backend
or create a kdesurc file, see mine below:
cd /usr/kde/3.5/share/config/
# cat kdesurc
[super-user-command]
super-user-command=sudo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>476239</commentid>
    <comment_count>25</comment_count>
    <who name="Mathias Homann">Mathias.Homann</who>
    <bug_when>2006-10-12 09:35:34 +0000</bug_when>
    <thetext>thanks. will try with the kdesurc. does that work for a user config file as well?

btw, it would have been better if one wouldn&apos;t have to file a bug to get crucial information like that.
Even much better would be a kconfig module...
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>476256</commentid>
    <comment_count>26</comment_count>
    <who name="Mathias Homann">Mathias.Homann</who>
    <bug_when>2006-10-12 10:26:19 +0000</bug_when>
    <thetext>I created a ~/.kde/share/config/kdesurc as described in #24, and it works just fine... BUT:

I started four different apps that are all configured to run kdesu&apos;ed, and here&apos;s /var/log/messages:

Oct 12 10:22:07 mhomann-linux sudo:  mhomann : TTY=pts/3 ; PWD=/net/maximus/data/Fileserver/homes/mhomann ; USER=root ; COMMAND=/opt/kde3/bin/kdesu_stub -
Oct 12 10:22:07 mhomann-linux sudo:  mhomann : TTY=pts/4 ; PWD=/net/maximus/data/Fileserver/homes/mhomann ; USER=root ; COMMAND=/opt/kde3/bin/kdesu_stub -
Oct 12 10:22:26 mhomann-linux sudo:  mhomann : TTY=pts/3 ; PWD=/net/maximus/data/Fileserver/homes/mhomann ; USER=root ; COMMAND=/opt/kde3/bin/kdesu_stub -
Oct 12 10:22:26 mhomann-linux sudo:  mhomann : TTY=pts/4 ; PWD=/net/maximus/data/Fileserver/homes/mhomann ; USER=root ; COMMAND=/opt/kde3/bin/kdesu_stub -


It breaks security this way, since you can&apos;t limit sudo access to certain apps anymore when all that gets started by sudo is kdesu_stub with no additional parameters.

Also, it doesnt show up in the logs what the user did.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>476267</commentid>
    <comment_count>27</comment_count>
    <who name="Lloeki">lloeki</who>
    <bug_when>2006-10-12 11:38:24 +0000</bug_when>
    <thetext>I immediately noticed that running someting with kdesu in sudo mode yields same graphical results as running it in su mode. So I thought there must be something wrong with some env var. a quick test shows:

$ kdesu &apos;echo $HOME &gt; blah.txt&apos;
$ cat blah.txt
/root

when it should be /home/lloeki
there may be other variables that behave like su when they should behave like sudo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503409</commentid>
    <comment_count>28</comment_count>
    <who name="Thomas Ohms">kde-bug--</who>
    <bug_when>2007-01-23 12:21:56 +0000</bug_when>
    <thetext>I agree with Mathias Homann:
There should be a more secure way to use kdesu, sudo and kdesu_stub.
Is there a fix planned??</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503508</commentid>
    <comment_count>29</comment_count>
    <who name="Luke-Jr">luke-jr+kdebugs</who>
    <bug_when>2007-01-23 19:49:34 +0000</bug_when>
    <thetext>Sounds like the bug should be reopened. Using kdesu_stub is not using sudo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>519340</commentid>
    <comment_count>30</comment_count>
    <who name="Maciej Pilichowski">bluedzins</who>
    <bug_when>2007-04-07 19:12:26 +0000</bug_when>
    <thetext>KDE 3.5.6, this &quot;trick&quot; from #24 (thanks Lloeki)
&quot;
or create a kdesurc file, see mine below: 
 cd /usr/kde/3.5/share/config/ 
 # cat kdesurc 
 [super-user-command] 
 super-user-command=sudo 
&quot;
 
still does not work.

And what about this &quot;fixed&quot; status? Could someone please reopen this report, thanks in advance.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>523998</commentid>
    <comment_count>31</comment_count>
    <who name="Bram Schoenmakers">me</who>
    <bug_when>2007-05-04 14:21:38 +0000</bug_when>
    <thetext>Reopening by Maciej&apos;s request. Could someone verify please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>539827</commentid>
    <comment_count>32</comment_count>
    <who name="Alfredo">infos</who>
    <bug_when>2007-08-06 19:37:13 +0000</bug_when>
    <thetext>opensuse 10.2 / kde 3.5.5

kdesu only works when ALL ALL=(ALL) ALL is set in /etc/sudoers

The kdesurc trick does not work !</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>565823</commentid>
    <comment_count>33</comment_count>
    <who name="Kyle">g2g591</who>
    <bug_when>2007-12-23 14:31:04 +0000</bug_when>
    <thetext>in the meantime i suggest using kdesudo (available at http://www.kde-apps.org/content/show.php/KdeSudo?content=72106) as Kubuntu does (with correct envvars and such)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1040936</commentid>
    <comment_count>34</comment_count>
    <who name="Oswald Buddenhagen">ossi</who>
    <bug_when>2010-11-06 14:41:46 +0000</bug_when>
    <thetext>kde&apos;s current approach to privilege elevation is using policykit, so it&apos;s unlikely that effort is going to be put into improving kdesu&apos;s sudo support.
as noted in comment 33, kdesudo is available for those who need it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1041127</commentid>
    <comment_count>35</comment_count>
    <who name="Luke-Jr">luke-jr+kdebugs</who>
    <bug_when>2010-11-06 20:58:14 +0000</bug_when>
    <thetext>Since when is KDE a single-platform desktop? Comment #34 is like removing support for Phonon and just using ALSA everywhere. Or hard-coding KDE core components to use GNU extensions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1041160</commentid>
    <comment_count>36</comment_count>
    <who name="Mathias Homann">Mathias.Homann</who>
    <bug_when>2010-11-06 22:53:25 +0000</bug_when>
    <thetext>#35, repeatedly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1139229</commentid>
    <comment_count>37</comment_count>
    <who name="Borden">borden_c</who>
    <bug_when>2011-07-07 11:32:57 +0000</bug_when>
    <thetext>Forget single-platform desktop, what happens if you want to use a GTK program in KDE which needs elevated permissions (like Synaptic)?  Is KDE taking the Apple route where all software installed on your system has to be pre-approved and certified compatible before you&apos;re allowed to install it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1139269</commentid>
    <comment_count>38</comment_count>
    <who name="jos poortvliet">jospoortvliet</who>
    <bug_when>2011-07-07 15:17:05 +0000</bug_when>
    <thetext>@Borden: this is not a KDE question as &apos;KDE&apos; is not an OS, it is &apos;just people who write a bunch of software&apos;. The OS (linux, windows, mac) under KDE apps has to make decisions on those things. KDE provides a tool to start apps like Synaptic as root, however - kdesu. And synaptic can use policykit itself too, without even needing any KDE facilities.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1535841</commentid>
    <comment_count>39</comment_count>
    <who name="Borden">borden_c</who>
    <bug_when>2015-08-09 06:42:55 +0000</bug_when>
    <thetext>@jos, indeed, I have to keep reminding myself that KDE is volunteers who write code for the fun of it. Those wishing to share in the experience have to abide by the programmers&apos; decisions and have no real say in the KDE process. This is demonstrated by this bug being summarily closed &apos;wontfix&apos; despite the legitimate need for it to be addressed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1546661</commentid>
    <comment_count>40</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2015-09-27 18:57:29 +0000</bug_when>
    <thetext>If with today&apos;s &quot;su&quot; infrastructure of KDE software there is still something missing, please report it as a new ticket. It does not make sense to add a comment to a bug that was closed five years ago.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>10487</attachid>
            <date>2005-04-02 22:36:43 +0000</date>
            <delta_ts>2005-04-02 22:36:43 +0000</delta_ts>
            <desc>kdesu patch to kdelibs for sudo support</desc>
            <filename>kdesu-sudo.diff</filename>
            <type>text/plain</type>
            <size>9308</size>
            <attacher name="Jonathan Riddell">jr</attacher>
            
              <data encoding="base64">SW5kZXg6IGNvbmZpZ3VyZS5pbi5pbgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvaG9tZS9rZGUva2Rl
bGlicy9rZGVzdS9jb25maWd1cmUuaW4uaW4sdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTEKZGlm
ZiAtdSAtcCAtcjEuMTEgY29uZmlndXJlLmluLmluCi0tLSBjb25maWd1cmUuaW4uaW4JMTkgTm92
IDIwMDMgMTg6MTg6MzQgLTAwMDAJMS4xMQorKysgY29uZml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1bnNpZ25lZCBpLCBqOwpAQCAtMTgwLDEyICsyMTcsMTIgQEAgaW50
IFN1UHJvY2Vzczo6Q29udmVyc2VTVShjb25zdCBjaGFyICpwYQogICAgIFFDU3RyaW5nIGxpbmU7
CiAgICAgd2hpbGUgKHRydWUpCiAgICAgewotICAgICAgICBsaW5lID0gcmVhZExpbmUoKTsgCisg
ICAgICAgIGxpbmUgPSByZWFkTGluZSgpOwogICAgICAgICBpZiAobGluZS5pc051bGwoKSkKICAg
ICAgICAgICAgIHJldHVybiAoIHN0YXRlID09IEhhbmRsZVN0dWIgPyBub3RhdXRob3JpemVkIDog
ZXJyb3IpOwogICAgICAgICBrZERlYnVnKDkwMCkgPDwga19saW5laW5mbyA8PCAiUmVhZCBsaW5l
IDwiIDw8IGxpbmUgPDwgIj4iIDw8IGVuZGw7CiAKLSAgICAgICAgc3dpdGNoIChzdGF0ZSkgCisg
ICAgICAgIHN3aXRjaCAoc3RhdGUpCiAgICAgICAgIHsKICAgICAgICAgICAgIC8vLy8vLy8vLy8v
Ly8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8v
Ly8vLy8vCiAgICAgICAgICAgICBjYXNlIFdhaXRGb3JQcm9tcHQ6CkBAIC0xOTYsMjYgKzIzMywy
NiBAQCBpbnQgU3VQcm9jZXNzOjpDb252ZXJzZVNVKGNvbnN0IGNoYXIgKnBhCiAgICAgICAgICAg
ICAgICAgICAgIHVucmVhZExpbmUobGluZSk7CiAgICAgICAgICAgICAgICAgICAgIHJldHVybiBv
azsKICAgICAgICAgICAgICAgICB9Ci0gICAgCisKICAgICAgICAgICAgICAgICB3aGlsZSh3YWl0
TVMobV9GZCwxMDApPjApCiAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgICAv
LyBUaGVyZSBpcyBtb3JlIG91dHB1dCBhdmFpbGFibGUsIHNvIHRoZSBwcmV2aW91cyBsaW5lCiAg
ICAgICAgICAgICAgICAgICAgIC8vIGNvdWxkbid0IGhhdmUgYmVlbiBhIHBhc3N3b3JkIHByb21w
dCAodGhlIGRlZmluaXRpb24KLSAgICAgICAgICAgICAgICAgICAgLy8gb2YgcHJvbXB0IGJlaW5n
IHRoYXQgIHRoZXJlJ3MgYSBsaW5lIG9mIG91dHB1dCBmb2xsb3dlZCAKKyAgICAgICAgICAgICAg
ICAgICAgLy8gb2YgcHJvbXB0IGJlaW5nIHRoYXQgIHRoZXJlJ3MgYSBsaW5lIG9mIG91dHB1dCBm
b2xsb3dlZAogICAgICAgICAgICAgICAgICAgICAvLyBieSBhIGNvbG9uLCBhbmQgdGhlbiB0aGUg
cHJvY2VzcyB3YWl0cykuCiAgICAgICAgICAgICAgICAgICAgIFFDU3RyaW5nIG1vcmUgPSByZWFk
TGluZSgpOwogICAgICAgICAgICAgICAgICAgICBpZiAobW9yZS5pc0VtcHR5KCkpCiAgICAgICAg
ICAgICAgICAgICAgICAgICBicmVhazsKLSAgICAKKwogICAgICAgICAgICAgICAgICAgICBsaW5l
ID0gbW9yZTsKICAgICAgICAgICAgICAgICAgICAga2REZWJ1Zyg5MDApIDw8IGtfbGluZWluZm8g
PDwgIlJlYWQgbGluZSA8IiA8PCBtb3JlIDw8ICI+IiA8PCBlbmRsOwogICAgICAgICAgICAgICAg
IH0KLSAgICAKKwogICAgICAgICAgICAgICAgIC8vIE1hdGNoICJQYXNzd29yZDogIiB3aXRoIHRo
ZSByZWdleCBeW146XSs6W1x3XSokLgogICAgICAgICAgICAgICAgIGNvbnN0IHVpbnQgbGVuID0g
bGluZS5sZW5ndGgoKTsKLSAgICAgICAgICAgICAgICBmb3IgKGk9MCxqPTAsY29sb249MDsgaTxs
ZW47IGkrKykgCisgICAgICAgICAgICAgICAgZm9yIChpPTAsaj0wLGNvbG9uPTA7IGk8bGVuOyBp
KyspCiAgICAgICAgICAgICAgICAgewotICAgICAgICAgICAgICAgICAgICBpZiAobGluZVtpXSA9
PSAnOicpIAorICAgICAgICAgICAgICAgICAgICBpZiAobGluZVtpXSA9PSAnOicpCiAgICAgICAg
ICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAgICAgIGogPSBpOyBjb2xvbisrOwog
ICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7CkBAIC0yMjMsNyArMjYwLDcgQEAgaW50
IFN1UHJvY2Vzczo6Q29udmVyc2VTVShjb25zdCBjaGFyICpwYQogICAgICAgICAgICAgICAgICAg
ICBpZiAoIWlzc3BhY2UobGluZVtpXSkpCiAgICAgICAgICAgICAgICAgICAgICAgICBqKys7CiAg
ICAgICAgICAgICAgICAgfQotICAgICAgICAgICAgICAgIGlmICgoY29sb24gPT0gMSkgJiYgKGxp
bmVbal0gPT0gJzonKSkgCisgICAgICAgICAgICAgICAgaWYgKChjb2xvbiA9PSAxKSAmJiAobGlu
ZVtqXSA9PSAnOicpKQogICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAgaWYg
KHBhc3N3b3JkID09IDBMKQogICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGtpbGxtZTsK
QEAgLTI0OSw3ICsyODYsNyBAQCBpbnQgU3VQcm9jZXNzOjpDb252ZXJzZVNVKGNvbnN0IGNoYXIg
KnBhCiAgICAgICAgICAgICBjYXNlIENoZWNrU3RhcjoKICAgICAgICAgICAgIHsKICAgICAgICAg
ICAgICAgICBRQ1N0cmluZyBzID0gbGluZS5zdHJpcFdoaXRlU3BhY2UoKTsKLSAgICAgICAgICAg
ICAgICBpZiAocy5pc0VtcHR5KCkpIAorICAgICAgICAgICAgICAgIGlmIChzLmlzRW1wdHkoKSkK
ICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgIHN0YXRlPUhhbmRsZVN0dWI7
CiAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwpAQCAtMjcwLDYgKzMwNywxMCBAQCBpbnQgU3VQ
cm9jZXNzOjpDb252ZXJzZVNVKGNvbnN0IGNoYXIgKnBhCiAgICAgICAgICAgICAgICAgewogICAg
ICAgICAgICAgICAgICAgICB1bnJlYWRMaW5lKGxpbmUpOwogICAgICAgICAgICAgICAgICAgICBy
ZXR1cm4gb2s7CisgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChzdXBlclVzZXJDb21tYW5kID09
ICJzdWRvIikgeworIAkJICAgIC8vIHN1ZG8gZ2l2ZXMgYSAic29ycnkiIGxpbmUgc28gcmVhY2hl
cyBoZXJlCisgCQkgICAgLy8gd2l0aCB0aGUgd3JvbmcgcGFzc3dvcmQKKyAJCSAgICByZXR1cm4g
bm90YXV0aG9yaXplZDsKICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgYnJlYWs7
CiAgICAgICAgICAgICAvLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8v
Ly8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLwpJbmRleDogc3UuaAo9PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJD
UyBmaWxlOiAvaG9tZS9rZGUva2RlbGlicy9rZGVzdS9zdS5oLHYKcmV0cmlldmluZyByZXZpc2lv
biAxLjE3CmRpZmYgLXUgLXAgLXIxLjE3IHN1LmgKLS0tIHN1LmgJMTUgTm92IDIwMDQgMjI6NDM6
MjMgLTAwMDAJMS4xNworKysgc3UuaAkyIEFwciAyMDA1IDIwOjMxOjI0IC0wMDAwCkBAIC01Nyw2
ICs1Nyw3IEBAIHByb3RlY3RlZDoKIHByaXZhdGU6CiAgICAgY2xhc3MgU3VQcm9jZXNzUHJpdmF0
ZTsKICAgICBTdVByb2Nlc3NQcml2YXRlICpkOworICAgIFFTdHJpbmcgc3VwZXJVc2VyQ29tbWFu
ZDsKIH07CiAKICNlbmRpZgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>10488</attachid>
            <date>2005-04-02 22:37:51 +0000</date>
            <delta_ts>2005-04-02 22:37:51 +0000</delta_ts>
            <desc>kdesu patch to kdelibs for sudo support</desc>
            <filename>kdesu-sudo-kdebase.diff</filename>
            <type>text/plain</type>
            <size>2081</size>
            <attacher name="Jonathan Riddell">jr</attacher>
            
              <data encoding="base64">PyBzdWRvLmRpZmYKSW5kZXg6IHN1ZGxnLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvaG9tZS9r
ZGUva2RlYmFzZS9rZGVzdS9rZGVzdS9zdWRsZy5jcHAsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEu
MTUKZGlmZiAtdSAtcCAtcjEuMTUgc3VkbGcuY3BwCi0tLSBzdWRsZy5jcHAJMTUgSmFuIDIwMDUg
MjE6Mzk6MTQgLTAwMDAJMS4xNQorKysgc3VkbGcuY3BwCTIgQXByIDIwMDUgMjA6MzE6NTYgLTAw
MDAKQEAgLTUsMjggKzUsNDUgQEAKICAqLwogCiAjaW5jbHVkZSA8cXN0cmluZy5oPgorI2luY2x1
ZGUgPGtjb25maWcuaD4KKyNpbmNsdWRlIDxrZGVidWcuaD4KICNpbmNsdWRlIDxrbG9jYWxlLmg+
CiAjaW5jbHVkZSA8a21lc3NhZ2Vib3guaD4KIAogI2luY2x1ZGUgPGtkZXN1L3N1Lmg+CiAjaW5j
bHVkZSAic3VkbGcuaCIKIAorLy9jaGFuZ2UgdG8gc3VkbyBvciBzdSBhY2NvcmRpbmcgdG8geW91
ciBwcmVmZXJlbmNlcworI2RlZmluZSBERUZBVUxUX1NVUEVSX1VTRVJfQ09NTUFORCAic3VkbyIK
IAogS0RFc3VEaWFsb2c6OktERXN1RGlhbG9nKFFDU3RyaW5nIHVzZXIsIFFDU3RyaW5nIGF1dGhf
dXNlciwgYm9vbCBlbmFibGVLZWVwLCBjb25zdCBRU3RyaW5nJiBpY29uKQ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5k
ID09ICJzdWRvIikgeworCSAgICBwcm9tcHQgPSBpMThuKCJQbGVhc2UgZW50ZXIgeW91ciBwYXNz
d29yZC4iICk7CisgICAgfSBlbHNlIHsKKyAgICAgICAgaWYgKG1fVXNlciA9PSAicm9vdCIpIHsK
KwkgICAgcHJvbXB0ID0gaTE4bigiVGhlIGFjdGlvbiB5b3UgcmVxdWVzdGVkIG5lZWRzIHJvb3Qg
cHJpdmlsZWdlcy4gIgorCSAgICAiUGxlYXNlIGVudGVyIHJvb3QncyBwYXNzd29yZCBiZWxvdyBv
ciBjbGljayAiCisJICAgICJJZ25vcmUgdG8gY29udGludWUgd2l0aCB5b3VyIGN1cnJlbnQgcHJp
dmlsZWdlcy4iKTsKKyAgICAgICAgfSBlbHNlIHsKKwkgICAgcHJvbXB0ID0gaTE4bigiVGhlIGFj
dGlvbiB5b3UgcmVxdWVzdGVkIG5lZWRzIGFkZGl0aW9uYWwgcHJpdmlsZWdlcy4gIgogCQkiUGxl
YXNlIGVudGVyIHRoZSBwYXNzd29yZCBmb3IgXCIlMVwiIGJlbG93IG9yIGNsaWNrICIKIAkJIkln
bm9yZSB0byBjb250aW51ZSB3aXRoIHlvdXIgY3VycmVudCBwcml2aWxlZ2VzLiIpLmFyZyhtX1Vz
ZXIpOworCX0KKyAgICB9CiAgICAgc2V0UHJvbXB0KHByb21wdCk7CiAKICAgICBzZXRCdXR0b25U
ZXh0KFVzZXIxLCBpMThuKCImSWdub3JlIikpOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>