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, 06:10 PM   #46
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,297

Rep: Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081

Quote:
Originally Posted by LuckyCyborg View Post
By absolute power I mean that me, as root, to have ability to use any resource (or program) of the operating system, even that results in its complete and unrecoverable damage. An absolute king of the OS.

When you partially deny those rights, the root become a kind of user with administration rights, just like in Windows.
Maybe it would be good to explain your theory to kde developers.
 
1 members found this post helpful.
Old 12-19-2017, 06:15 PM   #47
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
You know what? What he says is what happened on Slackware since its inception, 25 years ago.

The root was the "absolute king" in Slackware, even in the latest stable release.

Last edited by Darth Vader; 12-19-2017 at 06:17 PM.
 
Old 12-19-2017, 06:18 PM   #48
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Careless what others build and push. If you do not like their build. vim main.cpp.
All this over editing the main.cpp. Just set to user 9999. opensource for a reason.

Code:
mkdir build
cd build 
cmake .. 
make 
make install
life is good

The first thing I install is geany. great for developing.
 
Old 12-19-2017, 06:36 PM   #49
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 Drakeo View Post
Careless what others build and push. If you do not like their build. vim main.cpp.
All this over editing the main.cpp. Just set to user 9999. opensource for a reason.

Code:
mkdir build
cd build 
cmake .. 
make 
make install
life is good

The first thing I install is geany. great for developing.
That works well, specially if you have time to play those games. BUT some uses the OS to work.

And you know what is funny for things like this?

Code:
#ifndef Q_OS_WIN
    // Check whether we are running as root
    if (getuid() == 0) {
        std::cout << "Executing Dolphin as root is not possible." << std::endl;
        return EXIT_FAILURE;
    }
#endif
You can create thousand other users, with exactly root-alike rights, and this little crap will say nothing to them and Dolphin, Kate and Kwrite will run happily in a full access environment.

I should report the bug?
 
Old 12-19-2017, 06:37 PM   #50
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Quote:
Originally Posted by Darth Vader View Post
You have a Plasma 5 variant for grownups, please
Grownups don't run X as root.
 
8 members found this post helpful.
Old 12-19-2017, 06:43 PM   #51
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,297

Rep: Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081
Quote:
Originally Posted by Darth Vader View Post
You know what? What he says is what happened on Slackware since its inception, 25 years ago.

The root was the "absolute king" in Slackware, even in the latest stable release.
I use kwrite since kde1, so.....
 
1 members found this post helpful.
Old 12-19-2017, 06:50 PM   #52
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,605

Rep: Reputation: 3471Reputation: 3471Reputation: 3471Reputation: 3471Reputation: 3471Reputation: 3471Reputation: 3471Reputation: 3471Reputation: 3471Reputation: 3471Reputation: 3471
Quote:
Originally Posted by dugan View Post
Grownups don't run X as root.
Excuse me and my ignorance, but looks like that story has nothing to do with X, but rather, from what I read in the last hour, it is all about Wayland, which has no security concepts at all.

If you open an Wayland display and compositor as root, any Wayland client, with any user can connect to.

Last edited by LuckyCyborg; 12-19-2017 at 06:52 PM.
 
1 members found this post helpful.
Old 12-19-2017, 07:14 PM   #53
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
They have a kind of security policies in Wayland as a compositor plugin, it is called WSM https://github.com/mupuf/libwsm

BUT, the WSM is rather something like the Android policies, though...

Definitively, not a thing for a multi-user environment like the usual suspect Linux distribution, but for embedded devices market.

In fact even Wayland was made as a very lightweight X alternative for embedded devices.

Last edited by Darth Vader; 12-19-2017 at 07:19 PM.
 
2 members found this post helpful.
Old 12-19-2017, 08:33 PM   #54
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Richard Cranium View Post
Just as a guess, kate is a KDE application while vi and emacs are not.
Why they didn't block root access to konsole?
 
Old 12-19-2017, 09:55 PM   #55
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Alien Bob View Post
I think now you are the one who's insulting me. But hey, I know your posting history and remember you insulted the complete Slackware team for supposedly violating the GPL.
I can understand the logic behind browsing the filesystem as root, since that is basically not touching the filesystem and potentially creates better insight.
On the other hand, instructing me to apply a patch so you can use an effing graphical text editor as root, is bullshit. If you want to edit texts as root, use effing elvis.
Now, eff off.
You seem annoyed.
 
Old 12-19-2017, 09:56 PM   #56
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Teufel View Post
Why they didn't block root access to konsole?
How would they do that? Tell us.
 
Old 12-19-2017, 10:00 PM   #57
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by dugan View Post
Grownups don't run X as root.
Code:
$ ps -ef | grep X
root      2872  2860  3 Dec12 tty7     06:45:38 /usr/libexec/Xorg -br -novtswitch -quiet :0 vt7 -nolisten tcp -auth /var/run/xauth/A:0-DLtouc
Uh-oh.
 
1 members found this post helpful.
Old 12-20-2017, 12:32 AM   #58
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Richard Cranium View Post
How would they do that? Tell us.
By adding a snippet of code like this:

Code:
#ifndef Q_OS_WIN
    /**
     * 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 << "SUDO_EDITOR=kate sudoedit <file>" << std::endl;
        return 0;
    }
#endif
to main.cpp from "kde-apps/konsole" package
 
Old 12-20-2017, 12:46 AM   #59
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,456

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Also, I am contemplating removing the dolphin patch just to piss you off.
that's the spirit. You show 'em AlienBob!
 
Old 12-20-2017, 02:08 AM   #60
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 Teufel View Post
Why they didn't block root access to konsole?
Quote:
Originally Posted by Teufel View Post
By adding a snippet of code like this:

Code:
#ifndef Q_OS_WIN
    /**
     * 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 << "SUDO_EDITOR=kate sudoedit <file>" << std::endl;
        return 0;
    }
#endif
to main.cpp from "kde-apps/konsole" package
Because the Konsole developer happens to be another person, who figured out already that the Linux and BSD permissions are GROUP based, in a nutshell?

There is no such thing as USER EINZ in Linux (or BSD), but any member of the group "root" (and/or "wheel" in some implementations) has elevated access permissions, then go figure how much efficient is this code snippet.

Finally, to understand the epic fail of their approach at whole, imagine that while KWrite and Kate has access denied for root, the KDevelop works well, while it is basically a Kate in steroids with tons of extensions for developing, including abilities of scripting and executing even (remote) console commands.

Last edited by Darth Vader; 12-20-2017 at 03:20 AM.
 
  


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 12:52 AM.

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