1 |
Yohan Pereira wrote: |
2 |
> On Saturday 25 September 2010 8:33:09 am Dale wrote: |
3 |
> |
4 |
>> Well, I don't really know what it is using. I just set up the menu item |
5 |
>> to run the program as root. |
6 |
>> |
7 |
> i assume you mean you setup a menuitem to run a paticular application as root |
8 |
> like say to run konsole/konqueror as root. |
9 |
> |
10 |
> |
11 |
>> I don't know if it uses su -, kdesu, sudo |
12 |
>> |
13 |
> if its a menu item then it has to use kdesu, because sudo and su both take the |
14 |
> password from teh std input (you wont get a gui prompt to enter the password), |
15 |
> and nothing will happen. all you have to do is fire up the menu editor, go to |
16 |
> your menu entry and make sure the command field looks like this "kdesu |
17 |
> konsole", if it does look like that , try running kdesu from a konsole session |
18 |
> and see what it prints out (it may not be installed for starters). |
19 |
> |
20 |
> |
21 |
|
22 |
You are assuming correctly above. The way I have always had to set this |
23 |
up is like this. Set up the menu item like I would with any other |
24 |
user. In the Advanced tab, I set it to run as user root. When I then |
25 |
select to run the item from the menu, a little GUI window will pop up |
26 |
and ask me for the root password. This has worked in KDE3 for ages and |
27 |
I don't recall having any trouble with it all. KDE4 has been changing |
28 |
things around and I have had to rework things a couple times as KDE4 |
29 |
seems to keep changing the way things work. |
30 |
|
31 |
I suspect you may be right, that it uses kdesu. Just to make sure it |
32 |
wasn't a wrong version installed, this is what I have: |
33 |
|
34 |
root@smoker / # equery list -p kdesu |
35 |
* Searching for kdesu ... |
36 |
[-P-] [ ] kde-base/kdesu-4.4.5:4.4 |
37 |
[IP-] [ ] kde-base/kdesu-4.5.1:4.5 |
38 |
root@smoker / # |
39 |
|
40 |
So, I do have the latest at least. I'll try to re-emerge it although I |
41 |
think I already did that once. I know I tried re-emerging some other |
42 |
packages trying to get this to work again. |
43 |
|
44 |
What gets me, I have Dolphin set up the same way, it works just fine. I |
45 |
can also run Konqueror from a root Konsole and it works fine there. It |
46 |
just doesn't like the menu item for some reason. I suspect it doesn't |
47 |
like kdesu for some reason. Maybe it's a bug and will be fixed or it |
48 |
may be a new "feature". Who knows. |
49 |
|
50 |
Dale |
51 |
|
52 |
:-) :-) |