Originally posted by Teunis
Announcement
Collapse
No announcement yet.
No More Dolphin Root Workaround?
Collapse
This topic is closed.
X
X
-
Fstab Edit
- Top
- Bottom
-
Progress is being made... I'll hang on and see what this change actually feels like when it gets here...
- Top
- Bottom
Leave a comment:
-
Originally posted by TWPonKubuntu View PostAhha! Now I know who to thank for pkexec!
and thank you Kubicle for that info.
Right, this patch just re-enables running Dolphin as the actual root user (not sudo/kdesu) to fix Kali and other legitimate root user use cases. PolKit support in KIO is definitely the preferred solution for when using Dolphin with a normal user account.Last edited by kubicle; Jan 01, 2020, 06:32 PM.
- Top
- Bottom
Leave a comment:
-
Ahha! Now I know who to thank for pkexec!
and thank you Kubicle for that info.
- Top
- Bottom
Leave a comment:
-
Nate's "This week in KDE" series is one of my favorite reads on planet.kde.org.
Incidentally, it was Nate's patch that enabled pkexec'ing dolphin back in 18.08 (although it might have been inadvertent, as the main goal was to re-enable dolphin to run on a true root session, where the security effect of blocking dolphin is rather negligible..but it also made pkexec possible), so he is the one to thank for the possibility of running dolphin as root currently (without modifying the source).
Last edited by kubicle; Jan 01, 2020, 06:25 PM.
- Top
- Bottom
Leave a comment:
-
@jglen490, I drilled down to the source and found this:
https://pointieststick.com/2020/01/0...dmap-for-2020/
Privilege escalation in KIO and Dolphin
I’ve been promising this for years, talking about how it’s 90% done, then 99%, then 99.9%… you get the idea. I know, I know, I’m the boy who cried wolf at this point! Well, this time we really are on the cusp of victory. There is only a single patch left before we can formally turn it on! Once this happens, you will finally be able to create, move, rename etc. root-owned files in Dolphin without needing to run Dolphin as root or using a hacky extension.
Last edited by TWPonKubuntu; Jan 01, 2020, 02:03 PM.
- Top
- Bottom
Leave a comment:
-
So there seems to be some late breaking news about changes in the KDE landscape coming in 2020. These changes might give some relief to Dolphin users and elevated permissions.
- Top
- Bottom
Leave a comment:
-
Originally posted by kubicle View PostAbsolutely. But apps can have root access (with policykit) without running them as root. We probably all know (by now) how kate can perform write operations with elevated privileges when necessary while running the gui as normal user (no one really complains about the kate workflow anymore). And Gnome has recently added the admin:// gvfs protocol that enables apps like gedit and nautilus to do the same.
However, I do think, depending on how some programs are launched may not go thru policykit. I can't say for sure, they still might, it's just not readily apparent to me and usually it is apparent (as in pop up window), that's why I'm speculating this.
Originally posted by kubicle View PostSo it is was a judgement call for the devs...and different devs made different decisions (there were no strictly right or wrong decisions here). Like I said previously, I probably would have gone with the decision the krusader devs made, but I wouldn't criticize dolphin devs for the decision they made either, there are good strong arguments to support either choice, especially considering the different user bases and the fact that policykit integration is necessary anyway in the future wayland era.
- Top
- Bottom
Leave a comment:
-
Originally posted by WWDERW View Postbut that would also be an issue with any GUI program and there are some that I do believe would require root access to do what they needed to do.
So it is was a judgement call for the devs...and different devs made different decisions (there were no strictly right or wrong decisions here). Like I said previously, I probably would have gone with the decision the krusader devs made, but I wouldn't criticize dolphin devs for the decision they made either, there are good strong arguments to support either choice, especially considering the different user bases and the fact that policykit integration is necessary anyway in the future wayland era.
And I honestly believe the dolphin decision might have been different if it was known at the time that it would take 2+ years to get policikyt integration in kio (after all policykit support was finished rather quickly for ktexteditor which kate/kwrite uses), as we know pkexec support was later enabled to restore the root workflows (it needed some changes in the source code to lift the strict restrictions a bit), but hindsight is always perfect.
Currently, AFAIK, the only thing blocking the release of enabled polkit support in dolphin is this: https://phabricator.kde.org/T8075 (so it should be fairly close, and should improve all workflows and add immediate security benefits while also being ready for wayland).Last edited by kubicle; Dec 30, 2019, 07:37 AM.
- Top
- Bottom
Leave a comment:
-
Originally posted by kubicle View PostTherein lies the core of the problem. Maybe you are among the users that don't have other (unprivileged) users on your systems and never yourself run any software that you haven't examined the source and have built yourself, but I assure you that you are in a very small minority.
I totally agree with your scenario, but that would also be an issue with any GUI program and there are some that I do believe would require root access to do what they needed to do.Last edited by WWDERW; Dec 29, 2019, 05:00 PM.
- Top
- Bottom
Leave a comment:
-
Originally posted by WWDERW View PostI don't consider this a security issue compared to something that I can't close off or I didn't have to actively initiate. If it's a zero day or something to where it's on, but should be off or vice versa, those would be security issues.
Let's say you have a user that has installed something from the internet in their $HOME (or possibly you have done so yourself), that software could run a daemon that listens to the X server waiting for an admin user to come along and run a GUI app as root, and bam, that daemon has root (no input necessary from the admin user, other than the act of starting the gui app as root). That is a real security issue. If you understand that, and make an informed decision to run a gui root app, that's quite fine by me (but most people do not quite grasp that, even when I've tried to explain it to them...at least not the ones who search for the quick instructions, and I can assure you that a warning of "this is dangerous" doesn't quite do it either).
Originally posted by WWDERW View PostTell me your thoughts on that?
- Top
- Bottom
Leave a comment:
-
I've enjoyed following this discussion. For me, the bottom line of this thread, Dolphin having root access rights, is very important to my web design workflow. Now that pkexec is working (in 19.04 anyway), I'm back in the flow.
With respect to the philosophical argument about whether to shield users from potentially dangerous GUI actions or to allow those actions with a simple warning, there is no argument.
Let the user have access.
The warning needs to make it clear where the danger lies, but the user should not be completely blocked, as was the case with Dolphin before someone wrote the pkexec script (thank you).
This whole discussion is very likely to come up again, with other tools. It is the nature of Linux development that we will work through the blockages. I just hope it happens faster than this Dolphin situation because I lost work time=money.
Again, thanks for the very good discussion on the philosophy of software development.
- Top
- Bottom
Leave a comment:
-
Originally posted by kubicle View PostSays who? I personally would stay away from software whose devs would think like that, and I'm sure most people would be rather miffed if a browser emptied their bank account and the developers' response would be "well, you shouldn't have used it".
Originally posted by kubicle View PostThen I guess all the worries about software security can be thrown out the window, because there are users out there who have learned a lot by borking their systems.
Originally posted by kubicle View PostIt's most certainly not the same thing. With closed source software there is very little you can do about it, with open source software you can change it.
Originally posted by kubicle View PostYou can do what you want with it, you can even run a GUI file management app as root (even dolphin) if you wish to do so...no one is stopping you. You're probably right that there are users out there that want/need to be spoon fed, but that is quite frankly their problem.
Now, I do want to make sure that I'm not thought of as someone that has to be spoon fed, since I'm the major proponent on this. I've got cron jobs that I have to run due to the Wacom cintiq and how the new kernel does x or doesn't do x (and there are very few Cintiq users out there, so there isn't a quick good search for cintiqs specifically).
I don't mind the funky way of something small like getting translucent panels on Breeze Dark when despite all the available options that Plasma has, that isn't there (there may be a good reason for it, I haven't looked too much into that). I'm just point that out.
Originally posted by kubicle View PostWhen security issues are discovered, I'd expect the developers to try to mitigate them (even if they cannot be completely eradicated)...developers that prioritize software security are not going to keep insecure features just because it was there before.
Originally posted by kubicle View PostThen that percentage of the user base probably shouldn't be doing that. I'd rather prefer my OS to be developed for the smart users, not the laziest (or the most ignorant) ones. You preach that it is the users' responsibility how they use their software, but at the same time seem to be opposed of them having to actually learn how to do that. Besides, wouldn't those users "learn a lot" by mucking something up? (your words, not mine)
I think that's missing out on a user base that just wants to get "stuff" done. Some come to Linux to just install and run and get work done. I don't think there is anything wrong with that, but maybe I'm apart of that lazy/ignorant faction. I would like to think that the 5 hrs that it took for me to come up with 3 lines of code to handle my Cintiq issue would have precluded that (this is just one example) and that eats into my work and getting stuff done, but that just might go into that lazy/ignorant faction. I dunno. Tell me your thoughts on that?
While I don't consider scripting things out the ying yang to be hard core dev work, it does impede working efficiency when the user is just trying to get work done.
Originally posted by kubicle View Post
Really? The current way of running GUI file managent as root (even with dolphin) is "totally out there"?? Because you don't like how Krusader looks? Because running dolphin with pkexec is totally undiscoverable without 5 seconds of google searching? Because there are users out there that cannot be bothered to actually learn how to use their systems?
Originally posted by kubicle View Post
EDIT: I apologize if I come across as unnecessarily harsh. But for a software developer, there are very few things that are as tiresome as all the different variations of "you should do this because that is how I want it done (nevermind that I'm not the one who is paying your salary)".
- Top
- Bottom
Leave a comment:
Leave a comment: