<?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>78948</bug_id>
          
          <creation_ts>2004-04-03 01:42:45 +0000</creation_ts>
          <short_desc>kdesu tell wrong password</short_desc>
          <delta_ts>2008-06-18 23:00:59 +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>1.0</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Giovanni Venturi">giovanni</reporter>
          <assigned_to name="kdesu bugs tracker">kdesu-bugs-null</assigned_to>
          <cc>casteyde.christian</cc>
    
    <cc>federico.zenith</cc>
    
    <cc>hubn3rd</cc>
    
    <cc>wiz</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>221093</commentid>
    <comment_count>0</comment_count>
    <who name="Giovanni Venturi">giovanni</who>
    <bug_when>2004-04-03 01:42:45 +0000</bug_when>
    <thetext>Version:           2.0 (using KDE 3.2.1, compiled sources)
Compiler:          gcc version 3.3.3
OS:          Linux (i686) release 2.6.5-rc3

If I use Controll Center to set some option like administrator it tells me: &quot;Wrong password&quot; but I typed it correctly.
I take a console output to help you with this bug:

kdesu -c &quot;kcmshell kcmfontinst --lang it&quot;
kdesu (kdelibs): [process.cpp:263] Running `/bin/su&apos;
kdesu (kdelibs): [su.cpp:180] Read line &lt;Password: &gt;
kdesu (kdelibs): [process.cpp:263] Running `/bin/su&apos;
kdesu (kdelibs): [su.cpp:180] Read line &lt;Password: &gt;
kdesu (kdelibs): [process.cpp:350] Child pid 1099
kdesu (kdelibs): [su.cpp:180] Read line &lt;&gt;
kdesu (kdelibs): [su.cpp:180] Read line &lt;-c: -c: No such file or directory&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>222694</commentid>
    <comment_count>1</comment_count>
    <who name="David Pretty">david.pretty</who>
    <bug_when>2004-04-10 13:53:24 +0000</bug_when>
    <thetext>I&apos;m having the same problem, 
	using compiled sources (CVS, kdelibs from 4 April 2004) on gentoo
	gcc 3.3.3
	Linux 2.6.3

though i can&apos;t see the console output you mention</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223361</commentid>
    <comment_count>2</comment_count>
    <who name="Giovanni Venturi">giovanni</who>
    <bug_when>2004-04-13 13:00:48 +0000</bug_when>
    <thetext>I fixed this bug with the attached patch.
Pratically the line 81 in kdelibs/kdesu/su.cpp in KDE_3_2_BRANCH and into HEAD 
(if into HEAD it&apos;s yet present I don&apos;t checked if it is so because I did not 
compiled HEAD but I think it&apos;s so because the file is the same till 5 days 
ago) have to be deleted. If you tell me ok I can commit into BRANCH and HEAD.


Created an attachment (id=5618)
bugfix-78948.diff</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223382</commentid>
    <comment_count>3</comment_count>
    <who name="Waldo Bastian">bastian</who>
    <bug_when>2004-04-13 13:32:52 +0000</bug_when>
    <thetext>Patch is not correct, we want to get a login shell.

Does it help if you change:
    args += &quot;-&quot;;
    args += &quot;-c&quot;;
    args += QCString(__KDE_BINDIR) + &quot;/kdesu_stub&quot;;
to
    args += &quot;-c&quot;;
    args += QCString(__KDE_BINDIR) + &quot;/kdesu_stub&quot;;
    args += &quot;-&quot;;
?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223400</commentid>
    <comment_count>4</comment_count>
    <who name="Giovanni Venturi">giovanni</who>
    <bug_when>2004-04-13 15:13:24 +0000</bug_when>
    <thetext>&gt; Patch is not correct, we want to get a login shell.
&gt;
Well, I didn&apos;t understand how the things work, I just see the difference with 
a KDE 3.2.0 that it works. I tryed to understand the code, but in few time 
it&apos;s difficult.
&gt; Does it help if you change:
&gt;     args += &quot;-&quot;;
&gt;     args += &quot;-c&quot;;
&gt;     args += QCString(__KDE_BINDIR) + &quot;/kdesu_stub&quot;;
&gt; to
&gt;     args += &quot;-c&quot;;
&gt;     args += QCString(__KDE_BINDIR) + &quot;/kdesu_stub&quot;;
&gt;     args += &quot;-&quot;;
&gt; ?
Yes. I tryed your suggest and it works. We can close this bug applying your 
chainge to KDE_3_2_BRANCH  and to the HEAD into kdelibs/kdesu/su.cpp.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223401</commentid>
    <comment_count>5</comment_count>
    <who name="Giovanni Venturi">giovanni</who>
    <bug_when>2004-04-13 15:15:40 +0000</bug_when>
    <thetext>&gt; Patch is not correct, we want to get a login shell.
