Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
02-25-2010, 03:43 PM
|
#1
|
Senior Member
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
|
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.
|
|
|
02-25-2010, 03:45 PM
|
#2
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep:
|
Have you tried kdesu? how about sudo from a terminal?
|
|
|
02-25-2010, 03:49 PM
|
#3
|
Senior Member
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Original Poster
|
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.
|
|
|
02-25-2010, 04:08 PM
|
#4
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
I've run kdesu dolphin several times from the terminal with no problems. I haven't tried creating a menu item,though.
|
|
|
02-25-2010, 04:19 PM
|
#5
|
LQ Veteran
Registered: Feb 2007
Distribution: Slackware64-current with KDE4Town.
Posts: 9,496
|
Quote:
Originally Posted by brianL
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.
|
|
|
02-25-2010, 04:25 PM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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.
|
|
|
02-25-2010, 04:34 PM
|
#7
|
Senior Member
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Original Poster
|
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 04:39 PM.
|
|
|
02-25-2010, 04:35 PM
|
#8
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
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.
|
|
|
02-25-2010, 05:37 PM
|
#9
|
Member
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564
Rep:
|
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
|
|
|
02-25-2010, 05:50 PM
|
#10
|
Senior Member
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Original Poster
|
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.
|
|
|
02-25-2010, 05:54 PM
|
#11
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Why does kdesu dolphin work for me, but not for other people?
|
|
|
02-25-2010, 07:16 PM
|
#12
|
Member
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 933
|
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
|
|
|
02-26-2010, 07:08 AM
|
#13
|
Senior Member
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Original Poster
|
@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.
|
|
|
02-27-2010, 02:12 PM
|
#14
|
Member
Registered: Dec 2006
Distribution: Blade64/Slackware
Posts: 43
Rep:
|
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.
|
|
|
02-28-2010, 12:23 AM
|
#15
|
LQ Veteran
Registered: Feb 2007
Distribution: Slackware64-current with KDE4Town.
Posts: 9,496
|
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.
|
|
|
All times are GMT -5. The time now is 05:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|