LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-08-2017, 01:50 PM   #1
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Angry Is there a way to run Dolphin as Root?


The KDE team seems to have had a brainstorm and have disabled Dolphin from being run as root. It also seems that they intend to extend this to editors.

In other words they have removed a vital freedom from users.

I would like to stay with Plasma but this restriction is a crippling one. Does anybody know a way to circumvent this restriction?

I am running Plasma on Debian unstable.
 
Old 12-08-2017, 05:24 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Which distribution are you using? You should be able to open a terminal and do: kdesu dolphin
OR: export $(dbus-launch) (hit the enter key) type: dolphin to open it
Which distribution are you using? Don't know that it will work on all so you just need to test as both work for me with kde5.

Last edited by yancek; 12-08-2017 at 05:26 PM.
 
1 members found this post helpful.
Old 12-08-2017, 09:52 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,806

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
The KDE team seems to have had a brainstorm and have disabled Dolphin from being run as root. It also seems that they intend to extend this to editors.

In other words they have removed a vital freedom from users.
The controversial thinking behind it is discussed here...
https://blog.martin-graesslin.com/bl...files-as-root/

FWIW, I'm still using openSUSE Leap (KDE 5.32.0) where it is still possible to invoke
Code:
xdg-su -c dolphin
 
Old 12-08-2017, 10:09 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,806

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
For those using a new version of Plasma 5/ Dolphin there has been a move away from running Dolpinh as root, but allowance has been made to configure Dolphin to allow various actions on root-owned files instead....

https://forums.mauilinux.org/showthread.php?tid=24251

