Reply to topic

Superuser access to Dolphin or Konquerer

Cager
Registered Member
Posts
13
Karma
0
Hi all. Is there a way to run either Dolphin or Konquerer as SU. There used to be a separate icon in the taskbar and menus on older versions of KDE but not in the menus for 4.1.2. I have placed an icon for Dolphin on my main screen and can run as user from that but I can find no way of running it as SU. If I use the run command I can enter SU and it offers me an icon for that, but if I run it and subsequently open Dolphin I still only have user access ! I want to be able to edit and save any file without going to the trouble of re-booting as root or using su in a terminal session.

Thanks for any help Cager


Cager, proud to be a member of KDE forums since 2008-Nov.
User avatar toad
Global Moderator
Posts
1258
Karma
7
OS
would "kdesu konqueror" or "kdesu dolphin" help?


Debian testing
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
Right-click on the Kmenu. Choose menu editor.

Locate Dolphin (most likely in system/File manager). Right-click on it and choose copy. Right-click on the category you want the SU-Dolphin to be in and choose paste. Rename it if need be (it defaults as Dolphin-2). You may want to change the description and/or icon to make it easier to distinguish it from the non-superuser version as well. Click the advanced tab. Check "Run as different user", and fill in root in the user-name field. Save.

Now you have one superuser-dolphin in the menu. If you want it on the panel or on the desktop, make sure the widgets are unlocked. Locate the new entry in the startmenu. Rightclick on it and select "Add to panel" or "Add to desktop".

Done.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
Cager
Registered Member
Posts
13
Karma
0
Hi toad. Thanks for the interest. I am afraid this does not work for me when using the run box or from a terminal. Does it work for you?

Cager


Cager, proud to be a member of KDE forums since 2008-Nov.
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
Cager wrote:Hi toad. Thanks for the interest. I am afraid this does not work for me when using the run box or from a terminal. Does it work for you?


If you're using Kubuntu Intrepid, substitute kdesu for kdesudo and it should work.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
Cager
Registered Member
Posts
13
Karma
0
Hi Kryten2X4B. Thanks for your interest. I tried your idea and all went well until I clicked on the new Dolphin icon. I was asked for the root password and on giving it Dolphin opened but did not display any files at all! It did put a message at the bottom of the screen saying :-
"Could not start process. Cannot talk to klauncher. The name org.kde.klauncher was not provided by any service files"
I had previously got to this point by editing a second instance of the Dolphin icon on the desktop -icon settings-application- advanced.
Have you any ideas as to what the message means and how to satisfy its requirements?

Cheers Cager


Cager, proud to be a member of KDE forums since 2008-Nov.
User avatar toad
Global Moderator
Posts
1258
Karma
7
OS
cager, what is a run box? My commands work if typed into a terminal. Also, which system are you running?


Debian testing
Cager
Registered Member
Posts
13
Karma
0
toad wrote:cager, what is a run box? My commands work if typed into a terminal. Also, which system are you running?


Hi toad. I am running Fedora 9 (2.6.27.5-32) with KDE 4.1.2. If I right click on the desktop and select run I get a weedy box on the screen in which I can type the run instruction. If the system recognises the application an extension of the box drops down with an icon in it which has to be clicked to run te application. I have also tried using your commands from a terminal but I get the reply "kdesu: command not found"
Cager


Cager, proud to be a member of KDE forums since 2008-Nov.
Kryten2X4B
Registered Member
Posts
911
Karma
4
OS
Cager wrote:Have you any ideas as to what the message means and how to satisfy its requirements?


I'm afraid not. It works for me.

However, another idea that may be worth pursuing. I take it all that you want to accomplish is to be able to edit, for example, xorg.conf in kate/kwrite or delete stuff in say /etc without having to resort to konsole, right?

If so, a servicemenu may be all that you need. For example, http://www.kde-apps.org/content/show.ph ... tent=48411

With that installed, all you would need to do is to right-click on the file in question, select the "Root actions" submenu and do what's needed (Open as text, Open with, Move/rename, delete, change permissions). After having provided the superuser-password that is.


