LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   ( Debian ) How to change login screen, so that I can log to root. (https://www.linuxquestions.org/questions/linux-desktop-74/debian-how-to-change-login-screen-so-that-i-can-log-to-root-4175644908/)

BurnieS 12-24-2018 02:38 PM

( Debian ) How to change login screen, so that I can log to root.
 
Please no silly comments about the dangerous boogyman. Used Properly root Is quite safe. I have been using root now about twenty years with no problems.

So if anyone can tell me how to change the login screen to accommodate logging into root I would be most grateful. root is already activated with passwd.

Thankyou BurnieS

hazel 12-24-2018 03:41 PM

You don't say what display manager you are using, but most of them have a config file in /etc that you can edit to allow root logins. Or you can set a non-graphical runlevel, log in at a console in any name you like and then use startx.

You might find some guidelines here. Though this is Fedora, lxdm is a display manager that Debian often uses too.

I wouldn't do it, but your system, your rules.

frankbell 12-24-2018 08:37 PM

What Hazel says about runlevels does not apply to Debian. Debian considers runlevels 2-4 to be the same, as composed to, for example, Slackware, in which runlevel 3 boots to the command line and runlevel 4 boots to a graphical display manager.

Before SystemD there was a little script you could install and run to enable traditional boot levels in Debian with the sysv init system, but it didn't work with SystemD. It was called something like "sysvrcinit" or something close to that and worked like a charm.

A web search for systemd debian boot to command line turns up a number of articles that might help in a SystemD environment, but I haven't tested any of them (that's why I'm posting the search link so you can check them out).

snowday 12-24-2018 09:27 PM

A wise (???) man once told me:

Quote:

So, first execute in a terminal

sudo passwd root

you will be prompted for a new Unix password. Write it twice (second for confirmation).

Then execute

sudo passwd -u root

to unlock the account. This should return

passwd: password expiry information changed
:)

hazel 12-25-2018 06:04 AM

Earlier implementations of systemd had a graphical.target and a multiuser.target with a default.target which was a symlink to one of them. That let you set your own default, much as you used to do by editing inittab. But I've just checked my own Debian 9 (that's Squeeze I think) and it doesn't have those any more. It's all become much more complicated and automatic. Grrr!


All times are GMT -5. The time now is 06:48 AM.