LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-06-2019, 08:57 AM   #1
Teso
Member
 
Registered: Apr 2019
Posts: 63

Rep: Reputation: Disabled
Question KDE neon - How to edit display manager to login as root in GUI


H!@all
How to login as root in the Graphical User Interface (GUI)

Which Display Manager is using KDE neon GNU/Linux?
It is not LigtDM or DMG.
Wehre is the configuration file and what do i need to add to unlock the root?

I can login to the root account in GUI by switching the TTY (Ctrl+Alt+F2), login root and startx but this is like a hack.

Quote:
Operating System: KDE neon 5.15
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.0
Kernel Version: 5.0.0-custom
OS Type: 64-bit
Processors: 8 AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
Memory: 6,8 GiB of RAM
I already asked this question in an other forum and the answer was a question:
Quote:
Why do you want to login as root, to GUI? You can do everything as normal user with sudo. What are you trying to achieve?
My answer:
Quote:
Why do I have to justify myself for what I do on my own Computer?

Last edited by Teso; 04-06-2019 at 09:13 AM.
 
Old 04-06-2019, 09:29 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Hi teso, and welcome to LQ.

To be honest, that was a legitimate question you were posed by the person on the other forum. Often people ask questions which are not actually the question they need to be asking, and the poster in question was probably trying to understand why you were wanting to do what you wanted to do so that they could advise a safer solution. Running GUI programs as root is not advisable from a security point of view. Your answer was fairly rude, if you don't mind me saying, and I hope that such behaviour won't be repeated here.

The following should normally show the display manager:

Code:
cat /etc/X11/default-display-manager
 
Old 04-06-2019, 10:19 AM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Given you're running KDE Neon with obviously KDE, then I'd guess it's SDDM that's the display manager.

Quote:
Originally Posted by https://en.wikipedia.org/wiki/Simple_Desktop_Display_Manager
...
KDE chose SDDM to be the successor of the KDE Display Manager for KDE Plasma 5.
...
 
Old 04-06-2019, 05:27 PM   #4
Teso
Member
 
Registered: Apr 2019
Posts: 63

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Hi teso, and welcome to LQ.
Thank you!

Quote:
Originally Posted by hydrurga View Post
the poster in question was probably trying to understand why you were wanting to do what you wanted to do so that they could advise a safer solution.
I just want to delete, move and create files in the File-Explorer because it's easier, faster and safer than in the command line.

Quote:
Originally Posted by hydrurga View Post
Your answer was fairly rude, if you don't mind me saying
Sorry

Quote:
Originally Posted by hydrurga View Post
I hope that such behaviour won't be repeated here.
No

Quote:
Originally Posted by hydrurga View Post
Code:
cat /etc/X11/default-display-manager
Thank you!

Output
Code:
/usr/bin/sddm
Quote:
Originally Posted by jsbjsb001
I'd guess it's SDDM that's the display manager
RIGHT


How do I edit SDDM?
Where is the config file and which command do I need to add to the config file to unlock tho root login
 
Old 04-06-2019, 05:58 PM   #5
Teso
Member
 
Registered: Apr 2019
Posts: 63

Original Poster
Rep: Reputation: Disabled
Example (extracting Linux-Kernel in to /usr/src/ for compiling)

Command-Line:

Code:
cd /usr/src/
Code:
xz -cd /home/USER/Downloads/linux-5.0.6.tar.xz | tar xfv -

File-Explorer

Click image for larger version

Name:	Screenshot_1.png
Views:	116
Size:	156.4 KB
ID:	30253

So much easier, safer and faster.
I accidentally unpacked a File into the wrong Folder because I forgot cd /xxx/xx... This cannot happen in File Explorer.
 
Old 04-06-2019, 06:42 PM   #6
Teso
Member
 
Registered: Apr 2019
Posts: 63

Original Poster
Rep: Reputation: Disabled
It's off-topic, but i want to make it clear. Im not using Windows like it shows up in the corner of the trade (Windows 10 logo). I just changed my User-Agent

Click image for larger version

Name:	Screenshot_2.png
Views:	72
Size:	198.0 KB
ID:	30254

Last edited by Teso; 04-06-2019 at 06:45 PM.
 
Old 04-06-2019, 07:00 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,522

Rep: Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147Reputation: 2147
Gurus: Isn't there a way to open File Manager as root without logging on to the GUI as root?
Wouldn't that be the safer way to go?
That way the OP wouldn't be running a web browser as root, for example, which is a really bad idea, IMO.

On my Cinnamon desktop, in Files (Nemo), a right-click and selecting Open As Root will prompt for the root password, then open a new instance of files with root privileges. OP: would that work for you?