OpenSUSE 11.4, 64-bit with KDE 4.6.4
Proud to be a member of KDE forums since 2008-Oct.
User avatar toad
Global Moderator
Posts
1258
Karma
7
OS
The service menu does not quite work as advertised on my box, ymmv.

Have you tried Kryten's suggestion?

kdesudo konqueror
kdesudo dolphin

If that does not work I'll eat my hat!


Debian testing
User avatar msoeken
Mentor
Posts
300
Karma
4
OS
For me only kdesudo konqueror works. When I try it with dolphin I get the same error like Cager:

"Could not start process. Cannot talk to klauncher. The name org.kde.klauncher was not provided by any service files"

But I can load the dolphinpart in konqueror and create files as root


Image
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size]
User avatar google01103
Manager
Posts
6668
Karma
25
Cager wrote:Hi Kryten2X4B. Thanks for your interest. I tried your idea and all went well until I clicked on the new Dolphin icon. I was asked for the root password and on giving it Dolphin opened but did not display any files at all! It did put a message at the bottom of the screen saying :-
"Could not start process. Cannot talk to klauncher. The name org.kde.klauncher was not provided by any service files"
I had previously got to this point by editing a second instance of the Dolphin icon on the desktop -icon settings-application- advanced.
Have you any ideas as to what the message means and how to satisfy its requirements?

Cheers Cager

ditto
For what it's worth I'm running OpenSuse 11.0 x64 and get the same error message when Dolphin opens (but doesn't display anyting) using kdesu. This is not the case running "kdesu konqueror".


OpenSuse Leap 42.1 x64, Plasma 5.x

Cager
Registered Member
Posts
13
Karma
0
Hi All. I haven't come across servicemenus before. From a brief look at the website for the Root actions service menu I think I will have to try that tomorrow if I get time to do a bit of reading. It was a lot simpler when a superuser version of Konqueror was part of the standard kit!
Cager


Cager, proud to be a member of KDE forums since 2008-Nov.
mikyul
Registered Member
Posts
1
Karma
0
Using Ubuntu/Kubuntu 8.10 Intrepid Ibex -- KDE 4.1.3 -- sorry this is wordy

**NOTE: This works with either the Alt+F2 Run-dialog or in a konsole or xterm.

After a 'Fresh' login:

Using either "gksudo dolphin" or "kdesudo dolphin" gets the following error at bottom of the dolphin window.

"Could not start process. Cannot talk to klauncher: The name org.kde.klauncher was not provided by any .service files.

Same error is repeated in subsequent attempts.

However, trying either "gksu konqueror" or "kdesudo konqueror" gets a konqueror window at the default Konqueror "be free" homepage. You must then type "~" + Enter and then Alt+Up(cursor) or "/" + Enter in the address bar to get the "/" root folder. Only after you get a file listing will you then be able to see a file list in a 'root' dolphin. Close Konqueror first.

(you can also type "gksu konqueror /" or "kdesudo konqueror /" to get an initial 'root' file listing)

Afterwords typing "gksu dolphin" or "kdesudo dolphin" gets a dolphin window at a blank window. Then typing Alt+Up(cursor) gets the root file list.

or

I found that you must type "gksu dolphin ~" or "gksu dolphin /" or "gksu dolpnin /path/to/files" to get dolphin to display a list of files on opening. (you can replace gksu with kdesudo/kdesu - whatever works)

Dolphin continues to display a file list until logout and loging back in. You have to do the 'root' Konquero list FIRST before Dolphin will list files.
Cager
Registered Member
Posts
13
Karma
0
Hi Kryten2X4B . I tried the service menu you suggested but still no coconut! When I right click on a file I get the root action menu but if I select say, "Ownership to active user" I am not prompted for the root password and I still can't edit files owned by root.

Hi Mikul. I am afraid none of your methods worked either!

Cheers Cager


Cager, proud to be a member of KDE forums since 2008-Nov.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Invictus, Majestic-12 [Bot]