Bug 466768 - Can't run system-config-* tools that requires privileged access
Summary: Can't run system-config-* tools that requires privileged access
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: usermode
Version: rawhide
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 467913 467915 467916 467918 467919 467920 467921 467922 467923 467924 467925
Blocks: F10Preview F10DesktopBlocker
TreeView+ depends on / blocked
 
Reported: 2008-10-13 14:44 UTC by Edney Matias
Modified: 2008-10-27 18:43 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-10-27 18:43:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Edney Matias 2008-10-13 14:44:34 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; pt-BR; rv:1.9.0.2) Gecko/2008100707 Fedora/3.0.2-1.fc10 Firefox/3.0.2

I'm running kde 4.1.2 and am trying to access administration tools without success. Whenever i launch one of these tools that requires privileged access, the cursor bounces on screen, the task bar shows the icon from the window, but after some seconds it's dismissed and the cursor stops bouncing and no windows is opened. When i try this on konsole, i got a prompt asking my password and the window is opened. This happend with almost any system-config tool that needs password to open.

These doesn't work:
 - /usr/bin/system-config-network
 - /usr/bin/system-config-boot
 - /usr/bin/system-config-date
 - /usr/bin/system-config-firewall
 - /usr/bin/system-config-language
 - system-config-printer
 - /usr/bin/system-config-lvm
 - /usr/bin/system-config-selinux
 - /usr/bin/system-config-rootpassword
 - /usr/bin/system-config-display
 - /usr/bin/system-config-users

These is the one that actually worked:
 - /usr/bin/system-config-services
 - /usr/bin/system-control-network

These are from System menu and doesn't work also:
 - /usr/bin/selinux-polgengui

Reproducible: Always

Steps to Reproduce:
1. Install Fedora 10 KDE LiveCD
2. Go to Administration menu and click on one of the items
3. Watch the cursor bounce without any window opening
Actual Results:  
Cursor bouncing, icon on task bar and no window;

Expected Results:  
On Fedora 9, the cursor used to bounce, the task bar used to show the icon and after awhile the window asking my password used to open. This is the expected result on Fedora 10, i think.

Don't know what else i can provide. But if you ask, i will.

Comment 1 Matthias Clasen 2008-10-15 22:38:15 UTC
Most of these tools have nothing at all to do with PolicyKit.

Tentatively moving to KDE, since "running under KDE" seems to be the only common factor here...

Comment 2 Kevin Kofler 2008-10-15 22:47:07 UTC
consolehelper from usermode-gtk is what these tools use to get root.

Is there anything new in F10 we have to do in KDE to get consolehelper to work?

Comment 3 Than Ngo 2008-10-16 11:39:22 UTC
i have latest rawhide (today) running on my test machine. I cannot reproduce this problem. It seems something is broken in Fedora 10 KDE LiveCD?

Comment 4 Rex Dieter 2008-10-16 11:49:54 UTC
Or that the system-* tools or usermode has missing deps.

Comment 5 Edney Matias 2008-10-16 12:02:46 UTC
I think maybe Rex ir right cause i have a gnome-session installed even when i installed from kde live cd and the system-* tools doesn't work there too.

Comment 6 Miloslav Trmač 2008-10-16 19:35:19 UTC
Do you have usermode-gtk installed?  (Run (rpm -q usermode-gtk) in a terminal.)

Comment 7 Edney Matias 2008-10-17 02:50:40 UTC
Nop, i didn't have usermode-gtk. I installed and everything worked. So something is wrong with kde live? 

BTW thank you for your support.

Comment 8 Kevin Kofler 2008-10-17 02:53:08 UTC
So the bug is that those tools are all missing a dependency on usermode-gtk?

Comment 9 Kevin Kofler 2008-10-17 02:54:36 UTC
CCing Sebastian Vahl, the KDE live CD maintainer, he may want to manually pull in usermode-gtk onto the spin. (Still, I think there should be a dependency if the tools aren't going to work without it!)

Comment 10 Than Ngo 2008-10-17 10:09:30 UTC
there's only a dependency on usermode but not on usermode-gtk in the system tools. I will fix it in our system tools.

Comment 11 Sebastian Vahl 2008-10-17 10:17:23 UTC
(In reply to comment #10)
> there's only a dependency on usermode but not on usermode-gtk in the system
> tools. I will fix it in our system tools.

Ok then. Or should I also add it to the kickstarts?

BTW: It is possible that the applications design of the system-config-tools has changed in some way? What I mean: I could start system-config-services and it seems to be working. If I want to disable a service there, a PoliciKit window pops up and asks me for the root password. system-config-date and system-config-firewall want's this password before starting the application.

Comment 12 Kevin Kofler 2008-10-17 11:14:20 UTC
Looks like system-config-services has been ported to use PolicyKit instead of running as root entirely, system-config-date and system-config-firewall are still using usermode-gtk (which runs the entire application as root). That's also why system-config-services works without usermode-gtk and the others don't.

Comment 13 Than Ngo 2008-10-17 11:23:43 UTC
only system-config-services and system-config-samba supports PolicyKit and the rest not.

Comment 14 Tom "spot" Callaway 2008-10-27 18:43:23 UTC
All of the other system-config-* packages now have Requires: usermode-gtk in Rawhide.


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