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 02-19-2024, 12:16 AM   #166
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,614
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460

Quote:
Originally Posted by enorbet View Post
Why specifically disallow root access? Granted it might be a bit better if while running Dolphin as User and seeking to edit a protected file a login screen would pop up for permission, but frankly I don't see much difference between that and allowing su or sudo in a terminal within X or Wayland. So what's the big deal?
I was once told that you can use sudo in a terminal on a simple desktop but not (safely) in a DE, because it exposes your environment to root, including XDG variable names for some essential authorisation files. If those files accidentally get transferred to root's ownership, you won't be able to use X as yourself any more unless you hunt down the errant files and delete them. istr that actually happened to me once.

Apparently gksudo and kdesudo contain specific code to prevent that from happening. They are not just sudo with pretty graphics.
 
1 members found this post helpful.
Old 02-19-2024, 01:21 AM   #167
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
Quote:
Originally Posted by enorbet View Post
Re: Running X as root

I beg to differ. Racing on narrow, congested streets is a guaranteed high risk open for numerous instances of Chance and Happenstance, not to mention law enforcement, but running X as root with networking disabled poses no serious risk for such an isolated PC. Furthermore I have yet to see how having that option places anyone who doesn't use it at risk. QED - no risk.
What you miss here is very well written in the story of nuclear program of Iran, called stuxnet. Those nuclear centrifuges were much more protected than anything you have, they were permanently disconnected from the "outside" net, but they were still destroyed.
That happened more than 10 years ago, believe me, they have much better tools now (to collect your sensitive data).
 
Old 02-19-2024, 10:42 PM   #168
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,787

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Quote:
Originally Posted by pan64 View Post
What you miss here is very well written in the story of nuclear program of Iran, called stuxnet. Those nuclear centrifuges were much more protected than anything you have, they were permanently disconnected from the "outside" net, but they were still destroyed.
That happened more than 10 years ago, believe me, they have much better tools now (to collect your sensitive data).
Stuxnet's introduction into Iran's nuclear facility is uncertain but the 2 most commonly considered sources, are firmware in servos and insider penetration via a flash drive. In short, I'm not missing this at all. I am dead certain considerable of my data is mined. I am almost equally certain nobody is taking control of my PCs... my phone, maybe, but I go to great lengths to isolate my phone from my PCs.
 
Old 02-19-2024, 11:22 PM   #169
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
There was some software like spss for linux that required a gui and root access for installation.
Wayland seems to offer little and take away much.
 
Old 02-20-2024, 12:33 AM   #170
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 980

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by Regnad Kcin View Post
There was some software like spss for linux that required a gui and root access for installation.
Wayland seems to offer little and take away much.
The fact that root sometimes might benefit from running a graphical X application does not necessarily mean that root has to run the X server. It is possible to login as a normal user and start X, then in a terminal window like xterm do "su" or "ssh root@localhost" and then start some graphical X application as root.

regards Henrik
 
1 members found this post helpful.
Old 02-20-2024, 02:41 AM   #171
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,787

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Geez! I surely didn't want to open such a can of worms over simple root permissions in X, so here goes:

OK I want to see it. Did Wayland devs have ANY evidence of the number of documented cases of security breaches due to running X as root, or did it just suit their workflow preferences/prejudices and figured nobody would mind?
 
Old 02-20-2024, 04:50 AM   #172
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
Quote:
Originally Posted by enorbet View Post
Geez! I surely didn't want to open such a can of worms over simple root permissions in X, so here goes:

OK I want to see it. Did Wayland devs have ANY evidence of the number of documented cases of security breaches due to running X as root, or did it just suit their workflow preferences/prejudices and figured nobody would mind?
why do you think it can be documented. Most of the cases are simply not detected at all, just your email, money, whatever is stolen and you have no any idea how did it happen.
Closing potential security gaps reduces the risk. It is that simple. Ignore it at your own risk.
 
Old 02-20-2024, 02:04 PM   #173
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
https://www.theregister.com/2018/10/...vulnerability/
https://cve.mitre.org/cgi-bin/cvenam...CVE-2018-14665

Since I only looked for 1 second to find this 2018 trivial to exploit issue, obviously a serious review of the historical and current CVEs will result in a complete answer to the question.

Unfortunately, there's a reality that when the core primary dev stops working at all on the project, which is what happened when the main X.org dev moved to only working on Xwayland, no magical code events occur. Slow, gradual degradation of the codebase, possibly new exploits that required a serious refactor to resolve, begin to go unresolved since there are simply no competent devs who are doing that work anymore.

So it's not like X.org is going to remain static and fine through the future, it's going to drift into what is called 'code rot', a term I used to reject totally since my view was code can't rot, until I started seeing it happen on my own large codebases.

Those are small errors that appear when you innocently are working on some other feature, and simply don't realize you also accidentally impacted some other part, without realizing you did it at all, or underlying bits and pieces hitting issues with Linux kernel drivers changing subtly or not so subtly, thus breaking X.org display drivers.