Ahh. I see you're using Dolphin...looking to see if that's possible in Dolphin...
Edit: Not finding that capability there, but it does appear to be in Konqueror. At least there's a section of the help file about Konqueror in superuser mode.

Last edited by scasey; 04-06-2019 at 07:14 PM.
 
Old 04-07-2019, 12:46 AM   #8
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 4,233
Blog Entries: 1

Rep: Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437
Quote:
Originally Posted by hydrurga View Post
The following should normally show the display manager:
Code:
cat /etc/X11/default-display-manager
That is a Debian thing, not universal, not in e.g. openSUSE or Fedora, but expected in Neon as in other Debian derivatives.

Teso, try installing and using MC instead of Dolphin. You can run it in a root Konsole or su - in Konsole, or in an XTerm, or in a vtty, besides directly from Plasma's menu starter (though not as root without special menu configuration). You can search for sddm with it, view it with it, and edit it with it, among many other things other file managers can't do.
 
Old 04-07-2019, 01:48 AM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by Teso View Post
I just want to delete, move and create files in the File-Explorer because it's easier, faster and safer than in the command line.
Thanks, Teso. In that case there's no need to log in as root, you just need to log in as user and launch the file manager as root. I do this from time to time too when I have a lot of system-related file management work to do. My system is Mint 19.1 MATE which uses the Caja file manager so I merely use sudo caja to do the job, even though it's not the perfect way to do things.

There was an issue for a while that the KDE developers wouldn't allow Dolphin to run as root but as far as I know that restriction has been relaxed now. If it still affects you though, see https://www.dedoimedo.com/computers/...n-as-root.html
 
Old 04-07-2019, 01:53 AM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by Teso View Post
It's off-topic, but i want to make it clear. Im not using Windows like it shows up in the corner of the trade (Windows 10 logo). I just changed my User-Agent
I don't think many people will attach any importance to that logo - I certainly don't as people on here often have mixed systems including Linux, Windows, Mac, Android and others, and may use any one of these to connect. In my book, you use whatever you need to get the job done.

Out of interest though, why have you changed your user agent? Are there particular sites you use that don't play ball if they know you have a Linux system behind the browser?
 
Old 04-07-2019, 04:37 AM   #11
Teso
Member
 
Registered: Apr 2019
Posts: 63

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Gurus: Isn't there a way to open File Manager as root without logging on to the GUI as root?
NO
Command-Line as SuperUser su
Code:
su
dolphin
Quote:
#dolphin
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
"Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)"
Command-Line as User with sudo
Code:
sudo dolphin
Quote:
Executing Dolphin with sudo is not possible due to unfixable security vulnerabilities.
Dophin works in root account
Click image for larger version

Name:	Dolphin-root.png
Views:	46
Size:	136.0 KB
ID:	30259

Quote:
Originally Posted by mrmazda View Post
try installing and using MC instead of Dolphin.
I have it installed already, but this is not what I want and Dolphin is not the only reason for the use of root account.
Previously, I used elementery-OS and installed Dolphin on it, but it doesn't work properly, error Messages, Crashes, no Directory preview...
That's why I have installed KDE-neon and don't want to use any other File-Browser.
I didn't install KDE-neon just because of Dolphin. I love the KDE-Desktop-Cube, Video-Wallpaper and lots of other KDE Stuff.
Click image for larger version

Name:	Screenshot_3.jpg
Views:	41
Size:	76.9 KB
ID:	30260
I just liked to have a nice coordinated and organized operating system.
And even if I would never use the root account because 3D and therefore KDE-Desktop-Cube doesn't work, I still want to have the opportunity to log in as root, just because that's my Computer and I do what I want to do with my Computer.


Quote:
Originally Posted by hydrurga View Post
In that case there's no need to log in as root
Yaa... that's the answer i was looking for.
What is the point keeping me up of using the root account?
This is my Computer, if i brake the system is my problem.


Quote:
Originally Posted by hydrurga View Post
Are there particular sites you use that don't play ball if they know you have a Linux system behind the browser?
No, just for annonyality.
Google is spying at you, Google knows you'r favorite por** and Google sells this knowledge to everyone.
As long as I don't get paid, Google doesn't get any information from me. Google will never pay...

---EDIT---

I do not use Google, I use DuckDuckGo

Last edited by Teso; 04-07-2019 at 04:42 AM.
 
Old 04-07-2019, 05:01 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by Teso View Post
Yaa... that's the answer i was looking for.
What is the point keeping me up of using the root account?
This is my Computer, if i brake the system is my problem.
Absolutely. That doesn't stop people advising you that running your desktop as root is not a good idea. It would be remiss of folk not to point this out in case other people in the future read this thread and think of doing the same thing. It is always useful to advise folk of risk.