Quote:
Rather than seeking to launch Dolphin as root, which i presume you wish to do so as to perform root actions on files & directories owned by root not you, why not actually use Dolphin's native Root Actions capability? Mint 17.x KDE has this, & i loved it, but stupidly they omitted it from Mint 18 KDE [as did also Kubuntu 16.04, KFedora 24, & even KDE Neon itself, but it's present by default & working beautifully in Maui]. This is one of the major reasons [though there's many others too] that last year i abandoned Mint KDE & came over to Maui.

You can configure Root Actions via Dolphin's Configure Dolphin menu selection:
Dolphin Settings > Configure Dolphin... > Services
 
Old 12-08-2017, 10:15 PM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by davcefai View Post
The KDE team seems to have had a brainstorm and have disabled Dolphin from being run as root. It also seems that they intend to extend this to editors.

In other words they have removed a vital freedom from users.

I would like to stay with Plasma but this restriction is a crippling one. Does anybody know a way to circumvent this restriction?

I am running Plasma on Debian unstable.
Yes your right it is in the code when user ID 0 starts it it will stop. You can patch it or set the user ID to 999999999 like I did rebuild it you get a out of range warning but it is fixed.
Alien Bob developer for Slackware has been patching it. Slackware uses root. Top user should be able to use the computer.
 
Old 12-09-2017, 12:50 PM   #6
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Original Poster
Rep: Reputation: 45
I have just upgraded Firefox from 57.0 to 57.0.2.

I could not do it using Dolphin, like I have been doing since dinosaurs walked the earth.
I always do:
1. Delete firefox.bak
2. Rename Firefox to Firefox.bak
3. Open the new archive.
4. Extract to /usr/local.

Since /usr/local is owned by root I had to jump through hoops and then use krusader. One can commend Martin Floser's enthusiasm but his autocratic behaviour is unacceptable. I am surprised that this change was allowed to go through. Where has our Freedom gone? Or should we drop the "F" from "FOSS"?
 
Old 12-09-2017, 12:51 PM   #7
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by Drakeo View Post
Yes your right it is in the code when user ID 0 starts it it will stop. You can patch it or set the user ID to 999999999 like I did rebuild it you get a out of range warning but it is fixed.
Alien Bob developer for Slackware has been patching it. Slackware uses root. Top user should be able to use the computer.
Can you point me towards some more detailed instructions please? I get what you are saying but don't know how to set about doing it.
 
Old 12-09-2017, 08:10 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I can run [URL="https://en.wikipedia.org/wiki/Midnight_Commander"]Midnight Commander (mc)[/URL. It's a dual-pane ncurses file manager similar to the old Norton Commander from the DOS days.

I can run mc as root in Debian Sid. If I try to run Dophin, I get an "it is forbidden" warning. The "export dbus" error message does not appear. When I try to "export dbus," I get a"forbidden to user ID less than 1000" message.

I agree that this is an unnecessary and annoying decision that addresses an issue that I doubt actually exists.
 
Old 12-09-2017, 08:56 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,806

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
I agree that this is an unnecessary and annoying decision that addresses an issue that I doubt actually exists.
@frankbell: Are you able to configure Doplhin (services) to permit root actions as described in post #4?

Last edited by ferrari; 12-09-2017 at 09:43 PM. Reason: Corrected post reference
 
Old 12-09-2017, 10:30 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Quote:
@frankbell: Are you able to configure Doplhin (services) to permit root actions as described in post #4?
I have not tried that yet. Anything I do as root I generally do from the command line, not because I'm expert, because making mistakes is how I learn.

I used to run Konqueror from time to time as root so as to configure directory permissions for Samba shares. which was about the only reason I ever ran a file manager as root, because it was easy.

I may play around with the suggestion in post #4, but I probably won't get to it for a few days; tomorrow is already booked, for we are going to a Christmas concert, hoping it will lift our spirits! If I do try that suggestion, I shall certainly report back.

Also, I am not a Dolphin fan. As you can conclude from the above, I prefer to use Konqueror as a file manager and never have figured out why KDE came up with Dolphin when Konqueror worked so very nicely, thank you very much.

Also, he added facetiously, why is it called "Dolphin"? This is KDE we're talking about here. Shouldn't it be called "Karp"?

Last edited by frankbell; 12-09-2017 at 10:36 PM.
 
Old 12-09-2017, 11:52 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,806

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
I have not tried that yet. Anything I do as root I generally do from the command line, not because I'm expert, because making mistakes is how I learn.
Yes, I generally prefer the CLI too, but I think most experienced users would be in this category. (The need to run Dolphin as root goes away if root actions can be enabled though.)

Quote:
I may play around with the suggestion in post #4, but I probably won't get to it for a few days; tomorrow is already booked, for we are going to a Christmas concert, hoping it will lift our spirits! If I do try that suggestion, I shall certainly report back.
Seasons greetings! I look forward to reading about your findings here.

Quote:
Also, he added facetiously, why is it called "Dolphin"? This is KDE we're talking about here. Shouldn't it be called "Karp"?
LOL!

Last edited by ferrari; 12-09-2017 at 11:53 PM.
 
Old 12-10-2017, 12:47 AM   #12
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by davcefai View Post
Can you point me towards some more detailed instructions please? I get what you are saying but don't know how to set about doing it.
here

https://alien.slackbook.org/ktown/so...t_noroot.patch

Code:
#ifndef Q_OS_WIN
    // Check whether we are running as root
    if (getuid() == 0) {
        std::cout << "Executing Dolphin as root is not possible." << std::endl;
        return EXIT_FAILURE;
    }
#endif

Last edited by Drakeo; 12-10-2017 at 12:49 AM.
 
Old 12-12-2017, 08:15 PM   #13
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I tried the suggestions in post #4 on Debian Sid with the Plasma desktop.

The "Root Actions" was not present in my version of Dolphin in Plasma on Debian Sid. It may be available via a plugin, but I haven't been able to explore that fully.
 
Old 12-12-2017, 08:32 PM   #14
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by frankbell View Post
I tried the suggestions in post #4 on Debian Sid with the Plasma desktop.

The "Root Actions" was not present in my version of Dolphin in Plasma on Debian Sid. It may be available via a plugin, but I haven't been able to explore that fully.
frank it would be imposible like you said. do to the fact they use sudo and have no reason to let a user become "0".
I looked at the deb source and it is right from kde. why would they patch it. they have no reason to be root
Mewwwy qwissmass fwank
 
Old 12-12-2017, 08:53 PM   #15
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
This is not security.

This is security theatre.
 
1 members found this post helpful.
  


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
[SOLVED] Dolphin wants to run as root when launched from KDE Plasma 5 Folder Widget DLG SUSE / openSUSE 12 04-04-2016 12:22 PM
[SOLVED] How to run dolphin/konqueror as root bgeddy Slackware 18 04-16-2014 11:06 AM
How do I start Dolphin 2.2 as root? XenaneX Mageia 4 08-03-2013 09:46 PM
Dolphin only sees USB controller as root flyinggeorge Linux - Software 4 07-18-2013 11:31 AM
Slack-Current / Dolphin-root slackass Slackware 11 05-03-2009 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:06 PM.

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