I'm 100% in the camp that wishes this were not the case, and as with many, Wayland compositors do not solve any problem I have ever had, and also fail to be noticeably better in any area, for me, they are worse, in VirtualBox, wayland compositors are radically more unstable than X.org display server driven desktops and window managers, which for me matters a lot re testing and development, so I'm not a fanboy for wayland, just someone who is trying to be realistic about what to expect as dev hours decline, and more important, as dev talent and experience starts to vanish.

I have always been struck by just how much damage an unskilled / inexperienced dev can do to a codebase in such a short time, and thinking that X.org will be exempted from that issue is not realistic.

I won't name names, but I've been watching this bit rot and dev skill drain in a well known distribution for many years now, and it's gotten to the point where I no longer actually support it, unless its' an easy fix. As with future X.org users unsure why bugs don't get fixed, etc, this distribution's users seem unaware of what happens when you suffer this long term degradation. The actual name of it doesn't matter, it's just a demonstration that bit rot is real, dev talent drain is real, and once a project hits a critical level these issues start to get quite serious.

As an aside, for a few months now, with new kernels (Liquorix) and fairly current desktops (Xfce) I've been starting to see display corruptions in Thunderbird and one or two other programs, which I believe means GTK corruption, and that's the kind of issue you'll be seeing more and more of.

As Qt and Gtk move increasingly to Wayland compositor support primarily, the dev manhours/eyeballs will shrink for the x11 compositor/window managers, and you'll see more and more "won't fix" in valid bug reports because there's no devs who want to do that work, or who get paid to do it.

I was somewhat, for example, shocked, when mrmazda, who does a lot of display and desktop support here on linuxquestions, told me that fedora isn't even shipping X.org 1.21, they are shipping... 1.20, which means, they don't even care to get the latest bug fixes at all, they aren't allocating any resources to X.org at all, not even to the point of packaging the current release. I had a hard time believing this was the case, but mrmazda showed me, Fedora 40 has 1.20, I think, I know 39 does, and that X.org is I think over 2 years old now.

So unless a serious organized effort rises to fork/maintain X.org, it's not going to happen. As someone noted, the X devs put out a call to get volunteers for 1 or 2 years to maintain X.org, and got zero, no, results. Which is I think when they decided probably to let it die, and start working on the wayland protocol full time.

I'm writing this partially for myself, since I, like Garth of Wayne's world, fear change, and in particular, I fear breaking changes that do nothing to improve my actual workflow.

If I were to be objective however, I'd guess the biggest complaint users have, losing network transparency, and thus, losing x11 over network, client / server situations, is probably the least realworld important of all the objections, and the easiest to adapt ones workflow around.

I worry much more about stuff just not working, or being buggy, breaking, failing, in normal use.

But the more of your programs that use current Gtk and Qt, the fewer issues you should see I believe.

Last edited by h2-1; 02-20-2024 at 04:00 PM.
 
3 members found this post helpful.
Old 02-20-2024, 02:56 PM   #174
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by h2-1 View Post
If I were to be objective however, I'd guess the biggest complaint users have, losing network transparency, and thus, losing x11 over network, client / server situations, is probably the least realworld important of all the objections, and the easiest to adapt ones workflow around.

I worry much more about stuff just not working, or being buggy, breaking, failing, in normal use.

But the more of your programs that use curernt Gtk and Qt, the fewer issues you should see I believe.
So far that has been the only mantra about not letting go of xorg. I personally just do not care about it - it is at best in my view a niche thing, and having a network-aware display has never come up. I again can just point to RDP or VNC if you need something similar, but again like that retrobytes video also pointed out, the days of running a display like the days of VAX is over. If Wayland is more secure for not having this feature, then I am all for it - and again it is not like any distro that I have seen is going to pull an OpenBSD and try to fork xorg a.k.a xenocara with least privileges for xorg.

I also have wanted to dabble into a rootless xorg; but it seemed more of a PITA to try to accomplish and would end up breaking DRI/DRM with NVIDIA. The writing is on the wall for xorg as you pointed out, nobody is working on it anymore and not even for security updates - so fedora being bleeding edge makes sense for it to ditch it - so in a way im glad we have fedora, let them bite the bullet first , so we can benefit later on - joking aside though, while I can sympathize with Garth, I also don't like change - but I also never ran into a usecase where I needed the 'advantages' of xorg and having network aware display. Chances are most here probably don't either; and I am going to stubbornly point to RDP or VNC, we have that - sure it might not be like xorg, but oh well it is what it is.

Last edited by Jeebizz; 02-20-2024 at 02:58 PM.
 
Old 02-20-2024, 03:52 PM   #175
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Don Hopkin's account of the X-Windows horror show is an interesting read...
https://donhopkins.medium.com/the-x-...r-128d398ebd47
 