Quote:
Originally Posted by Teso View Post
No, just for annonyality.
Google is spying at you, Google knows you'r favorite por** and Google sells this knowledge to everyone.
As long as I don't get paid, Google doesn't get any information from me. Google will never pay...
Setting your user agent as Windows or Linux doesn't affect whether Google tracks your browsing habits or not, unless you're worried that so few people use Linux that Google will be able to pinpoint you.
 
Old 04-07-2019, 05:51 AM   #13
Teso
Member
 
Registered: Apr 2019
Posts: 63

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
running your desktop as root is not a good idea.
WHY?


Quote:
Originally Posted by hydrurga View Post
It is always useful to advise folk of risk.
I know the risks. Can i use the root account on my own risk plz..


Quote:
Originally Posted by hydrurga View Post
Setting your user agent as Windows or Linux doesn't affect whether Google tracks your browsing habits or not
Im connected over The Onion Roter and have a lot of stuff to not be tracked. All my Browser information's are fake and changing every 5 minutes as well as my IP-address an my MAC-address, all fake and temporary. I have a Firewall whit only two, (yes "2") open ports, all the data gets encrypted through a local proxy-sever (TOR), sendet out to many other routers, coming out somewhere in the world, gets the Web-Side i asked for and brings it the same way back to me.

Click image for larger version

Name:	Tor.png
Views:	33
Size:	41.1 KB
ID:	30261
 
Old 04-07-2019, 06:02 AM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by Teso View Post
WHY?
Security.

https://askubuntu.com/questions/1617...log-in-as-root

Quote:
Originally Posted by Teso View Post
I know the risks. Can i use the root account on my own risk plz.
Did you not read my previous post when I mentioned that all I and others are doing is pointing out the risks. You are free to use your system as you see fit.

Also, if you "know the risks", why did you ask me "Why?" in the first question. That makes no sense.

Look, you're now making more of this than you need to. You've been warned of this risks, now just get on with trying to research how to log on in KDE Neon as root.
 
Old 04-07-2019, 06:18 AM   #15
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 4,233
Blog Entries: 1

Rep: Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437
Quote:
Originally Posted by Teso View Post
NO
Command-Line as SuperUser su
Code:
su
dolphin
Code:
su -
dolphin
Quote:
I have [mc] installed already, but this is not what I want...
How long did you spend to make that determination? If less than a week, or even a month, I can understand the reluctance. Did you know either pane can be the entire width of the screen or window? I began about 33 years ago, with NC 1.0, knowing of no alternatives in DOS other than pure command prompt. Once I actually spent enough time with it to grasp its power, I found myself painfully hampered anywhere I couldn't have it. I didn't use OS/2 much until I found a clone of NC for it (FC/2). I stuck with OS/2 entirely exclusive of Windows for around decade, in part because I didn't find a free clone of NC for Windows until long after I became entrenched in OS/2. In MC delete by default means delete, not hide in trash, not freeing disk space. Meanwhile, I found MC and later FC/L on Linux, enabling me to spend more time in Linux and eventually migrate into it as primary OS, never more than dabbling with Windows.

OTOH, I've never purposely opened Dolphin on any of my own puters. The combination of MC and FC/L get my file editing, viewing, copying archiving, searching, unpacking and more done easily and reliably without a mouse or having to remember whether or when DND means move or copy. It's like people say about Slack, once you get it, you can't go back.

Quote:
I do what I want to do with my Computer.
Me too!

Quote:
This is my Computer, if i brake [sic] the system is my problem
Exactly! Lectures about how not to use my puters I find at least as rude as any comments you made in this thread that others openly chastised you for, particularly when they occur without any apparent attempt to answer any question asked.

Quote:
I do not use Google, I use DuckDuckGo
I use both. Google painfully often provides answers that DDG does not, and provides some handy time constraints on the left side, while DDG makes each hit entirely a link, so that copy & paste from its summaries is impossible absent heroics.
 
  


Reply

Tags
kde


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Cannot Update KDE Neon or Reinstall KDE Neon or Linux Mint goatchaser Linux - Newbie 3 12-29-2017 01:04 PM
LXer: KDE Neon Linux Developer Edition to Use Wayland by Default for KDE Plasma 5.8 LXer Syndicated Linux News 0 09-07-2016 05:03 AM
LXer: KDE Plasma Wayland Image Now Built on KDE Neon Infrastructure, Qt 5.7 Is Coming LXer Syndicated Linux News 0 07-05-2016 12:36 AM
LXer: conf.kde.in: Project Neon Returns With Bleeding Edge KDE Software LXer Syndicated Linux News 0 03-11-2011 05:41 PM
neon-0.26.4 vs neon-0.27.3 rob.til Slackware 0 08-30-2008 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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