Bug 467359 - Request: re-enable running Dolphin as sudo
Summary: Request: re-enable running Dolphin as sudo
Status: RESOLVED DUPLICATE of bug 179678
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-14 19:33 UTC by David
Modified: 2023-03-18 17:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2023-03-14 19:33:26 UTC
It's been many years since the functionality for running Dolphin as sudo was artifically disabled, with the expectation that "soon" Dolphin will be able to poll for sudo privileges when it needs to, so that users wouldn't need to run it as sudo.

The justification when I try to run it as sudo says:
"Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities. Instead use Dolphin normally and you will be prompted for elevated privileges when performing file operations that require them."

But this is incorrect, since the functionality for requesting privileges still hasn't been implemented after all these years.

Since this anti-feature was imposed, it has not been possible anymore to, among other things:
- Delve into folders for which one has no access. Practical example: try to browse virtual machines from qemu (/var/lib/libvirt).
- Delete files that are not owned by the user. Practical example: create some file in a dockerized application that someone else created (they typically run as root).
- Change ownership and privileges of files, folders, or change them recursively for folders in which something underneath is not user-owned. Practical example: try moving some paths under your /home path to a separate BTRFS subvolume.
- Create symlinks between files and folders under paths like /etc. Practical example: try temporarily swapping a system library with another in a non-debian system (e.g. openblas with MKL).
- Drag things from a user folder to a non-user folder or vice-versa. Practical example: again playing with docker containers.

Now, I need to keep several file managers in my system so that I can do the kind of things that a file manager is supposed to do, which is very inconvenient. 

Dolphin is a file manager. It should be able to do these things. Nemo lets me do them. So does thunar. If the replacement functionality is not there, then please please wait until the fix arrives before removing the ability of Dolphin to perform its job.
Comment 1 L P Luigi Espenlaub 2023-03-14 21:13:59 UTC
I also have this problem and a question.
Is the following warning true with Ubuntu 22.04?
"Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities. Instead use Dolphin normally and you will be prompted for elevated privileges when performing file operations that require them."
If this is no longer true, please remove it.
or
add the code for being prompted for elevated privileges when performing file operations that require them.
The latter would be safer, as it limits sudo to one operation instead of applying to all operations including accidental ones until Dolphin is closed. This is likely the original intention for the intended feature change which for some reason was never completed.
Since Dolphin is the designated file manager for Ubuntu Studio at least it is important it be fully functional, as using file managers not designed to be specifically Ubuntu compatable could be more dangerous.
Comment 2 Ben Bonacci 2023-03-17 08:08:37 UTC
It looks like Dolphin running under sudo was disabled due to lack of a PolicyKit for KIO. Once this gets implemented you should get a prompt when evaluation is required without having to use sudo.
I understand it's frustrating to wait so long, however it appears to be more complicated then it sounds to implement.
Comment 3 Ben Bonacci 2023-03-17 08:08:50 UTC

*** This bug has been marked as a duplicate of bug 179678 ***
Comment 4 David 2023-03-18 17:05:57 UTC
(In reply to Ben Bonacci from comment #3)
> 
> *** This bug has been marked as a duplicate of bug 179678 ***

But this is not a duplicate: the linked bug report is about adding functionality for requesting privileges when needed.

This bug report is about not removing functionality until the replacement is already available, which it isn't.