Bug 2210 - drakrpm does not work with sudo
Summary: drakrpm does not work with sudo
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
Depends on:
Reported: 2011-07-19 22:03 CEST by Ilyés Zoltán
Modified: 2015-11-22 14:28 CET (History)
1 user (show)

See Also:
Source RPM: usermode
Status comment:


Description Ilyés Zoltán 2011-07-19 22:03:43 CEST
Description of problem:
If you start drakrpm with sudo, or from a sudo environment, you get an error:
"The password you typed is invalid. Please try again"

However, other drak-tools are working with sudo; drakrpm-edit-media, drakrpm-update, drakuser, drakfont are the ones i tried.

Drakrpm works if started from a su environment, or as normal user (in this case, prompts for root password).
Desktop: KDE and Openbox ( maybe a kdesu/kdesudo issue? )

Version-Release number of selected component (if applicable):

How reproducible:
always reproducible

Steps to Reproduce:
1. sudo drakrpm or sudo su && drakrpm
Comment 1 Ahmad Samir 2011-07-23 20:10:30 CEST
Please post the exact error message you get.

Keywords: (none) => NEEDINFO

Comment 2 Ilyés Zoltán 2011-07-24 14:25:20 CEST
That was the exact error message I got which I posted. A single window with "The password you typed is invalid.Please try again." text and a Close button. No addition message in command line.
Comment 3 Ahmad Samir 2011-07-24 15:07:51 CEST
FWIW, 'sudo rpmdrake' never works:
$ sudo rpmdrake
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Cannot be run in console mode.

while something like:
sudo drakxservices

would work, this is because drakxservices has an ncurses interface, i.e. it can be run in a text console (e.g. in tty[1-6]), whereas rpmdrake is a pure GUI app.
Ahmad Samir 2011-07-24 15:08:00 CEST

Keywords: NEEDINFO => (none)
Source RPM: (none) => rpmdrake

Comment 4 Ilyés Zoltán 2011-08-13 14:03:11 CEST
But when I launch other drake-tools, it opens the GTK interface, not the ncurses one. The ncurses interface detects if a GUI can be started and starts it?
Comment 5 Samuel Verschelde 2011-10-01 03:19:20 CEST
Assigning to maintainer now that our maintainers database has an entry for
this package. Please assign back to bugsquad@mageia.org in case of a mistake
from me.

CC: (none) => stormi
Assignee: bugsquad => thierry.vignaud

Comment 6 Thierry Vignaud 2011-10-13 18:44:00 CEST
sudo strips out everything related to X11, so usermode complains.

Resolution: (none) => INVALID
Assignee: thierry.vignaud => bugsquad
Source RPM: rpmdrake => usermode

Hartmut Goebel 2015-11-22 14:28:35 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=17202

Note You need to log in before you can comment on or make changes to this bug.