&gt;
Well, I didn&apos;t understand how the things work, I just see the difference with 
a KDE 3.2.0 that it works. I tryed to understand the code, but in few time 
it&apos;s difficult.
&gt; Does it help if you change:
&gt;     args += &quot;-&quot;;
&gt;     args += &quot;-c&quot;;
&gt;     args += QCString(__KDE_BINDIR) + &quot;/kdesu_stub&quot;;
&gt; to
&gt;     args += &quot;-c&quot;;
&gt;     args += QCString(__KDE_BINDIR) + &quot;/kdesu_stub&quot;;
&gt;     args += &quot;-&quot;;
&gt; ?
Yes. I tryed your suggest and it works. We can close this bug applying your 
chainge to KDE_3_2_BRANCH  and to the HEAD into kdelibs/kdesu/su.cpp.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223404</commentid>
    <comment_count>6</comment_count>
    <who name="Waldo Bastian">bastian</who>
    <bug_when>2004-04-13 15:34:36 +0000</bug_when>
    <thetext>CVS commit by waba: 

put &quot;-&quot; after &quot;-c &lt;command&gt;&quot; (BR78948)
CCMAIL: 78948-done@bugs.kde.org


  M +2 -2      su.cpp   1.35


--- kdelibs/kdesu/su.cpp  #1.34:1.35
@@ -79,7 +79,7 @@ int SuProcess::exec(const char *password
     else
         args += m_User;
-    args += &quot;-&quot;;
     args += &quot;-c&quot;;
     args += QCString(__KDE_BINDIR) + &quot;/kdesu_stub&quot;;
+    args += &quot;-&quot;;
 
     QCString command = __PATH_SU;


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>225482</commentid>
    <comment_count>7</comment_count>
    <who name="Stephan Binner">binner</who>
    <bug_when>2004-04-21 11:15:18 +0000</bug_when>
    <thetext>*** Bug 80049 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>225484</commentid>
    <comment_count>8</comment_count>
    <who name="Stephan Binner">binner</who>
    <bug_when>2004-04-21 11:16:06 +0000</bug_when>
    <thetext>*** Bug 80034 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>225490</commentid>
    <comment_count>9</comment_count>
    <who name="Stephan Binner">binner</who>
    <bug_when>2004-04-21 11:31:31 +0000</bug_when>
    <thetext>*** Bug 80055 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>226274</commentid>
    <comment_count>10</comment_count>
    <who name="Oliver Gantz">ogantz01</who>
    <bug_when>2004-04-24 17:06:56 +0000</bug_when>
    <thetext>The bug made it into KDE 3.2.2. The fix mentioned above solves the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233768</commentid>
    <comment_count>11</comment_count>
    <who name="Waldo Bastian">bastian</who>
    <bug_when>2004-05-17 21:50:02 +0000</bug_when>
    <thetext>*** Bug 81757 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474975</commentid>
    <comment_count>12</comment_count>
    <who name="Heiko Munz">heikomunz</who>
    <bug_when>2006-10-05 23:38:12 +0000</bug_when>
    <thetext>I have the same problem with kdesu in KDE 3.5.5.
Debian SID
Kernel 2.6.17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>477321</commentid>
    <comment_count>13</comment_count>
    <who name="Irene Korff">korff</who>
    <bug_when>2006-10-16 16:19:12 +0000</bug_when>
    <thetext>Same here on Debian Etch. KDE 3.5.5, kernel 2.6.16-i686
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>478674</commentid>
    <comment_count>14</comment_count>
    <who name="Philipp Sternberg">philipp.sternberg</who>
    <bug_when>2006-10-21 09:49:12 +0000</bug_when>
    <thetext>Yep, please reopen for kde 3.5.5 (Debian Etch, Kernel 2.6.17)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>478897</commentid>
    <comment_count>15</comment_count>
    <who name="JmR">ypihoh</who>
    <bug_when>2006-10-22 09:03:27 +0000</bug_when>
    <thetext>One more here..
Debian Etch, kernel 2.6.17-2-amd64, KDE 3.5.5
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482241</commentid>
    <comment_count>16</comment_count>
    <who name="Francis">f_marass</who>
    <bug_when>2006-11-01 22:08:28 +0000</bug_when>
    <thetext>Another one:
Debian Etch, kernel 2.6.18-1, KDE 3.5.5
kdesu does not accept root password (&quot;wrong password&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>495394</commentid>
    <comment_count>17</comment_count>
    <who name="Felix Mueller">MAHZZBYWBTWT</who>
    <bug_when>2006-12-21 23:03:06 +0000</bug_when>
    <thetext>I can confirm on suse 10.2 w/ kde 3.5.5 release 45 on kernel 2.6.18.2-34.
kdesu does not accept root password (&quot;wrong password&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497202</commentid>
    <comment_count>18</comment_count>
    <who name="Raga Prong">ragaprong</who>
    <bug_when>2006-12-31 15:22:37 +0000</bug_when>
    <thetext>Same problem here on some Debian systems/KDE 3.5. I think that 
the problem is that kdesu fails to interpret the reason for failure
which seems to be that root is not allow to open X windows any
more. If I open a Konsole, type host +, su - and then try to start 
any KDE application, I get also some error message for invalid display.

If it is not possible to evaluate the error message from the called application, then I suggest to just change the error message string
into: 

Error while trying to run $application with root privileges. 
Maybe you mistyped root password, or root has no access to current display.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>497215</commentid>
    <comment_count>19</comment_count>
    <who name="Felix Mueller">MAHZZBYWBTWT</who>
    <bug_when>2006-12-31 15:38:49 +0000</bug_when>
    <thetext>The comment I posted above is not valid, as I could trace back the error to a bug in the sudo - yast module. Using visudo manually fixes the prob for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498028</commentid>
    <comment_count>20</comment_count>
    <who name="Travis Evans">travisgevans</who>
    <bug_when>2007-01-04 07:32:37 +0000</bug_when>
    <thetext>Same issue here on SUSE 10.2 with KDE 3.5.5... but in my case, the problem is that the message is wrong.  It prompts me for the root/administrator password, when what it really wants is my *user* password.  When I enter my *user* password, it works.  (I had added myself to the sudoers file and allowed myself to use sudo to run all commands as root by entering my user password).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>498029</commentid>
    <comment_count>21</comment_count>
    <who name="Travis Evans">travisgevans</who>
    <bug_when>2007-01-04 07:34:38 +0000</bug_when>
    <thetext>Argh... I should&apos;ve read Comment 19 before posting...</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5618</attachid>
            <date>2004-04-13 13:00:48 +0000</date>
            <delta_ts>2004-04-13 13:00:48 +0000</delta_ts>
            <desc>bugfix-78948.diff</desc>
            <filename>bugfix-78948.diff</filename>
            <type>text/x-diff</type>
            <size>351</size>
            <attacher name="Giovanni Venturi">giovanni</attacher>
            
              <data encoding="base64">LS0tIENWU19zdHVmZi9LREUvQlJBTkNIL2tkZWxpYnMva2Rlc3Uvc3UuY3BwCTIwMDQtMDMtMjkg
MDE6NDg6MDkuMDAwMDAwMDAwICswMjAwCisrKyBjb21waWxlZC9rZGVsaWJzL2tkZXN1L3N1LmNw
cAkyMDA0LTA0LTEyIDIwOjEyOjE1LjAwMDAwMDAwMCArMDIwMApAQCAtNzgsNyArNzgsNyBAQCBp
bnQgU3VQcm9jZXNzOjpleGVjKGNvbnN0IGNoYXIgKnBhc3N3b3JkCiAJYXJncyArPSAicm9vdCI7
CiAgICAgZWxzZQogCWFyZ3MgKz0gbV9Vc2VyOwotICAgIGFyZ3MgKz0gIi0iOworCiAgICAgYXJn
cyArPSAiLWMiOwogICAgIGFyZ3MgKz0gUUNTdHJpbmcoX19LREVfQklORElSKSArICIva2Rlc3Vf
c3R1YiI7CiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>