[SOLVED] Plasma 5: Executing Kate as root is not possible? Eric, you are kidding, right?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Plasma 5: Executing Kate as root is not possible? Eric, you are kidding, right?
So, after myself having 20 years of Linux activity, that wonderful Plasma 5 try to give me lessons...
Dear Eric, I appreciate the joke, to note that even I laugh hard, but please be kind to show (at least to me) a Plasma 5 which does not try babysitting me!
You have a Plasma 5 variant for grownups, please?
Because I cannot use an operating system which has no functional Kate under root.
It is my editor of choice and usually I have in it opened projects having thousands files.
Last edited by Darth Vader; 12-19-2017 at 11:21 AM.
From 435ed5853b9451ab8fdfff722545c57a8f154625 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Sat, 18 Feb 2017 13:49:14 +0100
Subject: [PATCH] Defuse root block
While the main point is correct as any application running in the same
X session (not sandboxed) can use kate's capability to open a console,
we allow (even encourage) running YaST on X11 as root.
That way it's only an impact on usability.
---
kate/main.cpp | 3 +--
kwrite/main.cpp | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/kate/main.cpp b/kate/main.cpp
index 342cd5db3..4845646aa 100644
--- a/kate/main.cpp
+++ b/kate/main.cpp
@@ -64,9 +64,8 @@ int main(int argc, char **argv)
* Check whether we are running as root
**/
if (getuid() == 0) {
- std::cout << "Executing Kate as root is not possible. To edit files as root use:" << std::endl;
+ std::cout << "THIS IS POTENTIALLY INSECURE!\nTo edit files as root please use:" << std::endl;
std::cout << "SUDO_EDITOR=kate sudoedit <file>" << std::endl;
- return 0;
}
#endif
/**
diff --git a/kwrite/main.cpp b/kwrite/main.cpp
index 68a055edb..4937f72d3 100644
--- a/kwrite/main.cpp
+++ b/kwrite/main.cpp
@@ -54,9 +54,8 @@ extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
* Check whether we are running as root
**/
if (getuid() == 0) {
- std::cout << "Executing KWrite as root is not possible. To edit files as root use:" << std::endl;
+ std::cout << "THIS IS POTENTIALLY INSECURE!\nTo edit files as root please use:" << std::endl;
std::cout << "SUDO_EDITOR=kwrite sudoedit <file>" << std::endl;
- return 0;
}
#endif
/**
--
2.12.2
It is something else in Plasma which try to put me pampers?
Once you can make a bug report without being needlessly dramatic and calling people potentially insulting nicknames which you've made up, then Kate will no longer try to put you in Pampers. She told me so herself.
Just wondering why KDE devs decided that using kate is more danger than using vi or emacs?
Why these cli editors still allowed when kate is blocked?
In my opinion there are much more chances to damage system files when using emacs than when using kate.
BTW the same root blockage (in Gentoo) for kwrite and Dolphin.
Seems root shouldn't navigate over the filesystem...
@volkerdi, to note that "Nuclear Dutch" I do not think/consider it as a "potentially insulting nickname" but it is an appreciation nickname, being aware of his huge amount of work done, like he's nuclear powered.
And at least in Europe, we use to express our appreciation within nicknames too, since Medieval Age at least.
For example, somewhere I explained the differences between the "King Vlad III Dracula" (appreciation for his military performances, as in "son of a dragon") and "King Vlad III The Impaler" (bad fame referring to his favorite punishment)
Last edited by Darth Vader; 12-19-2017 at 01:11 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.