[opensuse] root login to kde 4
Hello: I have openSUSE Leap 42.2 and kdm4 display manager. I would like to login to kde 4 session as root. (I have to unmount /home partition for maintaining, therefore I can't login as normal user and use su, kdesu etc, still I want to work in GUI.) If I try to login as root the login process starts but in a few moments it stops and it gives back the login window. I have set DISPLAYMANAGER_ROOT_LOGIN_LOCAL to yes in /etc/sysconfig/displaymanager file, DISPLAYMANAGER_SHUTDOWN is set to all, and PERMISSION_SECURITY is set to easy local in /etc/sysconfig/security file. I checked /usr/share/kde4/config/kdm/kdmrc file too. I did not have line AllowRootLogin, therefore I added AllowRootLogin=true line to [X-*-Core] session. This did not help, still cannot login as root. /var/log/messages shows: 2017-08-31T12:53:12.618924+02:00 linux kdm: :1[7197]: pam_unix(xdm:session): session opened for user root by (uid=0) 2017-08-31T12:53:12.626813+02:00 linux systemd[1]: Created slice User Slice of root. 2017-08-31T12:53:12.654821+02:00 linux systemd[1]: Starting User Manager for UID 0... 2017-08-31T12:53:12.667489+02:00 linux systemd-logind[1192]: New session 97 of user root. 2017-08-31T12:53:12.667732+02:00 linux systemd: pam_unix(systemd-user:session): session opened for user root by (uid=0) 2017-08-31T12:53:12.667920+02:00 linux systemd[1]: Started Session 97 of user root. 2017-08-31T12:53:12.739948+02:00 linux systemd[7220]: Reached target Sockets. 2017-08-31T12:53:12.740423+02:00 linux systemd[7220]: Reached target Paths. 2017-08-31T12:53:12.740718+02:00 linux systemd[7220]: Reached target Timers. 2017-08-31T12:53:12.741003+02:00 linux systemd[7220]: Reached target Basic System. 2017-08-31T12:53:12.741281+02:00 linux systemd[7220]: Reached target Default. 2017-08-31T12:53:12.741555+02:00 linux systemd[7220]: Startup finished in 74ms. 2017-08-31T12:53:12.741843+02:00 linux systemd[1]: Started User Manager for UID 0. 2017-08-31T12:53:12.877188+02:00 linux checkproc: checkproc: can not get session id for process 6964! 2017-08-31T12:53:12.916858+02:00 linux kdm: :1[7197]: pam_unix(xdm:session): session closed for user root 2017-08-31T12:53:15.923156+02:00 linux systemd-logind[1192]: Removed session 97. 2017-08-31T12:53:15.926077+02:00 linux systemd[1]: Stopping User Manager for UID 0... 2017-08-31T12:53:15.927075+02:00 linux systemd[7220]: Stopped target Default. 2017-08-31T12:53:15.927325+02:00 linux systemd[7220]: Stopped target Basic System. 2017-08-31T12:53:15.927524+02:00 linux systemd[7220]: Stopped target Timers. 2017-08-31T12:53:15.927674+02:00 linux systemd[7220]: Reached target Shutdown. 2017-08-31T12:53:15.927831+02:00 linux systemd[7220]: Stopped target Paths. 2017-08-31T12:53:15.928111+02:00 linux systemd[7220]: Stopped target Sockets. 2017-08-31T12:53:15.942576+02:00 linux systemd[7220]: Starting Exit the Session... 2017-08-31T12:53:15.949867+02:00 linux systemd[7220]: Received SIGRTMIN+24 from PID 7307 (kill). 2017-08-31T12:53:15.953240+02:00 linux systemd: pam_unix(systemd-user:session): session closed for user root 2017-08-31T12:53:15.956168+02:00 linux systemd[1]: Stopped User Manager for UID 0. 2017-08-31T12:53:15.961748+02:00 linux systemd[1]: Removed slice User Slice of root. How could I trace and fix this? Any help is appreciated. Thanks, Istvan ps: Please don not write that I should not log in to GUI as root, because it does not help to solve the problem. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor composed on 2017-08-31 12:54 (UTC+0200):
I have openSUSE Leap 42.2 and kdm4 display manager. I would like to login to kde 4 session as root. (I have to unmount /home partition for maintaining, therefore I can't login as normal user and use su, kdesu etc, still I want to work in GUI.)
If I try to login as root the login process starts but in a few moments it stops and it gives back the login window. ... How could I trace and fix this?
I have no idea how to fix. I can't try to recreate because all my 42.2s use either KDM3 or TDM and can recall no such trouble with them. Are you sure the kdmrc you found is the only one on the system? You can check if the one you found is the right one by making another edit: find #UseTheme=true and change true to false to test. What happens if you login as root on one of the vttys and try 'startx -- :1'? -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
How could I trace and fix this? I have no idea how to fix.
Neither do I but I wouldn't bother. If you *HAVE* to use a GUI, and I don't see why you *HAVE* to from your problem objective, then why not log in as root and then run startx? As others comment, I'd also recommend not using a complex, heavy GUI like KDE, with all its eye candy and ancillary processes that are irrelevant to you in this context. Go for the light weight LXDE types. Minimise the number of 'other' processes that will just confuse matters when you are debugging your real problem. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-08-31 12:54, Istvan Gabor wrote:
Hello:
I have openSUSE Leap 42.2 and kdm4 display manager. I would like to login to kde 4 session as root. (I have to unmount /home partition for maintaining, therefore I can't login as normal user and use su, kdesu etc, still I want to work in GUI.)
I just tried and got root plasma session, doing nothing. But my display manager is "/usr/sbin/lightdm". I would however not use a complex desktop such as KDE for that kind of maintenance, because it may have automatics such as automatically mounting a newly created partition, and it is a nuisance. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
Op donderdag 31 augustus 2017 16:51:56 CEST schreef Carlos E. R.:
On 2017-08-31 12:54, Istvan Gabor wrote:
Hello:
I have openSUSE Leap 42.2 and kdm4 display manager. I would like to login to kde 4 session as root. (I have to unmount /home partition for maintaining, therefore I can't login as normal user and use su, kdesu etc, still I want to work in GUI.)
I just tried and got root plasma session, doing nothing. But my display manager is "/usr/sbin/lightdm".
I would however not use a complex desktop such as KDE for that kind of maintenance, because it may have automatics such as automatically mounting a newly created partition, and it is a nuisance.
One simply should not even try to login as root on a desktop environment. The DE's are for users, those who have the root password ........... -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-08-31 17:02, Knurpht - Gertjan Lettink wrote:
Op donderdag 31 augustus 2017 16:51:56 CEST schreef Carlos E. R.:
On 2017-08-31 12:54, Istvan Gabor wrote:
Hello:
I have openSUSE Leap 42.2 and kdm4 display manager. I would like to login to kde 4 session as root. (I have to unmount /home partition for maintaining, therefore I can't login as normal user and use su, kdesu etc, still I want to work in GUI.)
I just tried and got root plasma session, doing nothing. But my display manager is "/usr/sbin/lightdm".
I would however not use a complex desktop such as KDE for that kind of maintenance, because it may have automatics such as automatically mounting a newly created partition, and it is a nuisance.
One simply should not even try to login as root on a desktop environment. The DE's are for users, those who have the root password ...........
I disagree. And the OP specifically asked not to discuss this. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
On 08/31/2017 11:02 AM, Knurpht - Gertjan Lettink wrote:
Op donderdag 31 augustus 2017 16:51:56 CEST schreef Carlos E. R.:
On 2017-08-31 12:54, Istvan Gabor wrote:
Hello:
I have openSUSE Leap 42.2 and kdm4 display manager. I would like to login to kde 4 session as root. (I have to unmount /home partition for maintaining, therefore I can't login as normal user and use su, kdesu etc, still I want to work in GUI.)
I just tried and got root plasma session, doing nothing. But my display manager is "/usr/sbin/lightdm".
I would however not use a complex desktop such as KDE for that kind of maintenance, because it may have automatics such as automatically mounting a newly created partition, and it is a nuisance.
One simply should not even try to login as root on a desktop environment. The DE's are for users, those who have the root password ...........
I'm sorry but with all due respect I would only say this to the unexperienced user, experienced users should not have any issues with a GUI login as root. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 31 Aug 2017 17:02:00 +0200, Knurpht - Gertjan Lettink wrote:
Op donderdag 31 augustus 2017 16:51:56 CEST schreef Carlos E. R.:
On 2017-08-31 12:54, Istvan Gabor wrote:
Hello:
I have openSUSE Leap 42.2 and kdm4 display manager. I would like to login to kde 4 session as root. (I have to unmount /home partition for maintaining, therefore I can't login as normal user and use su, kdesu etc, still I want to work in GUI.)
I just tried and got root plasma session, doing nothing. But my display manager is "/usr/sbin/lightdm".
I would however not use a complex desktop such as KDE for that kind of maintenance, because it may have automatics such as automatically mounting a newly created partition, and it is a nuisance.
One simply should not even try to login as root on a desktop environment. The DE's are for users, those who have the root password ...........
Thanks for worrying but I don't agree. I even think that logging in directly as root might be safer than kdesu-ing from a normal user's GUI. Felix, Anton, Carlos, Ken, thank you too. I found/solved the problem thank to your answer:
I would however not use a complex desktop such as KDE for that kind of maintenance
Well, I didn't say I had tried to login to KDE session, I thought. I only said I use KDM4 login manager. Then I reread what I wrote and the bulb lit. In the login window I only filled the login name (root) and the password but did not choose session type in the pulldown menu "Menu". I tried to select a session type, IceWM, and it logged me in succesfully. Choosing KDE3 and KDE4 logged me in too, only "default" option did not work. At the moment I don't want to figure it out what is the problem with default.
because it may have automatics such as automatically mounting a newly created partition
Yes, there is a risk. I have bad experience with LXDE in this regard. It mounted all partitions, inlcuding OS partitions it found on the drive. I use mostly KDE3 and I never had such problem with it. I also use IceWM when I login to a GUI desktop as root.
then why not log in as root and then run startx?
I tried startx from a teminal (after stopping X windows) but it didn't work. I have to solve this later if I will have time.
If you *HAVE* to use a GUI, and I don't see why you *HAVE* to from your problem objective,
I don't have to use a GUI, but it is much more comfortable do do complex things with a GUI than in a simple terminal. Even if I use a konsole in the GUI I can copy/paste commands etc. Thanks again, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Istvan Gabor
On Thu, 31 Aug 2017 17:02:00 +0200, Knurpht - Gertjan Lettink wrote:
Op donderdag 31 augustus 2017 16:51:56 CEST schreef Carlos E. R.:
On 2017-08-31 12:54, Istvan Gabor wrote:
Hello:
I have openSUSE Leap 42.2 and kdm4 display manager. I would like to login to kde 4 session as root. (I have to unmount /home partition for maintaining, therefore I can't login as normal user and use su, kdesu etc, still I want to work in GUI.)
I just tried and got root plasma session, doing nothing. But my display manager is "/usr/sbin/lightdm".
I would however not use a complex desktop such as KDE for that kind of maintenance, because it may have automatics such as automatically mounting a newly created partition, and it is a nuisance.
One simply should not even try to login as root on a desktop environment. The DE's are for users, those who have the root password ...........
Thanks for worrying but I don't agree. I even think that logging in directly as root might be safer than kdesu-ing from a normal user's GUI.
how on earth would logging in directly as root be safer than su'ing from a user? is there some black magic involved that is generally unknown? for all practical instances, logging in as root or su'ing to root and/or ssh'ing as root all accomplish the same thing; a root environment which is password protected. ps: using a gui is much more questionable than the method of access. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-09-01 00:57, Patrick Shanahan wrote:
ps: using a gui is much more questionable than the method of access.
It has advantages, in my view. First, I refuse to work in text mode. In GUI I can have several terminals and copy paste commands, see logs flowing by, read manuals, etc, all in the same display. Yes, I can use a user GUI, then start several xterms as root, but that /may/ need typing the password several times, which is a nuisance. Then I may need to start GUI tools, like for instance, gparted. I need them to run as root, so again, password. This is another nuisance. It is not the same thing needing to do some admin tasks, that needing to do many admin tasks, all needing run as root. I also want all this activity to go to the /root directory, not to /home directory - which remember, is *not mounted*. The dangers are the same if I work in a root session or a user session, then starting everything as root anyway. A user error in any of them can be fatal, regardless of session ID. Lastly, you will not win new blood to Linux if you tell them that they can't login as admin to do admin work. They do this all the time in Windows. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
* Carlos E. R.
On 2017-09-01 00:57, Patrick Shanahan wrote:
ps: using a gui is much more questionable than the method of access.
It has advantages, in my view.
First, I refuse to work in text mode. In GUI I can have several terminals and copy paste commands, see logs flowing by, read manuals, etc, all in the same display.
Yes, I can use a user GUI, then start several xterms as root, but that /may/ need typing the password several times, which is a nuisance.
Then I may need to start GUI tools, like for instance, gparted. I need them to run as root, so again, password. This is another nuisance.
It is not the same thing needing to do some admin tasks, that needing to do many admin tasks, all needing run as root.
I also want all this activity to go to the /root directory, not to /home directory - which remember, is *not mounted*.
The dangers are the same if I work in a root session or a user session, then starting everything as root anyway. A user error in any of them can be fatal, regardless of session ID.
Lastly, you will not win new blood to Linux if you tell them that they can't login as admin to do admin work. They do this all the time in Windows.
ever hear of screen or tmux. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/31/2017 06:44 PM, Carlos E. R. wrote:
Yes, I can use a user GUI, then start several xterms as root, but that /may/ need typing the password several times, which is a nuisance.
I don't understand this. I open one xterm as root. And maybe I move that to the top left of screen to help me remember which is which. Then I do: ( xterm & ) in that xterm window to open another xterm, with no additional password required.
Then I may need to start GUI tools, like for instance, gparted. I need them to run as root, so again, password. This is another nuisance.
So I do: ( gparted & ) in that first xterm window, and I get the gparted GUI with no additional password required. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJZqWJaAAoJEGSXLIzRJwiFneAH/RJBeaav7dyQJCyK7IRBuRP4 MQGuCtzqjMF291lZkOX/XKET9cR8WpKeoLi3nBW2sWpsnxbIubsj1BR5bFsasZMW /+ZIOR8+N2laycFZ+vKDtwbJ0QWcuozExDabArIR58cOAx6XrqNwWO/V1CHwUHQY es4tRLuTm6eTdFENiYPrCq/sxN6+/iajbVWXdUxCTJq9xy6OfRy0DKkcMPf3JfEm 7VcehGmsbzJtQhCp4Lczuga6dBA8XUONtxbu5n1te6f9U7wv1IJzQhY5bLBCHK/M KAxkhb1xESiOsvjJTRkbfLPq7MyTN2nYv6bG3loKLzin/XbxerDLCuTtpvjhTbA= =SKKn -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-09-01 15:36, Neil Rickert wrote:
On 08/31/2017 06:44 PM, Carlos E. R. wrote:
Yes, I can use a user GUI, then start several xterms as root, but that /may/ need typing the password several times, which is a nuisance.
I don't understand this.
I open one xterm as root. And maybe I move that to the top left of screen to help me remember which is which.
Then I do: ( xterm & )
in that xterm window to open another xterm, with no additional password required.
Yes, I know that trick. That's why I sad "maybe" ;-)
Then I may need to start GUI tools, like for instance, gparted. I need them to run as root, so again, password. This is another nuisance.
So I do: ( gparted & ) in that first xterm window, and I get the gparted GUI with no additional password required.
Meaning that I have to remember the name of the command, and not use the menu ;-) -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
Op vrijdag 1 september 2017 01:44:08 CEST schreef Carlos E. R.:
On 2017-09-01 00:57, Patrick Shanahan wrote:
ps: using a gui is much more questionable than the method of access.
It has advantages, in my view.
First, I refuse to work in text mode. In GUI I can have several terminals and copy paste commands, see logs flowing by, read manuals, etc, all in the same display.
Yes, I can use a user GUI, then start several xterms as root, but that /may/ need typing the password several times, which is a nuisance.
Nonsense. Start a new xterm from one that's started as root and the next one runs as root as well
Then I may need to start GUI tools, like for instance, gparted. I need them to run as root, so again, password. This is another nuisance.
Yes, all this nuisance was made by design. To protect the system from user actions.
It is not the same thing needing to do some admin tasks, that needing to do many admin tasks, all needing run as root.
YaST, Carlos. There's not much YaST cannot do.
I also want all this activity to go to the /root directory, not to /home directory - which remember, is *not mounted*.
The dangers are the same if I work in a root session or a user session, then starting everything as root anyway. A user error in any of them can be fatal, regardless of session ID.
Lastly, you will not win new blood to Linux if you tell them that they can't login as admin to do admin work. They do this all the time in Windows.
Yes, "they" do everything as admin in Windows. To prevent having to type a password. Sigh, sigh, sigh. Security flaw number one. That's why Windows users are screwed completely and immediately when they meet nasty things on the web. Then again, it's your system, go ahead. But please, please, please DO NOT suggest this to others. -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-09-01 16:18, Knurpht - Gertjan Lettink wrote:
Op vrijdag 1 september 2017 01:44:08 CEST schreef Carlos E. R.:
On 2017-09-01 00:57, Patrick Shanahan wrote:
ps: using a gui is much more questionable than the method of access.
It has advantages, in my view.
First, I refuse to work in text mode. In GUI I can have several terminals and copy paste commands, see logs flowing by, read manuals, etc, all in the same display.
Yes, I can use a user GUI, then start several xterms as root, but that /may/ need typing the password several times, which is a nuisance.
Nonsense. Start a new xterm from one that's started as root and the next one runs as root as well
Then I may need to start GUI tools, like for instance, gparted. I need them to run as root, so again, password. This is another nuisance.
Yes, all this nuisance was made by design. To protect the system from user actions.
The design allows root to login as root. The OP explained why it did not work as designed initially.
It is not the same thing needing to do some admin tasks, that needing to do many admin tasks, all needing run as root.
YaST, Carlos. There's not much YaST cannot do.
There are many other needed tools.
I also want all this activity to go to the /root directory, not to /home directory - which remember, is *not mounted*.
The dangers are the same if I work in a root session or a user session, then starting everything as root anyway. A user error in any of them can be fatal, regardless of session ID.
Lastly, you will not win new blood to Linux if you tell them that they can't login as admin to do admin work. They do this all the time in Windows.
Yes, "they" do everything as admin in Windows. To prevent having to type a password. Sigh, sigh, sigh. Security flaw number one. That's why Windows users are screwed completely and immediately when they meet nasty things on the web.
Many use user sessions, too.
Then again, it's your system, go ahead. But please, please, please DO NOT suggest this to others.
I did not suggest anything, but I'm sorry, I disagree in this. Also remember: there is no /home filesystem in the OP. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
participants (8)
-
Anton Aylward
-
Carlos E. R.
-
Felix Miata
-
Istvan Gabor
-
Ken Schneider - openSUSE
-
Knurpht - Gertjan Lettink
-
Neil Rickert
-
Patrick Shanahan