Bug 154355 - kdesu gives a wrong password error
Summary: kdesu gives a wrong password error
Status: RESOLVED WORKSFORME
Alias: None
Product: kdesu
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords:
: 154392 154450 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-20 00:27 UTC by David Roitman
Modified: 2008-06-18 23:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Roitman 2007-12-20 00:27:59 UTC
Version:            (using KDE KDE 3.97.0)
Installed from:    Ubuntu Packages
OS:                Linux

Hi, 

When using gksu to run anything in kde4, a wrong password error is given even though the right password was entered.
For example, trying to run synaptic.

Using Ubuntu 7.10 with both gnome and KDE4 RC2 installed.

Thanks.
David Roitman.
Comment 1 Pino Toscano 2007-12-20 00:37:25 UTC
You are running a GTK+ application (synaptic) with gksu...
I don't see how KDE could "interfere" on that.
Comment 2 David Roitman 2007-12-20 00:48:00 UTC
Upon checking again, I really was using kdesu.
running kdesu from the konsole works, but if I run synaptic from the main menu (the "start" menu) I get the wrong password error.
so if I type "kdesu synaptic" in the terminal, it will work
but if I choose it from the menu it will not.

Sorry for the confusion.
gksu does work.

David I. Roitman.
Comment 3 Pino Toscano 2007-12-20 01:04:08 UTC
Ah, make sense then.
Comment 4 David Roitman 2007-12-20 01:19:35 UTC
Why does it make sense?
Should it not work? :-)
Comment 5 Pino Toscano 2007-12-20 01:21:51 UTC
I meant that it does make sense you are reporting us this problem (as opposed to be a gksu problem, which we don't develop).

Can you please paste the command line output you get?
Comment 6 David Roitman 2007-12-20 01:25:54 UTC
The title should actually read:
Running synaptic from the KDE4 menu gives a wrong password error.
I tried looking for a way to edit it myself but didn't find any.

Running "kdesu synaptic" in the konsole gives no errors and works.
Running synaptic from the menu shows only the wrong password error.

Thanks.
David.
Comment 7 Pramod Dematagoda 2007-12-20 04:03:07 UTC
I would like to add to this bug report as well. Whenever I try to do the same, kdesu keeps telling me that the password is incorrect even though I know it is correct.
Comment 8 Thomas Friedrichsmeier 2007-12-20 13:03:42 UTC
Since Ubuntu likes to replace kdesu with kdesudo, and in KDE 4 kdesu is not in the path by default, I'd like to rule out we're actually seeing a kdesudo problem, here.

Could you do the following: Start an app needing admin priviledges from the menu as described in the report. Do not enter a password, yet. In the terminal, identify the path of the called su-programm using
# ps axf | grep "su"
(or something like that)
Now try
# /the/path/you/got --version
on the results, and post, here.

Please also compare this to plain:
# kdesu --version

Thanks!
Comment 9 Thomas Friedrichsmeier 2007-12-20 23:15:16 UTC
*** Bug 154392 has been marked as a duplicate of this bug. ***
Comment 10 David Roitman 2007-12-21 04:29:09 UTC
The path is:
/usr/lib/kde4/lib/kde4/libexec/kdesu -u root -c /usr/sbin/synaptic


/usr/lib/kde4/lib/kde4/libexec/kdesu --version
Qt: 4.3.2
KDE: 3.97.00 (KDE 4.0 RC2)
KDE su: 1.0

kdesu --version
Qt: 3.3.7
KDE: 3.5.8
KDE su: 1.0
Comment 11 Thomas Friedrichsmeier 2007-12-21 13:19:49 UTC
Ok, this solves part of the mystery: It works from the konsole, as that still picks up the old (KDE 3) kdesu. But for the KDE 4 version of kdesu something is broken.

Now could you try running
# /usr/lib/kde4/lib/kde4/libexec/kdesu -u root -c echo "test"
in the console (this one should give the symptoms you report), and post the output of that?

Also, could you check, whether you can switch to root (on the console) using
# su
and
# sudo sh
?

I hope this information will finally allow us to get to the root of the problem. Thanks!
Comment 12 Pino Toscano 2007-12-22 13:33:17 UTC
*** Bug 154450 has been marked as a duplicate of this bug. ***
Comment 13 Kubuntiac 2008-01-05 10:49:55 UTC
I'm getting this error, too (Kubuntu Gutsy - KDE4.0-RC2 updated today).

/usr/lib/kde4/lib/kde4/libexec/kdesu -u root -c echo "test" brings up a dialogue asking for my password, but continues to fail when I put it in (IE "Incorrect Password").

SU also rejects my admin password

sudo sh seems to accept it (I go to some kind of command prompt that just displays #)

If I use sudo with any other command it seems to work fine.
Comment 14 Jaap Woldringh 2008-01-12 21:14:27 UTC
With the yesterday released "final" release of KDE4.0. I get the same problem: Synaptic from the menu doesn't accept my sudo password, while from the console I can start sudo synaptic giving my password, which is accepted.

I am using Ubuntu, and have installed (the core of) KDE4 alongside of it, just to have a look see :)

Comment 15 Kubuntiac 2008-01-21 13:06:36 UTC
Updates over the last week seem to have fixed this bug for me. It's working perfectly now here.
Comment 16 Thomas Friedrichsmeier 2008-01-21 13:31:36 UTC
Ok, this is most likely to be a problem with Ubuntu packages (on Ubuntu, kdesu needs to be set up to use sudo by default, instead of su).

Could some of the subscribers confirm this is fixed in recent Ubuntu packages as suggested in comment #15 ? Unless somebody reports otherwise, I'll close this report next week.
Comment 17 Tommi Tervo 2008-01-21 13:42:31 UTC
Works for me too. 
kdebase-runtime 4:4.0.0-0ubuntu1~gutsy1