LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-14-2022, 11:49 AM   #1
SuSE_Lamer
Member
 
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 169

Rep: Reputation: 16
Question openSuse Thumbleweed: XSession disabled


Hello,
perhaps, this question is not new and was already relied here, but I could not find correct answer. I installed "Thumbleweed", my user has administrative privileges. When I try to log in into Plasma, I get this message - s. attached photo.

I found some hints about shells, about allowing local login for root-user (file dispplaymanager in etc), but nothing helped. Can anyone give me a hint how to resolve this problem?

Best regards,
Andrey
Attached Thumbnails
Click image for larger version

Name:	14082022448.geaendert.jpg
Views:	28
Size:	146.0 KB
ID:	39392  
 
Old 08-14-2022, 02:08 PM   #2
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
Its not recommended to login as root in the graphical session, try a "normal" User.
 
Old 08-14-2022, 06:56 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,804
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
If you absolutely must login as root for an X session, beware you are inviting trouble. Try logging in on one of the vttys, then run startx. Do what you need to do expeditiously, then log out, and don't try to access the internet with a web browser.
 
Old 08-14-2022, 09:21 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
About the ONLY time i login as root into the KDE Desktop( GUI) is on the initial set up after a new install .
as per the above posts USE EXTREME CAUTION!!!!!!
 
Old 08-15-2022, 12:02 AM   #5
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
https://en.opensuse.org/SDB:Login_as_root
 
Old 08-16-2022, 01:04 AM   #6
SuSE_Lamer
Member
 
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 169

Original Poster
Rep: Reputation: 16
Hello,
I know about a special role of "root" user, but at the present I have only 1. So, I need to login to create a new one. And Linux Mint and Ubuntu allow "root" login without problems, why does Suse make a trouble of it?

@Sauerland: thanks for the link, I will try it...
 
Old 08-16-2022, 11:08 AM   #7
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
You do not need to login as root, you can use kdesu and su -l for switching to root.
 
Old 08-16-2022, 11:19 AM   #8
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546

One cannot use kdesu or su commands if one cannot login in the first place.

Post #6 suggests there is a single user - i.e. the issue is that no regular user was created at installation time, and that now needs to be rectified.

It is not necessary to login via GUI to create a user. Press Ctrl-Alt-F1 to get a terminal login screen, login there as root and create the new user, then Ctrl-Alt-F7 to return to the GUI login screen and use the newly created non-root credentials.

 
Old 08-16-2022, 11:33 AM   #9
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
One cannot use kdesu or su commands if one cannot login in the first place.

Post #6 suggests there is a single user - i.e. the issue is that no regular user was created at installation time, and that now needs to be rectified.

It is not necessary to login via GUI to create a user. Press Ctrl-Alt-F1 to get a terminal login screen, login there as root and create the new user, then Ctrl-Alt-F7 to return to the GUI login screen and use the newly created non-root credentials.

Login at Runlevel 3 (multi-user.target) as root and use
Code:
useradd
see
Code:
man useradd
and
Code:
useradd --help
 
Old 08-16-2022, 11:38 AM   #10
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
You can also use yast in Runlevel3 by login as root and:
Code:
yast
 
Old 08-16-2022, 06:58 PM   #11
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,804
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by boughtonp View Post
...Press Ctrl-Alt-F1 to get a terminal login screen, login there as root and create the new user, then Ctrl-Alt-F7 to return to the GUI login screen...
Be careful you don't respond this way to a Fedora/GDM/Gnome user or Mageia/GDM/Gnome user, and probably also don't for GDM/Gnome on other distros, and maybe simply GDM users of any DE. Poettering/Fedora/GDM/Gnome moved X default to vtty1, and for some purposes also vtty2. Vtty1 has nuanced differences from the rest, which is why I never type Ctrl-Alt-F1 in instructing anyone to reach a vtty.
 
Old 08-17-2022, 08:05 AM   #12
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Quote:
Originally Posted by mrmazda View Post
Be careful you don't respond this way to a Fedora/GDM/Gnome user or Mageia/GDM/Gnome user, and probably also don't for GDM/Gnome on other distros, and maybe simply GDM users of any DE. Poettering/Fedora/GDM/Gnome moved X default to vtty1, and for some purposes also vtty2. Vtty1 has nuanced differences from the rest, which is why I never type Ctrl-Alt-F1 in instructing anyone to reach a vtty.
That's a rather confusing way to say what I think you're saying.

This is an openSuse question in the openSUSE section, and I was quoting the OpenSuse documentation provided in post #5 which specifically recommends 1 over 2..6

I know it varies, and so make more general remarks in other situations, but assumed it was by distro rather than DM - would be helpful if there was a clear reference.

 
Old 08-20-2022, 01:03 AM   #13
SuSE_Lamer
Member
 
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 169

Original Poster
Rep: Reputation: 16
Hello everyone,

I could create new user using "useradd" and then changing a password (by the way, what is default password in openSuse, if any exists?). Then I logged in into KDE and in Yast user management I saw, that my original user "Benutzer1" (which is not root, but has administrative privileges) hast no standard group assigned. can this be a reason for denying him an XSession? I mean, it is clear that "root"-user should be restricted. But if I have an ordinary user who just hast higher rights (even this user must enter password for critical actions), why should he be restricted too? And, as I said, Ubuntu and Mint use same way, and their "Administrator"-user can login using Gnome or Cinnamon or KDE.

Regards,
Andrey
 
Old 08-20-2022, 01:22 AM   #14
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,804
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by SuSE_Lamer View Post
what is default password in openSuse, if any exists?
The "default" password is whatever you provided during installation. Without one, installation will not proceed. If you forgot what it is, you can boot rescue media, chroot into the installed system, which provides you root power, and enables you to simply execute passwd to create a new one. Your original root password could be the same one that you've needed for admin privileges.
 
Old 08-21-2022, 12:23 PM   #15
SuSE_Lamer
Member
 
Registered: Nov 2004
Location: Hamburg/Germany
Distribution: Debian 10
Posts: 169

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by mrmazda View Post
The "default" password is whatever you provided during installation. Without one, installation will not proceed. If you forgot what it is, you can boot rescue media, chroot into the installed system, which provides you root power, and enables you to simply execute passwd to create a new one. Your original root password could be the same one that you've needed for admin privileges.
I did not mean password I set explicitly. When I added new user with "useradd" command, I did not pass any password. And the user was created. So, there must be a "default" password for new users.

I had to use "chpasswd" to re-set a password of my new added user.

Regards,
Andrey
 
  


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
OpenSuse Thumbleweed - Installing Sonic Pi Bl4ck SUSE / openSUSE 2 02-02-2020 07:26 AM
[SOLVED] what are files .xsession-errors and .xsession-errors.old can they be deleted? cliffm Linux - Newbie 2 10-20-2012 11:30 AM
Samba: Xsession is disabled jax8 Linux - Newbie 1 04-30-2005 12:05 PM
Xsession: LOGIN FOR ROOM9\ROOM9 IS DISABLED bqbtoan Linux - Networking 3 03-21-2005 02:36 AM
Xsession:Login for Room9\Room9 is disabled bqbtoan LinuxQuestions.org Member Success Stories 1 02-02-2005 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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