LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-25-2010, 02:43 PM   #1
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
How to run dolphin/konqueror as root


I have been using KDE4 for some time now as a test and have noticed what at first seems to be a major omission. There is no way to run dolphin or konqueror as root. Old style KDE3 in SLackware 12 had the "root konqueror" option, (or whatever it was named in the KDE menus), but KDE4 doesn't have this. I tried adding a new menu itme in KDE4 to run dolphin as root but it had odd errors about "could not start process" and "could not to talk to klauncher" - it would not display any files from my directory. Konqueror had similar odd problems - something about klauncher and Dbus server. This is a pain as there are sometimes files I wish to move/delete which I need to be root to do and it would be nice to have a gui to do this.

Anyone got any quick ways (from KDE) of achieving this or setting up a KDE menu item to run a file manager (dolphin/konqueror) as root ? I don't always want to have to run "su -c mc" in a terminal to do admin stuff in the filesystem and I don't want to run KDE as root.
 
Old 02-25-2010, 02:45 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Have you tried kdesu? how about sudo from a terminal?
 
Old 02-25-2010, 02:49 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Have you tried kdesu? how about sudo from a terminal?
Well I have installed a menu item for dolphin to run as root and this runs kdesu - I have also tried "su -c /usr/bin/dolphin" from a terminal and both give the errors mentioned.
 
Old 02-25-2010, 03:08 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
I've run kdesu dolphin several times from the terminal with no problems. I haven't tried creating a menu item,though.
 
Old 02-25-2010, 03:19 PM   #5
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,118

Rep: Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290
Quote:
Originally Posted by brianL View Post
I've run kdesu dolphin several times from the terminal with no problems. I haven't tried creating a menu item,though.
Just setup Konqueror to run as root as a menu item.
On the comand line I simply put, kdesu konqueror
Works fine.
 
Old 02-25-2010, 03:25 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I've done this in various ways, but I now prefer to do all admin stuff (anything requiring root privileges) in a terminal. To me, the terminal environment evokes a level of respect and caution that does not exist with drag and drop, trashcans, etc.

If I have to move a bunch of files around, I might go to a terminal, switch to root and set some permissions, then go back to the GUI to actually move things.
 
Old 02-25-2010, 03:34 PM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
I've run kdesu dolphin several times from the terminal with no problems. I haven't tried creating a menu item,though.
Well it won't work for me ! It's running but giving an error at the bottom of the window which says :
Code:
Could not start process. Cannot talk to klauncher: The name org.kde.klauncher was not provided by any .service files.
with a close button shown. No files are displayed in any directories.
Quote:
Just setup Konqueror to run as root as a menu item.
On the comand line I simply put, kdesu konqueror
Works fine.
Aha - this works ! I was trying to run "su -c konqueror" from a terminal and it was giving the odd errors. Trying "kdesu konqueror" from a terminal works as well where the "su -c" way doesn't. Weird behavior - some environment issue somewhere perhaps.
Anyway I now have a menu item to run konqueror as root (would have preferred dolphin as i've kinda got used to it but whatever) so thanks to you all for the replies.
Quote:
I've done this in various ways, but I now prefer to do all admin stuff (anything requiring root privileges) in a terminal. To me, the terminal environment evokes a level of respect and caution that does not exist with drag and drop, trashcans, etc.

If I have to move a bunch of files around, I might go to a terminal, switch to root and set some permissions, then go back to the GUI to actually move things.
I too have been dong this but lately it's been bugging me when I have been editing in and around my web directories (/var/www/htdocs in Slackware) and want to quickly move stuff around. I know your point though.

Last edited by bgeddy; 02-25-2010 at 03:39 PM.
 
Old 02-25-2010, 03:35 PM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
Yeah, I usually do anything I have to do as root from the terminal, but I've tried kdesu with various things to see if it works. And it does...so far.
 
Old 02-25-2010, 04:37 PM   #9
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
I, too, prefer to have a menu item to start dolphin with root privileges, but also got the "Cannot talk to klauncher" error. I then found a post somewhere (I wish I had noted where, but I didn't) that recommended changing the `Command' line to "kdesu dbus-launch dolphin". That did the job for me, but please note that it is not always necessary. I am using -current with Alien-Bob's KDE-4.4 packages on this laptop & plain "kdesu dolphin" is working fine here.
Regards,
Bill
 
Old 02-25-2010, 04:50 PM   #10
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
I then found a post somewhere (I wish I had noted where, but I didn't) that recommended changing the `Command' line to "kdesu dbus-launch dolphin".
Brilliant - I now have a menu item that is set to run "dbus-launch /usr/bin/dolphin" as root which launches kdesu and dolphin works ! Thanks a bunch Bill.
 
Old 02-25-2010, 04:54 PM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
Why does kdesu dolphin work for me, but not for other people?
 
Old 02-25-2010, 06:16 PM   #12
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
There is an alternate way to offer root access via Dolphin using KDE service menus. It provides additional right-click options.

http://www.linuxquestions.org/questi...7/#post3662507
 
Old 02-26-2010, 06:08 AM   #13
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Original Poster
Rep: Reputation: 232Reputation: 232Reputation: 232
@Chuck56: Wow - that's so useful. I have been looking for a way to add exactly this functionality for ages and your tip does precisely what I want. So cool - thanks loads.
 
Old 02-27-2010, 01:12 PM   #14
oneforall
Member
 
Registered: Dec 2006
Distribution: Blade64/Slackware
Posts: 43

Rep: Reputation: 15
well I guess they never made a super user mode desktop file for dolphin( I only use konq-file mode) but for konq I have to always change NoDisplay=true to NoDisplay=false in Home.desktop and konquerorsu.desktop file
to get them back in the menu.
 
Old 02-27-2010, 11:23 PM   #15
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,118

Rep: Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290Reputation: 7290
In earlier versions of Dolphin there was an option in the right panel to open or view as root, but it has been dropped for whatever reasons.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Konqueror to Dolphin 0.8.2 as default File manager is only 95 percent complete???? soupnsandwich Linux - Desktop 2 07-26-2009 10:24 AM
LXer: How-To: Create an Open as Root Service Menu in Dolphin and Konqueror (KDE4) LXer Syndicated Linux News 0 03-31-2009 08:20 PM
Konqueror,Dolphin n nautilus crash haryo_linux Linux - Newbie 0 11-20-2008 10:41 PM
LXer: The Road to KDE 4: Dolphin and Konqueror LXer Syndicated Linux News 0 03-02-2007 09:01 AM
Permission run konqueror as root in KDE lynxgogo Linux - Software 6 12-13-2003 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration