I can login as root on the terminal
but not on the console
what is the problem?

Asked
Active
Viewed 266 times
1 Answers
1
The sudo command lets you execute a command as another user (such as root) if you are part of the sudo-group. You do not actually log in as that user. The password you use with the sudo command is the password of the account you are currently logged into.
Logging in as root on tty2 (your first screenshot) would be the same as running the su command on the X-window terminal.

sucommand in the X-window terminal and login as root and typeexitafter you are done to drop back to your original account. Or indeed prefix the command withsudo(see this answer for executing multiple commands without typing sudo everytime). – Bennix Deprîx Apr 28 '20 at 11:16sudo -i/sudo sh– Bennix Deprîx Apr 28 '20 at 11:24