![]() Now you can look at the file with gedit ~/kate.txt, and if you search for getuid, you'll find something like: 2a985: 31 c0 xor %eax,%eaxĢa987: 89 bc 24 dc 00 00 00 mov %edi,0xdc(%rsp) Objdump -Crd /usr/bin/kwrite > ~/kwrite.txt If (getuid() = 0) // uid = user id = 0 => means if you are user 0 (aka root) In the first lines of code directly at the start of the "main" function, you’ll find: /** Just look at the source code of kate and kwrite: diff -git a/kate/main.cpp b/kwrite/main.cpp What also works is konsole -e sudo krusader, but that shows the terminal instead of a gui for the password prompt. Name=Open in Krusader file manger as administratorįor some reason kdesu krusader doesn't work, and I have used the solution from here. To add a context menu in dolphin, create the folder ~/.local/share/kservices5/ServiceMenus and then do kate ~/.local/share/kservices5/ServiceMenus/filemanager_sktopĮxec=/usr/lib/kde4/libexec/kdesu krusader Under its Tools it has the "Root" option. I have found that Krusader (which I think in the past used to be installed by default in some KDE systems) can be easily installed, brings no dependencies in Kubuntu 18.04, and can be used as root. If you need one of those for some other purpose adding that one could be a good solution. The main file managers of other desktops can be used (Nautilus, Nemo, Caja, Thunar) but they do bring some dependencies. Install another file manger that doesn't have that limitation and that doesn't bring a lot of dependenciesĬreate an "Open as root" context menu in Dolphin for this other file manager. Not an answer, just a workaround for the purpose mentioned by the OP ( copying or deleting files). When it is ready the Dolphin will show the password query if needed. KDE Reddit - Dolphin root on KDE App 17.04 : īypass "Executing Dolphin as root is not possible" and Regain KDE Dolphin Root Privileges: Kate/9adcebd3c2e476c8a32e9b455cc99f46b0e12a7e which was written byĭisallow executing kate and kwrite as root on Linux: More: KDE Foruns - How to run Dolphin 18.08 as root with Kubuntu or KDE neon? - Įarlier - KDE Forums - How to run Dolphin as root?: įor the security reasons: Disallow executing Dolphin as root on Linux - ĭisallow executing Dolphin as root on Linux Basically a copy of commit ![]() pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin Show a warning when running as the root user: ĭolphin 18.08.0 is using these changes and the Dolphin can be launched with the pkexec command as the administrative super user. Re-allow running Dolphin as the root user (but still not using sudo): You could edit the sources and disable the check. "Security improvements to tools like this will have an outsized impact on the entire industry.The Dolphin 17.04 or later has a check: if uid = 0 then show the "Executing Dolphin as root is not possible." and exit. "The sudo utility is a perfect example of a security-critical tool that's both pervasive and under-appreciated," said Dan Lorenc, CEO and co-founder at Chainguard, in a statement. It has also led to the development of a test suite that has helped spot bugs in the original C implementation, created around 1980 by Bob Coggeshall and Cliff Spencer from SUNY/Buffalo and presently maintained by Todd Miller.Ĭhainguard, which makes a container-focused Linux distribution called Wolfi, has incorporated sudo-rs into its images. The sudo-rs revision, Aas said in a blog post, omits less commonly used features to reduce the attack surface of the software. Fed up with Python setup and packaging? Try a shot of Rye.Rust Foundation so sorry for scaring the C out of you with trademark crackdown talk. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |