LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-19-2017, 11:18 AM   #1
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Talking 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.
 
Old 12-19-2017, 11:32 AM   #2
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,217

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
It's a choice of the dev of kate, i have a patch, if you want ?
 
Old 12-19-2017, 11:34 AM   #3
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Original Poster
Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
I will be glad you to show me that patch!
 
Old 12-19-2017, 11:36 AM   #4
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,217

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Code:
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

Last edited by gmgf; 12-19-2017 at 12:04 PM.
 
2 members found this post helpful.
Old 12-19-2017, 11:44 AM   #5
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,217

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
It's opensuse patch, but others distro use it
 
1 members found this post helpful.
Old 12-19-2017, 11:45 AM   #6
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Original Poster
Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Thanks, my friend!

BTW, you are kind to put that patch between [code] commands?

BUT, I got the idea. Now to find how I can rebuild that Plasma. At least for me.
 
Old 12-19-2017, 11:48 AM   #7
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Original Poster
Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by gmgf View Post
It's opensuse patch, but others distro use it
Thanks again!

And I believe that this patch should and must be applied also by our Nuclear Dutch, by default.

PS. See the [code] command from BBCODE. About that was my suggestion.

Last edited by Darth Vader; 12-19-2017 at 12:47 PM.
 
1 members found this post helpful.
Old 12-19-2017, 12:16 PM   #8
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Original Poster
Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
And that poor Plasma 5 still cries after the old ICU ...
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2017-12-19_20-15-24.png
Views:	397
Size:	109.9 KB
ID:	26556  
 
Old 12-19-2017, 12:39 PM   #9
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,217

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Yes, Eric has some work

just the Telepathy part who have problem
 
1 members found this post helpful.
Old 12-19-2017, 12:44 PM   #10
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Original Poster
Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
It is something else in Plasma which try to put me in pampers?

Last edited by Darth Vader; 12-19-2017 at 03:52 PM.
 
Old 12-19-2017, 12:48 PM   #11
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,217

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Quote:
Originally Posted by Darth Vader View Post
Thanks again!

And I think that this patch should and must be applied also by our Nuclear Dutch, by default.

PS. See the [code] command from BBCODE. About that was my suggestion.
Eric have applied the patch to dolphin (same root problem), but not to kate.

it's me, who told him where to find the two patch
 
3 members found this post helpful.
Old 12-19-2017, 12:56 PM   #12
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473
Quote:
Originally Posted by Darth Vader View Post
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.
 
25 members found this post helpful.
Old 12-19-2017, 12:56 PM   #13
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
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...

Last edited by Teufel; 12-19-2017 at 01:00 PM.
 
2 members found this post helpful.
Old 12-19-2017, 01:03 PM   #14
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,217

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Read this:

https://cgit.kde.org/kate.git/commit...c99f46b0e12a7e
 
3 members found this post helpful.
Old 12-19-2017, 01:04 PM   #15
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Original Poster
Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
@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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kate crashes whenever i su as root vitalstrike82 Slackware 4 01-29-2014 12:49 AM
LXer: Kate/KDevelop October Sprint: What's new in Kate LXer Syndicated Linux News 0 11-24-2012 10:20 PM
LXer: Getting Started With the Kate Text Editor: Kate For Coders LXer Syndicated Linux News 0 04-01-2009 11:40 PM
Kate Is Not Working, Kate editor is not starting in Redhat 9 apur Linux - General 4 05-11-2004 09:52 AM
Using Kate editor as root? guitarnix Linux - Newbie 3 09-18-2003 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration