Bug 746406 - kdesu does not work as the root user.
Summary: kdesu does not work as the root user.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: kdebase-runtime
Version: 15
Hardware: i386
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-15 12:57 UTC by hardikh
Modified: 2012-08-06 20:08 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-06 20:08:36 UTC
Type: ---


Attachments (Terms of Use)

Description hardikh 2011-10-15 12:57:41 UTC
Description of problem:
Kdesu is not working as root user.
When i launch my applcation as the normal user by double clicking on it,some of its features of my application are not working,but the same application when i run using the terminal by 'sudo' or 'su' it works fine.

Version-Release number of selected component (if applicable):
Fedora 14 and Fedora 15
How reproducible:
Install Any Application by double cliking on it.Any try to open the website link at the time of AutoLaunch(When installation finished and application launch).
And run the same Setup using terminal by 'su' or 'sudo' and do the same think open the website link. Observer the behaviour.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
It is not opening the website at the time of AutoLauch.

Expected results:
It should open the Website at the time of AutoLauch.

Additional info:
I also tried to use kdesu with 'su' and 'sudo' in ~/.kde/share/conflig/kdesuc but still no progress.

Comment 1 Rex Dieter 2011-10-15 13:14:08 UTC
kdesu works fine for me in my own limited testing.

Can you give a concrete, specific example of what you've tried that doesn't work?

Comment 2 Kevin Kofler 2011-10-15 16:30:51 UTC
Also, do you get any "AVC" error messages from SELinux?

Comment 3 Sanket Mehta 2011-10-17 06:47:26 UTC
Hi,

I am Sanket.
I also face the same kind of problem in Fedora 14 - 15
I install my application by double clicking the setup.
And after installation, I am spawning another application from the main application, which actually not getting started but an entry for that application shown in system monitor as zombie.

But when I install my application using SU or SUDO from terminal,
I am not facing any kind problem and child application get spawned correctly.

Can you flash some light on this problem because this happens only in Fedora.
In Ubuntu I am not getting any kind of problem whether I install my application using double click it or using SU from terminal.


Thanks in advance,
Sanket

Comment 4 hardikh 2011-10-17 13:34:40 UTC
Hi Kevin,no i am not getting any "AVC" message form SELinux.

@Rex,actually i am not able to find out any software which is run by simply double click on it by today.If you have any software which can be run by double click and ask for the root password at the time of installation and autolaunch the application , at that time see the behavior which i specified over here.And if possible if i found any software which can be run by simply double click i ll post it over here soon.

But the basic thing is that my software run perfectly using 'su ' and 'sudo' command from terminal but when kdesu refer 'su' or 'sudo' its not work well.

Any help....

Comment 5 Rex Dieter 2011-10-17 14:47:38 UTC
OK, not sure what we can do without a reproducible test case.

All apps I've tried:

kdesu <app>

work fine for me.

<app> I tried, includes: konsole, konqueror , gwenview, xterm, firefox

Comment 6 Kevin Kofler 2011-10-18 03:20:31 UTC
Also, how do you "double-click on the application"? kdesu does NOT run if you run the binary directly.

kdesu runs only if you either:
a) run the application from the menu (Kickoff or classic), which takes only a single click, if and only if the .desktop file shipped by the application is configured to run the application as root (or some other preset user)
or:
b) run "kdesu applicationname" explicitly.

If you double-click on the executable in some file manager, it will be run directly, NOT under kdesu.

Comment 7 hardikh 2011-10-18 04:01:19 UTC
Thanks Rex and Kevin for your response.
@Rex : i ll try to provide you an test application as soon as possible.
@Kevin :
http://linux.die.net/man/1/kdesu here is the link about the kdesu.
And when i run my TestApplication kdesu runs which i can see ever in the system Monitor also.
As such when you run any software by double click and if it ask for the root password its pass under the kdesu which by default point to 'su' in fedora which we can change to 'sudo' or 'su' see this link ...http://www.freetechie.com/blog/default-kdesu-to-use-sudo-and-not-su/

Comment 8 Fedora End Of Life 2012-08-06 20:08:36 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 15. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 15 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 9 Fedora End Of Life 2012-08-06 20:08:36 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 15. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 15 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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