kdesu does not respect NOPASSWD from sudoers

Bug #78640 reported by mexlinux
4
Affects Status Importance Assigned to Milestone
kdebase (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kdebase

How to reproduce:
Via visudo add line on the end of sudoers:
username ALL=(ALL) NOPASSWD: /usr/sbin/whateverXapp

Open terminal and run sudo /usr/sbin/whateverXapp
It will work without asking password.
Same thing with kdesu asks for password.

Revision history for this message
mexlinux (mcanedo) wrote :

Well in fact sudo can not connect to the X server.
In GNOME gksudo works

Revision history for this message
mexlinux (mcanedo) wrote :

If as a workaround I try to use gksudo from KDE, then it can also not connect to X server...

Revision history for this message
Fabián Rodríguez (magicfab) wrote :

As a workaround you can try this command which give access to your X session to root:
xhost +

I don't know how to make this permanent, I am researching a similar bug. If you find a solution please do report it here.

Revision history for this message
Matthew Flaschen (matthew-flaschen) wrote :

It doesn't seem to read rootpw either. I don't know how it's implemented, because if the backend is su I would expect the root password to be required anyway.

Revision history for this message
Anthony Mercatante (tonio) wrote :

kdesudo fixes this

Changed in kdebase:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.