Registered Member
|
works with current rolling Dolphin Version 18.08.3 this is a complete farce. why are developers fighting their own users ? they come across as condesending and acting like a bloody nanny-state operative. depressing ! sudo bash ; DISPLAY=:0 dolphin still breaks with Executing Dolphin with sudo is not possible due to unfixable security vulnerabilities. thanks to guys like graesslin:
none of what he says is true ! |
Registered Member
|
download + unzip the version of dolphin-sources of which u run the binary, such as v.18.08 from e.g.
https://github.com/KDE/dolphin/archive/v18.08.3.tar.gz run KDevelop Appimage and open the project. modify (copy + paste) main.cpp such that it reads from line 43 like this:
configure , build , install (modify settings: install as root) done ! you have a hacked version of dolphin and the hostile developers who introduced the bad feature-kill can no longer do harm to your workflow ! seems, like we KDE users are on out own ! let's keep up the good work of undoing the poor decisions other people try to make for us ! |
Registered Member
|
Thanks @firef for the patch idea...
Let's agree to disagree that some devs are idiots for imposing their opinions on KDE mortals! However I don't have KDevelop--and yes, I know it merely requires an install--but my experience with builds is that I've yet to have one actually be successful... IS there anyway that a patched /usr/bin/dolphin executable--for 4:18.08.3--can be made available as a download? I typically use Krusader--when I need a root session--and would overwriting my version with a patched one be sufficient?
KDE neon 5.20 - Plasma 5.20.5 - Frameworks 5.78 - Qt 5.15.2 - Kernel 5.4.0-65
|
Registered Member
|
indeed it would be nice to have a root-dolphin-AppImage , like an .EXE click + run + enjoy who creates one ? It sure is more difficult than the above build. it is shocking to see the dissosonance between that official "comradery" talk all across planet KDE, and then see certain operatives (see quote above) thwart efforts to improve KDE overall by imposing their personal, often less relevant, opinions on the KDE user base. And then see edit wars like this : https://userbase.kde.org/index.php?titl ... leshooting to make it as difficult as possible for Dolphin users to get dolphin doing what they need. |
Registered Member
|
I wasn't thinking of Windoze .exe as such... rather the actual binary executable--path mentioned above--and as such @firef would already have that patched dolphin file; so if we could download it--from a url that he provides--then it's a simple sudo command line to replace my existing one... and no build required on my end! It does imply however that when a new version update occurs--i.e. replaces the patched one--we would have to iterate this process; but that would be a small inconvenience and worth the effort of having a patched dolphin that doesn't require me to use a root-access-krusader process!
KDE neon 5.20 - Plasma 5.20.5 - Frameworks 5.78 - Qt 5.15.2 - Kernel 5.4.0-65
|
Registered Member
|
As you can see in the source code, only some environment variables are getting checked. Thus, clearing them prior to launching dolphin will trick that check.
Keep in mind though, that clearing these environment variables could have side effects. From a terminal, running this should work:
|
Registered Member
|
I found a simple workaround by using the ssh server:
1. Install openssh-server (link to Ubuntu tutorial: https://wiki.ubuntuusers.de/SSH/ ) 2. Edit '/etc/ssh/sshd_config': PermitRootLogin yes If you just want to use the shh server for this workaround and prohibit any external connections pls add: ListenAddress 127.0.0.1 3. Go to dolphin -> network -> add network folder 3.1 choose 'secure shell (ssh)' 3.2 Fill in: Name: 'Name your connection here' (I alwys add 'root' in the name, to not forget that this is root...) User: root Server: 127.0.0.1 Port: 22 Folder: / 3.3 Press 'yes" to accept the key. 3.4 fill in your root password check 'Remember password' Done Your full root access is now stored in the network folder. To get full root access via dolphin just open this folder. If you open a file in kate by using this folder, it has full root access too. Anything here has now root access. With left click 'Add to places' you can add it to the left sidebar for quick access. |
Registered Member
|
How would I do this? It seems like Dolphin uses some exotic build system called "kdesrc-build" that simply refuses to work no matter what I do. I installed that program, ran "sudo kdesrc-build --no-src" and it complains about not finding the configuration file, despite the error message stating explicitly that it would look at the path where the configuration file already is! Is there a simpler way to build Dolphin, by using one of the usual methods? |
Registered Member
|
kdesrc-build is a wrapper around various tools used for pulling and updating the sources of the various projects and building them, usually using cmake. It's convenient in its ability to update the git sources, build dependencies of the selected project(s) in the appropriate order and do a lot of things for you if you care about keeping up-to-date with the latest changes.
Most KDE projects use the cmake build system, which Kdevelop understands and can help you with (including checking out the sources for you if you haven't done that yet). With the Dolphin source project open in Kdevelop, you can use KDevelop's menus to configure, build and install the project. If you want to use the command-line instead, you should be able to compile using:
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
Registered Member
|
I ran into an error and solved it with this: https://superuser.com/a/912259/681763
Then I ran into another error and solved it by installing "kdoctools". Then I ran into another error and solved it by installing "ruby-test-unit". Then "cmake .." finally worked. "make" worked without issues, "make install" only worked with sudo. Now to running Dolphin: Without sudo it works fine. With sudo I get "Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)", but running that command does not fix it. I can't install "kdesudo", because "kdelibs" does not compile, see: https://aur.archlinux.org/packages/kdelibs/ Running it with "kdesu" requires to first add this in "sudo visudo":
Otherwise I get a password prompt that does not accept an empty password. But even if I do that, Dolphin does not launch. All the output I get it this:
There is also no Dolphin process running afterwards. So I'm basically back at the original question: How do I run Dolphin as root, this time with the modified code? |
Registered Member
|
Try this:
This should start a dbus session for root before running dolphin, and therefore avoid the error.
Kdelibs(4) is dead and unsupported since a bit more than two years, Qt4 even longer.
kdesu actually uses 'su' to switch to root by default. So the sudo config should have no influence at all. AFAIK, the only way to make 'su' work without a password, is to explicitly set an empty password for root (might need adjustments to the PAM config too to actually allow it). But you certainly don't want to go that road, do you? It is possible to configure kdesu to use 'sudo' though, see https://wiki.archlinux.org/index.php/Sudo#kdesu. If it still doesn't work then, something in your /etc/sodoers must be setup wrong I suppose. To allow a user to use sudo without a password can be done by this:
instead of your
Of course you could also restrict that to only allow certain commands. (but then, if you are able to run dolphin as root, you can do anything as root e.g. in the built-in konsole, so it doesn't really matter much anymore I suppose) |
Registered Member
|
Thanks, that finally worked! Re-applying the theme was pretty easy: I needed to run "qt5ct" as sudo and apply the same theme settings that I had already done for my regular user, then apply the stylesheet the usual way as described here: https://askubuntu.com/a/879558/730949a Binding it to a key or putting it into the menu was a bit more complicated, because it usually requires inputting a password and both methods do not open any password prompt, so they just silently fail. It would have worked to make it open a terminal with that password prompt, which automatically closes afterwards, but instead I just added myself to a file in /etc/sudoers.d like this: https://askubuntu.com/a/878705/730949 Thanks for your help! Now I can finally use a non-terminal root file manager with 7zip integration, black theme and generally everything one could wish for! |
Registered Member
|
|
Registered Member
|
Aren't you the one who posted the solution? |
Registered Member
|
well, on another distro I suppose. Now its no longer working. dang! |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]