i installed the updates so i cant log in as root

Asked by MICHAEL

AFTER INSTALLING THE UPDATES I GET IN THIS NEW INTERFACE WHERE ROOT LOGINS ARE NOT ALLOWED

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
MICHAEL (michaelmephi) said :
#1

CANT LOGIN AS ROOT

Revision history for this message
Thomas Krüger (thkrueger) said :
#2

Just a short note before attending your question:
Writing in capital letters on the internet is considered screaming and not polite, also it is harder to read for others. You should prevent it.

On Ubuntu Linux you are not allowed to login as root by default. This is for security reason. Many programs that require root access are equipped with mechanism to request them or can be "elevated" with the sudo / gksudo tool.

For details, please read https://help.ubuntu.com/community/RootSudo !

Revision history for this message
MICHAEL (michaelmephi) said :
#3

so how i log in throught this new window needs user name, password combination

Revision history for this message
Thomas Krüger (thkrueger) said :
#4

You have supplied the username and password at installation time.
If you don't know the anymore, follow this guide: http://www.psychocats.net/ubuntu/resetpassword
If you don't know the username as well, run this command in the root shell from the guide above:

getent passwd

If will list all users in the system, including the system users. The login username should have the ID 1000.

Revision history for this message
MICHAEL (michaelmephi) said :
#5

i type "gent passwd" in shell prompt then i pressed exit and click on resume then i still find the user, password combo help me please

Revision history for this message
MICHAEL (michaelmephi) said :
#6

and my id still blank

Revision history for this message
MICHAEL (michaelmephi) said :
#7

i reset my password root still my default user still says root logins are not allowed

Revision history for this message
Jonathan Richards (jnorichards-i) said :
#8

Michael
It is a really bad idea to login as root. Thomas mentioned that, and gave you a link to an article where it is explained in detail.

When you installed ubuntu, you will have created a user account with the User ID (UID) of 1000. When you do that 'getent' command (NOT 'gent', by the way), it will tell you what that user is called (in my case, it's jonathan)

$ getent passwd
jonathan:x:1000:1000:xxxxxx xxxxxx:/home/jonathan:/bin/bash

This is the username that you must use to log in to the Ubuntu gui. When you want to use superuser (root) privileges, then you use the sudo command, for example, here I fail to be able to use apt-get:

$jonathan@Odin:~$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

But when I precede it with "sudo", I am prompted for *my* password (NOT the root password; there isn't one!)
jonathan@Odin:~$ sudo apt-get update
[sudo] password for jonathan:

I supply my password, and the command is executed with superuser permissions. No problem. This is the way to protect yourself against all the programs you run having root permissions. Most don't need it, and some don't even work if they have it.

There is a way to set up a root password, but I don't believe you need to do that.

Can you help with this problem?

Provide an answer of your own, or ask MICHAEL for more information if necessary.

To post a message you must log in.