1 members found this post helpful.
Old 02-20-2024, 04:21 PM   #176
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by ferrari View Post
Don Hopkin's account of the X-Windows horror show is an interesting read...
https://donhopkins.medium.com/the-x-...r-128d398ebd47
Good read to be honest, I should re-read the UNIX Hater's Hanbook again - rather entertaining read
 
Old 02-21-2024, 05:27 AM   #177
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Quote:
Originally Posted by enorbet View Post
Geez! I surely didn't want to open such a can of worms over simple root permissions in X, so here goes:

OK I want to see it. Did Wayland devs have ANY evidence of the number of documented cases of security breaches due to running X as root, or did it just suit their workflow preferences/prejudices and figured nobody would mind?
Actually, despite Xorg being root capable, there are very few serious issues such as that, at least known issues, which pretty much means the internal Xorg security model was quite well functional.
 
Old 02-21-2024, 12:08 PM   #178
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
ferrari, that's a good read, thanks. Will have to go over that one a few times to get the timelines and details better.
 
Old 02-21-2024, 12:55 PM   #179
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 787

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by ferrari View Post
Don Hopkin's account of the X-Windows horror show is an interesting read...
"Marus J. Ranum" of DEC. Guess what DEC shipped as a GUI for VMS? DECwindows, which was based on ... (you guessed it). X11R4 is old, and X has updated much since then while still keeping it interoperable with older versions. As I stated previously, I'd be OK to switch, but Wayland takes my tool box, turns it upside down, and dumps everything out. Neither Xv nor ImageMagick work properly anymore, so I had to set up grim (which curiously requires slurp, a separate utility, to find a window region) for screen shots. x3270's keyboard window keeps overlapping the main window when you move it, even if you move it away. 50/50 whether an application works correctly with Xwayland. A large around of applications are going to have to be re-written. Do people realize this? If there's already a lack of devs, who is going to rewrite all that?

One thing I like most about Xwindow, and Linux in general, is the user gets the power to do what he wants. If I want to get a GUI login from a Sun SPARC box over the network, I can. You're not getting ssh, let alone RDP/VNC to work on that. Now, it looks (figuratively and literally) like Linux is becoming Mac OSX. Did you notice how fast they drop stuff deemed to be old? Try to find a command line ftp client. A family member's machine didn't even have an ethernet port (only wireless) nor an optical drive on a desktop PC.

If we are to follow the "that's old no one needs that anymore" argument to its logical conclusion, we could rip out 80% of Linux and we'd all be using LinuxQuestions app on our lastest Apple iPhone.
 
1 members found this post helpful.
Old 02-21-2024, 02:22 PM   #180
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Quote:
Originally Posted by jayjwa View Post
"Marus J. Ranum" of DEC. Guess what DEC shipped as a GUI for VMS? DECwindows, which was based on ... (you guessed it). X11R4 is old, and X has updated much since then while still keeping it interoperable with older versions. As I stated previously, I'd be OK to switch, but Wayland takes my tool box, turns it upside down, and dumps everything out. Neither Xv nor ImageMagick work properly anymore, so I had to set up grim (which curiously requires slurp, a separate utility, to find a window region) for screen shots. x3270's keyboard window keeps overlapping the main window when you move it, even if you move it away. 50/50 whether an application works correctly with Xwayland. A large around of applications are going to have to be re-written. Do people realize this? If there's already a lack of devs, who is going to rewrite all that?

One thing I like most about Xwindow, and Linux in general, is the user gets the power to do what he wants. If I want to get a GUI login from a Sun SPARC box over the network, I can. You're not getting ssh, let alone RDP/VNC to work on that. Now, it looks (figuratively and literally) like Linux is becoming Mac OSX. Did you notice how fast they drop stuff deemed to be old? Try to find a command line ftp client. A family member's machine didn't even have an ethernet port (only wireless) nor an optical drive on a desktop PC.

If we are to follow the "that's old no one needs that anymore" argument to its logical conclusion, we could rip out 80% of Linux and we'd all be using LinuxQuestions app on our lastest Apple iPhone.
All those apps are pulling users away from Windows and Mac, so they must be Exterminated!
 
  


Reply

Tags
kde, xorg



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
LXer: Save development time and effort with Ruby LXer Syndicated Linux News 0 04-07-2016 08:21 AM
LXer: Mutter Wayland 3.11.2 Now Syncs Keymap from X.Org to Wayland LXer Syndicated Linux News 0 12-04-2013 02:15 AM
Problem: xorg 1.7.7 on Mandriva 2010.2 / ATI X600: X11 crashing or slowing down grover Linux - Software 10 06-16-2011 01:46 AM
Future !X ? Wayland : X - what is wayland? serafean Linux - General 5 03-04-2011 11:09 AM
LXer: Is Linux Kernel Development Slowing Down? LXer Syndicated Linux News 0 12-02-2010 03:40 AM

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

All times are GMT -5. The time now is 06:23 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